Skip to content

Commit

Permalink
admin: Improve Z-Index and code block order for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 5, 2023
1 parent 866774a commit 72bab37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 9 additions & 8 deletions packages/admin/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@
</button>
</section>
</nav>
<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"
:class="{ '!-ml-[30rem] sm:!-ml-[29rem]': !viewShowFullNavigationBar }"
>
<div class="w-full h-full backdrop-blur-[3rem]" />
<div class="w-[85vw] sm:w-1/2 h-2/3 lg:h-[calc(100dvh_-_14rem)] bg-blue-l" />
</div>
<main class="overflow-x-clip overflow-y-auto lg:overflow-y-hidden grid grid-cols-[1fr] grid-rows-[1fr] h-full bg-white-alt">
<NuxtPage
:backend-client="backendClient"
Expand All @@ -84,6 +76,15 @@
}"
/>
</main>
<div class="-z-10 w-full backdrop-blur-[3rem]" />
<div
class="-z-20 grid grid-areas-stack justify-items-center items-center
-ml-[13.5rem] sm:-ml-[13rem] w-[52rem] h-full transition-[margin-left] duration-300"
:class="{ '!-ml-[30rem] sm:!-ml-[29rem]': !viewShowFullNavigationBar }"
>
<div class="w-[85vw] sm:w-1/2 h-2/3 lg:h-[calc(100dvh_-_14rem)] bg-blue-l" />
</div>
<div class="-z-50 w-full bg-white-alt" />
</div>
</template>

Expand Down
10 changes: 5 additions & 5 deletions packages/admin/components/PlaylistList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
</div>
<div class="overflow-y-hidden grid grid-areas-stack h-full">
<div
class="z-40 flex flex-row order-2 justify-between items-center self-end px-6 pr-2 py-1.5 h-12
class="z-20 flex flex-row order-2 justify-between items-center self-end px-6 pr-2 py-1.5 h-12
bg-white-alta/75 border-t border-gray backdrop-blur"
>
<span v-if="props.type === 'main'">
Expand Down Expand Up @@ -242,7 +242,7 @@
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
class="z-10 w-full h-2/3 bg-white
rounded focus:outline-none ring-2 ring-blue ring-offset-[4.5px] ring-offset-white"
:value="song.name"
@blur="// @ts-ignore
Expand Down Expand Up @@ -295,7 +295,7 @@
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
class="z-10 w-full h-2/3 bg-white
rounded focus:outline-none ring-2 ring-blue ring-offset-[4.5px] ring-offset-white"
:value="song.artist"
@blur="// @ts-ignore
Expand Down Expand Up @@ -348,7 +348,7 @@
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 text-center bg-white
class="z-10 w-full h-2/3 text-center bg-white
rounded focus:outline-none ring-2 ring-blue ring-offset-[4.5px] ring-offset-white"
:value="song.payment_amount"
@blur="// @ts-ignore
Expand Down Expand Up @@ -409,7 +409,7 @@
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
class="z-10 w-full h-2/3 bg-white
rounded focus:outline-none ring-2 ring-blue ring-offset-[4.5px] ring-offset-white"
:value="song.language"
@blur="// @ts-ignore
Expand Down

0 comments on commit 72bab37

Please sign in to comment.