@@ -28,13 +28,14 @@ $drawer-over-drawer-z-index: 4;
28
28
@include drawer-stacking-context ();
29
29
30
30
@include token-utils .use-tokens (
31
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
31
+ tokens-mat-sidenav .$prefix ,
32
+ tokens-mat-sidenav .get-token-slots ()
33
+ ) {
32
34
@include token-utils .create-token-slot (color , content- text- color);
33
35
@include token-utils .create-token-slot (background-color , content- background- color);
34
36
}
35
37
36
38
box-sizing : border-box ;
37
- -webkit-overflow-scrolling : touch ;
38
39
39
40
// Need this to take up space in the layout.
40
41
display : block ;
@@ -58,8 +59,10 @@ $drawer-over-drawer-z-index: 4;
58
59
}
59
60
60
61
// Note that the `NoopAnimationsModule` is being handled inside of the component code.
61
- & .ng-animate-disabled , .ng-animate-disabled & {
62
- .mat-drawer-backdrop , .mat-drawer-content {
62
+ & .ng-animate-disabled ,
63
+ .ng-animate-disabled & {
64
+ .mat-drawer-backdrop ,
65
+ .mat-drawer-content {
63
66
transition : none ;
64
67
}
65
68
}
@@ -84,7 +87,9 @@ $drawer-over-drawer-z-index: 4;
84
87
visibility : visible ;
85
88
86
89
@include token-utils .use-tokens (
87
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
90
+ tokens-mat-sidenav .$prefix ,
91
+ tokens-mat-sidenav .get-token-slots ()
92
+ ) {
88
93
@include token-utils .create-token-slot (background-color , scrim- color);
89
94
}
90
95
}
@@ -128,7 +133,9 @@ $drawer-over-drawer-z-index: 4;
128
133
@include drawer-stacking-context ($drawer-over-drawer-z-index );
129
134
130
135
@include token-utils .use-tokens (
131
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
136
+ tokens-mat-sidenav .$prefix ,
137
+ tokens-mat-sidenav .get-token-slots ()
138
+ ) {
132
139
@include token-utils .create-token-slot (color , container- text- color);
133
140
@include token-utils .create-token-slot (box-shadow , container- elevation- shadow);
134
141
@include token-utils .create-token-slot (background-color , container- background- color);
@@ -147,14 +154,15 @@ $drawer-over-drawer-z-index: 4;
147
154
overflow-y : auto ; // TODO(kara): revisit scrolling behavior for drawers
148
155
transform : translate3d (-100% , 0 , 0 );
149
156
150
-
151
- & , [dir = ' rtl' ] & .mat-drawer-end {
157
+ & ,
158
+ [dir = ' rtl' ] & .mat-drawer-end {
152
159
@include cdk .high-contrast {
153
160
border-right : $high-contrast-border ;
154
161
}
155
162
}
156
163
157
- [dir = ' rtl' ] & , & .mat-drawer-end {
164
+ [dir = ' rtl' ] & ,
165
+ & .mat-drawer-end {
158
166
@include cdk .high-contrast {
159
167
border-left : $high-contrast-border ;
160
168
border-right : none ;
@@ -170,7 +178,9 @@ $drawer-over-drawer-z-index: 4;
170
178
transform : translate3d (100% , 0 , 0 );
171
179
172
180
@include token-utils .use-tokens (
173
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
181
+ tokens-mat-sidenav .$prefix ,
182
+ tokens-mat-sidenav .get-token-slots ()
183
+ ) {
174
184
@include token-utils .create-token-slot (border-top-left-radius , container- shape);
175
185
@include token-utils .create-token-slot (border-bottom-left-radius , container- shape);
176
186
border-top-right-radius : 0 ;
@@ -180,7 +190,9 @@ $drawer-over-drawer-z-index: 4;
180
190
181
191
[dir = ' rtl' ] & {
182
192
@include token-utils .use-tokens (
183
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
193
+ tokens-mat-sidenav .$prefix ,
194
+ tokens-mat-sidenav .get-token-slots ()
195
+ ) {
184
196
@include token-utils .create-token-slot (border-top-left-radius , container- shape);
185
197
@include token-utils .create-token-slot (border-bottom-left-radius , container- shape);
186
198
border-top-right-radius : 0 ;
@@ -215,7 +227,9 @@ $drawer-over-drawer-z-index: 4;
215
227
box-shadow : none ;
216
228
217
229
@include token-utils .use-tokens (
218
- tokens-mat-sidenav .$prefix , tokens-mat-sidenav .get-token-slots ()) {
230
+ tokens-mat-sidenav .$prefix ,
231
+ tokens-mat-sidenav .get-token-slots ()
232
+ ) {
219
233
@include token-utils .create-token-slot (border-right-color , container- divider- color);
220
234
border-right-width : 1px ;
221
235
border-right-style : solid ;
@@ -251,7 +265,6 @@ $drawer-over-drawer-z-index: 4;
251
265
width : 100% ;
252
266
height : 100% ;
253
267
overflow : auto ;
254
- -webkit-overflow-scrolling : touch ;
255
268
}
256
269
257
270
.mat-sidenav-fixed {
0 commit comments