1
1
// We want overlays to always appear over user content, so set a baseline
2
2
// very high z-index for the overlay container, which is where we create the new
3
3
// stacking context for all overlays.
4
- $z-index- overlay-container : 1000 !default ;
5
- $z-index-overlay : 1000 !default ;
6
- $z-index- overlay-backdrop : 1000 !default ;
4
+ $overlay-container-z-index : 1000 !default ;
5
+ $overlay- z-index : 1000 !default ;
6
+ $overlay-backdrop-z-index : 1000 !default ;
7
7
8
8
// Background color for all of the backdrops
9
- $dark -backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
9
+ $overlay -backdrop-color : rgba (0 , 0 , 0 , 0.32 ) !default ;
10
10
11
11
// Default backdrop animation is based on the Material Design swift-ease-out.
12
12
$backdrop-animation-duration : 400ms !default ;
@@ -28,7 +28,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
28
28
// The overlay-container is an invisible element which contains all individual overlays.
29
29
.cdk-overlay-container {
30
30
position : fixed ;
31
- z-index : $z-index- overlay-container ;
31
+ z-index : $overlay-container-z-index ;
32
32
33
33
& :empty {
34
34
// Hide the element when it doesn't have any child nodes. This doesn't
@@ -44,7 +44,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
44
44
.cdk-global-overlay-wrapper {
45
45
display : flex ;
46
46
position : absolute ;
47
- z-index : $z-index-overlay ;
47
+ z-index : $overlay- z-index ;
48
48
}
49
49
50
50
// A single overlay pane.
@@ -54,7 +54,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
54
54
position : absolute ;
55
55
pointer-events : auto ;
56
56
box-sizing : border-box ;
57
- z-index : $z-index-overlay ;
57
+ z-index : $overlay- z-index ;
58
58
59
59
// For connected-position overlays, we set `display: flex` in
60
60
// order to force `max-width` and `max-height` to take effect.
@@ -71,7 +71,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
71
71
left : 0 ;
72
72
right : 0 ;
73
73
74
- z-index : $z-index- overlay-backdrop ;
74
+ z-index : $overlay-backdrop-z-index ;
75
75
pointer-events : auto ;
76
76
-webkit-tap-highlight-color : transparent ;
77
77
transition : opacity $backdrop-animation-duration $backdrop-animation-timing-function ;
@@ -92,7 +92,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
92
92
}
93
93
94
94
.cdk-overlay-dark-backdrop {
95
- background : $dark -backdrop-background ;
95
+ background : $overlay -backdrop-color ;
96
96
}
97
97
98
98
.cdk-overlay-transparent-backdrop {
@@ -109,7 +109,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
109
109
// overlay element's size to fit within the viewport.
110
110
.cdk-overlay-connected-position-bounding-box {
111
111
position : absolute ;
112
- z-index : $z-index-overlay ;
112
+ z-index : $overlay- z-index ;
113
113
114
114
// We use `display: flex` on this element exclusively for centering connected overlays.
115
115
// When *not* centering, a top/left/bottom/right will be set which overrides the normal
0 commit comments