Skip to content

Commit

Permalink
increase default header z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
myrta2302 committed Jan 9, 2025
1 parent d621d59 commit 29cba22
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
--global-header-minimal-height: 24px;
--main-header-height: 56px;
--header-height: calc(var(--global-header-height) + var(--main-header-height));
z-index: var(--header-z-index, 2000);
overflow: hidden;

@include media.min(lg) {
display: block;
Expand Down Expand Up @@ -46,7 +48,7 @@
position: sticky;
padding-inline: var(--post-core-dimension-4);
height: var(--global-header-height);
z-index: 1;
z-index: var(--header-z-index) + 3;

@include media.max(lg) {
inset-block-start: 0;
Expand Down Expand Up @@ -94,6 +96,7 @@ slot[name='post-logo'] {
}

.title-header {
z-index: var(--header-z-index) + 2;
display: flex;
align-items: center;
gap: var(--post-core-dimension-4);
Expand All @@ -107,7 +110,6 @@ slot[name='post-logo'] {

@include media.max(lg) {
position: sticky;
z-index: 1;
inset-block-start: var(--global-header-height);
padding-inline: var(--post-core-dimension-8) var(--post-core-dimension-16);

Expand Down Expand Up @@ -141,10 +143,9 @@ slot[name='post-logo'] {

.navigation {
background: var(--post-core-color-brand-white);

z-index: var(--header-z-index) + 1;
@include media.min(lg) {
position: sticky;
z-index: 1;
inset-block-start: var(--global-header-minimal-height);
}
}
Expand Down

0 comments on commit 29cba22

Please sign in to comment.