Skip to content

Commit 5938be0

Browse files
authored
Get a handle on all our z-index values
1 parent 6313b05 commit 5938be0

18 files changed

+84
-110
lines changed

stylesheets/_conversation.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
position: absolute;
3030
top: calc(#{$header-height} + var(--title-bar-drag-area-height));
3131
width: 100%;
32-
z-index: 1;
32+
z-index: $z-index-base;
3333

3434
@include light-theme() {
3535
background-color: $color-white;

stylesheets/_global.scss

+3-42
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ audio {
9393
bottom: 0;
9494

9595
opacity: 0.25;
96-
z-index: 200;
96+
z-index: $z-index-popup-overlay;
9797

9898
@include light-theme {
9999
background-color: $color-black;
@@ -175,44 +175,6 @@ a {
175175
}
176176
}
177177

178-
.banner {
179-
z-index: 100;
180-
181-
background-color: $color-ios-blue-tint;
182-
color: $color-black;
183-
box-shadow: 0px 3px 5px 0px $color-black-alpha-20;
184-
185-
position: absolute;
186-
top: 25px;
187-
right: 30px;
188-
left: 30px;
189-
190-
padding: 5px 25px 5px 10px;
191-
192-
text-align: center;
193-
border-radius: 10px;
194-
195-
cursor: pointer;
196-
197-
.warning {
198-
width: 18px;
199-
height: 18px;
200-
display: inline-block;
201-
vertical-align: text-bottom;
202-
@include color-svg('../images/icons/v2/error-solid-24.svg', black);
203-
}
204-
205-
.dismiss {
206-
position: absolute;
207-
right: 3px;
208-
top: 3px;
209-
210-
height: 23px;
211-
width: 23px;
212-
@include color-svg('../images/icons/v2/x-24.svg', black);
213-
}
214-
}
215-
216178
$loading-height: 16px;
217179

218180
.loading {
@@ -267,7 +229,7 @@ $loading-height: 16px;
267229
}
268230

269231
.app-loading-screen {
270-
z-index: 99;
232+
z-index: $z-index-on-top-of-everything;
271233
position: absolute;
272234
left: 0;
273235
right: 0;
@@ -323,8 +285,7 @@ $loading-height: 16px;
323285
bottom: 0;
324286

325287
&.overlay {
326-
// .modal, used for the settings view, is 100
327-
z-index: 200;
288+
z-index: $z-index-popup-overlay;
328289
}
329290

330291
color: $color-black;

stylesheets/_mixins.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
right: 8px;
234234
width: 18px;
235235
height: 18px;
236-
z-index: 2;
236+
z-index: $z-index-above-base;
237237
}
238238

239239
@mixin calling-text-shadow {

0 commit comments

Comments
 (0)