File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
@import ' ../style/variables' ;
2
- @import ' ../theming/palette' ;
3
- @import ' ../theming/theming' ;
4
2
5
3
6
4
@mixin cdk-overlay () {
18
16
// The overlay-container is an invisible element which contains all individual overlays.
19
17
.cdk-overlay-container {
20
18
position : fixed ;
21
- z-index : $md -z-index-overlay-container ;
19
+ z-index : $cdk -z-index-overlay-container ;
22
20
}
23
21
24
22
// We use an extra wrapper element in order to use make the overlay itself a flex item.
28
26
.cdk-global-overlay-wrapper {
29
27
display : flex ;
30
28
position : absolute ;
31
- z-index : $md -z-index-overlay ;
29
+ z-index : $cdk -z-index-overlay ;
32
30
}
33
31
34
32
// A single overlay pane.
35
33
.cdk-overlay-pane {
36
34
position : absolute ;
37
35
pointer-events : auto ;
38
36
box-sizing : border-box ;
39
- z-index : $md -z-index-overlay ;
37
+ z-index : $cdk -z-index-overlay ;
40
38
}
41
39
42
40
.cdk-overlay-backdrop {
47
45
left : 0 ;
48
46
right : 0 ;
49
47
50
- z-index : $md -z-index-overlay-backdrop ;
48
+ z-index : $cdk -z-index-overlay-backdrop ;
51
49
pointer-events : auto ;
52
50
53
51
// TODO(jelbourn): figure out if there are actually spec'ed colors for both light and dark
61
59
}
62
60
63
61
.cdk-overlay-dark-backdrop {
64
- background : md-color ( $md-grey , 900 ); // TODO(crisbeto): make this theme-independent?
62
+ background : $cdk-overlay-dark-backdrop-background ;
65
63
}
66
64
67
65
.cdk-overlay-transparent-backdrop {
Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ $z-index-drawer: 100 !default;
22
22
// We want overlays to always appear over user content, so set a baseline
23
23
// very high z-index for the overlay container, which is where we create the new
24
24
// stacking context for all overlays.
25
- $md-z-index-overlay-container : 1000 ;
26
- $md-z-index-overlay : 1000 ;
27
- $md-z-index-overlay-backdrop : 1 ;
25
+ $cdk-z-index-overlay-container : 1000 ;
26
+ $cdk-z-index-overlay : 1000 ;
27
+ $cdk-z-index-overlay-backdrop : 1 ;
28
+
29
+ // Background color for all of the backdrops
30
+ $cdk-overlay-dark-backdrop-background : rgba (0 , 0 , 0 , 0.6 );
28
31
29
32
30
33
// Global constants
You can’t perform that action at this time.
0 commit comments