diff --git a/projects/client/src/lib/components/background/CoverImage.svelte b/projects/client/src/lib/components/background/CoverImage.svelte index 97db5a789..24606757d 100644 --- a/projects/client/src/lib/components/background/CoverImage.svelte +++ b/projects/client/src/lib/components/background/CoverImage.svelte @@ -19,7 +19,7 @@ @use "$style/scss/mixins/index" as *; .background-cover-image { - z-index: -1; + z-index: var(--layer-background); position: absolute; max-height: 100dvh; overflow: hidden; diff --git a/projects/client/src/lib/components/buttons/Button.svelte b/projects/client/src/lib/components/buttons/Button.svelte index 6cbe36ca9..1887f6f93 100644 --- a/projects/client/src/lib/components/buttons/Button.svelte +++ b/projects/client/src/lib/components/buttons/Button.svelte @@ -257,12 +257,11 @@ p, .button-label, .button-icon { - z-index: 1; + z-index: var(--layer-base); } &::before { content: ""; - z-index: 0; position: absolute; top: 0; diff --git a/projects/client/src/lib/components/buttons/popup/PopupMenu.svelte b/projects/client/src/lib/components/buttons/popup/PopupMenu.svelte index ebcc5a453..677112a0a 100644 --- a/projects/client/src/lib/components/buttons/popup/PopupMenu.svelte +++ b/projects/client/src/lib/components/buttons/popup/PopupMenu.svelte @@ -79,7 +79,7 @@ :global(.trakt-popup-menu-container) { --list-padding: var(--ni-8); - z-index: 777; + z-index: var(--layer-menu); position: absolute; min-width: var(--ni-156); diff --git a/projects/client/src/lib/components/buttons/popup/_internal/createUnderlay.ts b/projects/client/src/lib/components/buttons/popup/_internal/createUnderlay.ts index b3221050c..f2e788a75 100644 --- a/projects/client/src/lib/components/buttons/popup/_internal/createUnderlay.ts +++ b/projects/client/src/lib/components/buttons/popup/_internal/createUnderlay.ts @@ -13,7 +13,7 @@ export const createUnderlay = () => { underlay.style.width = '100%'; underlay.style.height = '100%'; - underlay.style.zIndex = '777'; + underlay.style.zIndex = 'calc(var(--layer-menu) - 1)'; return underlay; }; diff --git a/projects/client/src/lib/components/card/CardActionBar.svelte b/projects/client/src/lib/components/card/CardActionBar.svelte index 44d80a330..4e6625497 100644 --- a/projects/client/src/lib/components/card/CardActionBar.svelte +++ b/projects/client/src/lib/components/card/CardActionBar.svelte @@ -18,7 +18,7 @@ top: 0; right: 0; left: 0; - z-index: 3; + z-index: var(--layer-floating); :global(.trakt-popup-menu-button) { position: absolute; diff --git a/projects/client/src/lib/components/card/CardCover.svelte b/projects/client/src/lib/components/card/CardCover.svelte index 1a3573d4c..4cb4c8425 100644 --- a/projects/client/src/lib/components/card/CardCover.svelte +++ b/projects/client/src/lib/components/card/CardCover.svelte @@ -43,7 +43,7 @@ position: absolute; padding: var(--padding-card-tag); - z-index: 2; + z-index: var(--layer-raised); bottom: 0; left: 0; @@ -92,7 +92,7 @@ width: var(--width-card); height: var(--ni-40); flex-shrink: 0; - z-index: 1; + z-index: var(--layer-base); background: linear-gradient( 180deg, diff --git a/projects/client/src/lib/components/dropdown/DropdownList.svelte b/projects/client/src/lib/components/dropdown/DropdownList.svelte index 653966a11..762b25288 100644 --- a/projects/client/src/lib/components/dropdown/DropdownList.svelte +++ b/projects/client/src/lib/components/dropdown/DropdownList.svelte @@ -26,6 +26,15 @@ }} data-size={size} > + {#if $isDropdownOpen} +