Skip to content

Commit

Permalink
admin: Add an extra layer of blur under the full Nav Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Nov 10, 2023
1 parent 0302ed6 commit 4497887
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/admin/app.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="overflow-clip grid grid-areas-stack h-dscreen">
<nav
class="z-40 grid grid-rows-[auto_1fr_auto] max-lg:landscape:gap-y-2 gap-y-4 self-center px-12 max-lg:landscape:py-2 py-7
w-screen sm:w-[26rem] h-5/6 lg:h-[calc(100dvh_-_14rem)]
class="z-50 grid grid-rows-[auto_1fr_auto] max-lg:landscape:gap-y-2 gap-y-4 self-center
px-12 max-lg:landscape:py-2 py-7 w-screen sm:w-[26rem] h-5/6 lg:h-[calc(100dvh_-_14rem)]
text-white transition-[margin-left] duration-300"
:class="{ '-ml-[16.5rem]': !showFullNavigationBar }"
>
Expand Down Expand Up @@ -88,6 +88,14 @@
</button>
</section>
</nav>
<transition
enter-from-class="opacity-0"
enter-active-class="transition-opacity duration-300"
leave-active-class="transition-opacity duration-300"
leave-to-class="opacity-0"
>
<div v-if="showFullNavigationBar" class="z-40 h-full backdrop-blur-[2rem]" />
</transition>
<div
class="z-10 grid grid-areas-stack justify-items-center items-center
-ml-[13.5rem] sm:-ml-[13rem] w-[52rem] h-full transition-[margin-left] duration-300"
Expand Down

0 comments on commit 4497887

Please sign in to comment.