11// We want overlays to always appear over user content, so set a baseline
22// very high z-index for the overlay container, which is where we create the new
33// stacking context for all overlays.
4- $cdk- z-index-overlay-container : 1000 !default ;
5- $cdk- z-index-overlay : 1000 !default ;
6- $cdk- z-index-overlay-backdrop : 1000 !default ;
4+ $z-index-overlay-container : 1000 !default ;
5+ $z-index-overlay : 1000 !default ;
6+ $z-index-overlay-backdrop : 1000 !default ;
77
88// Background color for all of the backdrops
9- $cdk-overlay- dark-backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
9+ $dark-backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
1010
1111// Default backdrop animation is based on the Material Design swift-ease-out.
1212$backdrop-animation-duration : 400ms !default ;
1313$backdrop-animation-timing-function : cubic-bezier (0.25 , 0.8 , 0.25 , 1 ) !default ;
1414
1515
16- @mixin cdk- overlay () {
16+ @mixin overlay () {
1717 .cdk-overlay-container , .cdk-global-overlay-wrapper {
1818 // Disable events from being captured on the overlay container.
1919 pointer-events : none ;
@@ -28,7 +28,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
2828 // The overlay-container is an invisible element which contains all individual overlays.
2929 .cdk-overlay-container {
3030 position : fixed ;
31- z-index : $cdk- z-index-overlay-container ;
31+ z-index : $z-index-overlay-container ;
3232
3333 & :empty {
3434 // 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;
4444 .cdk-global-overlay-wrapper {
4545 display : flex ;
4646 position : absolute ;
47- z-index : $cdk- z-index-overlay ;
47+ z-index : $z-index-overlay ;
4848 }
4949
5050 // A single overlay pane.
@@ -54,7 +54,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
5454 position : absolute ;
5555 pointer-events : auto ;
5656 box-sizing : border-box ;
57- z-index : $cdk- z-index-overlay ;
57+ z-index : $z-index-overlay ;
5858
5959 // For connected-position overlays, we set `display: flex` in
6060 // 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;
7171 left : 0 ;
7272 right : 0 ;
7373
74- z-index : $cdk- z-index-overlay-backdrop ;
74+ z-index : $z-index-overlay-backdrop ;
7575 pointer-events : auto ;
7676 -webkit-tap-highlight-color : transparent ;
7777 transition : opacity $backdrop-animation-duration $backdrop-animation-timing-function ;
@@ -91,7 +91,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
9191 }
9292
9393 .cdk-overlay-dark-backdrop {
94- background : $cdk-overlay- dark-backdrop-background ;
94+ background : $dark-backdrop-background ;
9595 }
9696
9797 .cdk-overlay-transparent-backdrop {
@@ -108,7 +108,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
108108 // overlay element's size to fit within the viewport.
109109 .cdk-overlay-connected-position-bounding-box {
110110 position : absolute ;
111- z-index : $cdk- z-index-overlay ;
111+ z-index : $z-index-overlay ;
112112
113113 // We use `display: flex` on this element exclusively for centering connected overlays.
114114 // When *not* centering, a top/left/bottom/right will be set which overrides the normal
0 commit comments