|
12 | 12 | // We use invert() here to have the darken the background color expected to be used. If the
|
13 | 13 | // background is light, we use a dark backdrop. If the background is dark,
|
14 | 14 | // we use a light backdrop.
|
15 |
| - $drawer-backdrop-color: invert(mat-color($background, card, 0.6)) !default; |
16 |
| - $drawer-background-color: mat-color($background, dialog) !default; |
17 |
| - $drawer-container-background-color: mat-color($background, background) !default; |
18 |
| - $drawer-push-background-color: mat-color($background, dialog) !default; |
| 15 | + $drawer-backdrop-color: invert(mat-color($background, card, 0.6)); |
| 16 | + $drawer-background-color: mat-color($background, dialog); |
| 17 | + $drawer-container-background-color: mat-color($background, background); |
| 18 | + $drawer-push-background-color: mat-color($background, dialog); |
| 19 | + $drawer-side-border: solid 1px mat-color($foreground, divider); |
19 | 20 |
|
20 | 21 | .mat-drawer-container {
|
21 | 22 | background-color: $drawer-container-background-color;
|
|
31 | 32 | }
|
32 | 33 | }
|
33 | 34 |
|
| 35 | + .mat-drawer-side { |
| 36 | + border-right: $drawer-side-border; |
| 37 | + |
| 38 | + &.mat-drawer-end { |
| 39 | + border-left: $drawer-side-border; |
| 40 | + border-right: none; |
| 41 | + } |
| 42 | + } |
| 43 | + |
| 44 | + [dir='rtl'] .mat-drawer-side { |
| 45 | + border-left: $drawer-side-border; |
| 46 | + border-right: none; |
| 47 | + |
| 48 | + &.mat-drawer-end { |
| 49 | + border-left: none; |
| 50 | + border-right: $drawer-side-border; |
| 51 | + } |
| 52 | + } |
| 53 | + |
34 | 54 | .mat-drawer-backdrop.mat-drawer-shown {
|
35 | 55 | background-color: $drawer-backdrop-color;
|
36 | 56 | }
|
|
0 commit comments