Skip to content

Commit aae39e6

Browse files
author
Adam Bradley
committed
z-index variables
1 parent a218b40 commit aae39e6

File tree

12 files changed

+42
-22
lines changed

12 files changed

+42
-22
lines changed

dist/css/ionic.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,17 +2727,18 @@ body, .ionic-body {
27272727
bottom: 49px; }
27282728

27292729
.pane {
2730-
position: fixed; }
2730+
position: fixed;
2731+
z-index: 1; }
27312732

27322733
.view {
2733-
position: absolute; }
2734+
position: absolute;
2735+
z-index: 1; }
27342736

27352737
.pane, .view {
27362738
top: 0;
27372739
right: 0;
27382740
bottom: 0;
27392741
left: 0;
2740-
z-index: 1;
27412742
width: 100%;
27422743
height: 100%;
27432744
background-color: #fff; }
@@ -2924,6 +2925,7 @@ a.subdued {
29242925
position: fixed;
29252926
top: 0;
29262927
left: 0;
2928+
z-index: 10;
29272929
width: 100%;
29282930
height: 100%;
29292931
background-color: rgba(0, 0, 0, 0); }

scss/_action-sheet.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
position: fixed;
2525
top: 0;
2626
left: 0;
27-
z-index: $zindex-modal;
27+
z-index: $z-index-action-sheet;
2828
width: 100%;
2929
height: 100%;
3030
background-color: rgba(0,0,0,0);
@@ -98,7 +98,7 @@ $slide-in-up-function: cubic-bezier(.1, .7, .1, 1);
9898
position: fixed;
9999
bottom: 0;
100100
left: 15px;
101-
z-index: $zindex-modal;
101+
z-index: $z-index-action-sheet;
102102
overflow: hidden;
103103
width: calc(100% - 30px);
104104

scss/_bar.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
position: absolute;
1111
right: 0;
1212
left: 0;
13-
z-index: 10;
13+
z-index: $z-index-bar;
1414

1515
box-sizing: border-box;
1616
padding: $bar-padding-portrait;
@@ -98,7 +98,7 @@
9898
top: 0;
9999
right: 0;
100100
left: 0;
101-
z-index: 0;
101+
z-index: $z-index-bar-title;
102102
overflow: hidden;
103103

104104
margin: 0 10px;
@@ -128,7 +128,7 @@
128128
}
129129

130130
.button {
131-
z-index: 1;
131+
z-index: $z-index-bar-button;
132132
padding: 0 $button-bar-button-padding;
133133
min-width: initial;
134134
min-height: $button-bar-button-height - 1;

scss/_checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@
7979
position: absolute;
8080
top: 0;
8181
left: $item-padding / 2;
82-
z-index: 3;
82+
z-index: $z-index-item-checkbox;
8383
height: 100%;
8484
}

scss/_items.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@include transition(margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out, left 0.2s ease-in-out);
99

1010
position: relative;
11-
z-index: 2; // Make sure the borders and stuff don't get hidden by children
11+
z-index: $z-index-item; // Make sure the borders and stuff don't get hidden by children
1212
display: block;
1313

1414
margin: $item-border-width * -1;
@@ -181,7 +181,7 @@ button.item.item-complex {
181181
* UI interactions.
182182
*/
183183
position: relative;
184-
z-index: 2;
184+
z-index: $z-index-item;
185185

186186
padding: $item-padding (($item-padding * 3) - 5) $item-padding $item-padding;
187187
border: none;
@@ -522,7 +522,7 @@ button.item-button-right:after {
522522
position: absolute;
523523
top: 0;
524524
left: 8px;
525-
z-index: 0;
525+
z-index: $z-index-item-edit;
526526
width: 48px;
527527
height: 100%;
528528
line-height: 100%;
@@ -564,7 +564,7 @@ button.item-button-right:after {
564564
position: absolute;
565565
top: 0;
566566
right: 0;
567-
z-index: 0;
567+
z-index: $z-index-item-drag;
568568
height: 100%;
569569

570570
.button {
@@ -589,7 +589,7 @@ button.item-button-right:after {
589589
position: absolute;
590590
top: 0;
591591
right: 0;
592-
z-index: 1;
592+
z-index: $z-index-item-options;
593593
height: 100%;
594594

595595
.button {

scss/_menu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
position: absolute;
1010
top: 0;
1111
bottom: 0;
12-
z-index: 0;
12+
z-index: $z-index-menu;
1313
overflow: hidden;
1414

1515
min-height: 100%;

scss/_modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@include translate3d(0, 100%, 0);
1010
position: fixed;
1111
top: 0;
12-
z-index: $zindex-modal;
12+
z-index: $z-index-modal;
1313
overflow: hidden;
1414

1515
min-height: 100%;

scss/_radio.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
position: absolute;
2323
top: 0;
2424
right: 0;
25-
z-index: 3;
25+
z-index: $z-index-item-radio;
2626
visibility: hidden;
2727
padding: $item-padding - 2;
2828
height: 100%;

scss/_scaffolding.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ body, .ionic-body {
105105
// Scroll bar styles
106106
.scroll-bar {
107107
position: absolute;
108-
z-index: 9999;
108+
z-index: $z-index-scroll-bar;
109109
}
110110
.scroll-bar-h {
111111
height: 3px;
@@ -263,16 +263,17 @@ body, .ionic-body {
263263
// A full screen section with a solid background
264264
.pane {
265265
position: fixed;
266+
z-index: $z-index-pane;
266267
}
267268
.view {
268269
position: absolute;
270+
z-index: $z-index-view;
269271
}
270272
.pane, .view {
271273
top: 0;
272274
right: 0;
273275
bottom: 0;
274276
left: 0;
275-
z-index: 1;
276277
width: 100%;
277278
height: 100%;
278279
background-color: #fff;

scss/_tabs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
position: absolute;
1616
bottom: 0;
1717

18-
z-index: 5;
18+
z-index: $z-index-tabs;
1919

2020
width: 100%;
2121
height: $tabs-height;

0 commit comments

Comments
 (0)