feat: refactors z index methodology

This commit is contained in:
James
2022-07-16 13:56:49 -07:00
parent 3a17a8a001
commit 2fa680cdf8
20 changed files with 87 additions and 27 deletions

View File

@@ -4,7 +4,7 @@
@include blur-bg;
position: sticky;
top: 0;
z-index: $z-nav;
z-index: var(--z-nav);
padding: base(1.5) 0;
&__wrap {

View File

@@ -133,7 +133,7 @@
position: fixed;
width: 100%;
height: base(3);
z-index: $z-modal;
z-index: var(--z-modal);
&__scroll {
padding: 0;

View File

@@ -7,7 +7,7 @@
position: absolute;
background: var(--theme-input-bg);
display: none;
z-index: $z-modal;
z-index: var(--z-popup);
max-width: calc(100vw - #{$baseline});
&:after {

View File

@@ -30,12 +30,11 @@
letter-spacing: inherit;
line-height: inherit;
position: relative;
z-index: 2;
text-decoration: underline;
cursor: text;
&--open {
z-index: $z-modal + 1;
z-index: var(--z-popup);
}
}

View File

@@ -9,7 +9,7 @@
margin-bottom: $baseline;
border: $style-stroke-width-s solid var(--theme-elevation-150);
position: sticky;
z-index: 2;
z-index: 1;
top: base(4);
}

View File

@@ -3,7 +3,7 @@
.leave-without-saving {
@include blur-bg;
position: fixed;
z-index: $z-modal;
z-index: var(--z-modal);
top: 0;
right: 0;
bottom: 0;

View File

@@ -74,7 +74,7 @@
padding-right: $baseline;
position: sticky;
top: 0;
z-index: $z-nav;
z-index: var(--z-nav);
>* {
position: relative;
@@ -189,7 +189,7 @@
left: 0;
right: 0;
top: auto;
z-index: $z-nav;
z-index: var(--z-nav);
}
&__document-actions,