1
- @use ' @angular/material' as mat ;
2
1
@import ' public-util' ;
3
2
4
- // apply additional overwrites
3
+ // ---------------------------
4
+ // MDC Overwrites
5
+ // ---------------------------
5
6
@mixin mat-css-other-overwrites {
6
7
@include _mat-mdc-fab-overwrites ();
7
8
@include _mat-mdc-button-overwrites ();
8
9
@include _mat-mdc-text-field-overwrites ();
9
10
@include _mat-mdc-slide-toggle-overwrites ();
10
11
@include _mat-mdc-select-overwrites ();
11
12
@include _mat-mdc-checkbox-overwrites ();
12
- @include _mat-mdc-date-picker-overwrites ();
13
13
@include _mat-mdc-chips-overwrites ();
14
+ @include _mat-mdc-date-picker-overwrites ();
14
15
}
15
16
16
17
// ---------------------------
66
67
--mat-mdc-button-ripple-color : #{mat-css-color (500 , 0.1 , " primary" )} ;
67
68
}
68
69
}
69
-
70
70
& .mat-accent {
71
71
@include mat-css-light-dark-theme-global () {
72
72
--mat-mdc-button-ripple-color : #{mat-css-color (500 , 0.1 , " accent" )} ;
73
73
}
74
74
}
75
-
76
75
& .mat-warn {
77
76
@include mat-css-light-dark-theme-global () {
78
77
--mat-mdc-button-ripple-color : #{mat-css-color (500 , 0.1 , " warn" )} ;
88
87
--mdc-protected-button-label-text-color : #{$color-primary } ;
89
88
}
90
89
}
91
-
92
90
& .mat-accent {
93
91
@include mat-css-light-dark-theme-global () {
94
92
--mdc-filled-button-label-text-color : #{$color-accent } ;
95
93
--mdc-protected-button-label-text-color : #{$color-accent } ;
96
94
}
97
95
}
98
-
99
96
& .mat-warn {
100
97
@include mat-css-light-dark-theme-global () {
101
98
--mdc-filled-button-label-text-color : #{$color-warn } ;
251
248
}
252
249
}
253
250
251
+ // ---------------------------
252
+ // CHIPS component
253
+ // ---------------------------
254
+ @mixin _mat-mdc-chips-overwrites {
255
+ .mat-mdc-standard-chip {
256
+ @include mat-css-dark-theme-global () {
257
+ --mdc-chip-elevated-container-color : #{map-get ($mat-css-palette-background-dark , " unselected-chip" )} ;
258
+ }
259
+ @include mat-css-light-theme-global () {
260
+ --mdc-chip-elevated-container-color : #{map-get ($mat-css-palette-background , " unselected-chip" )} ;
261
+ }
262
+ }
263
+ }
264
+
254
265
// ---------------------------
255
266
// DATE PICKER component
256
267
// ---------------------------
275
286
}
276
287
}
277
288
.mat-calendar-body-cell :not (.mat-calendar-body-disabled ).mat-calendar-body-active > .mat-calendar-body-today {
278
- color : mat-css-contrast- color-primary (500 );
289
+ color : mat-css-color (500 , null , $palette , true );
279
290
}
280
291
.mat-calendar-body-cell :not (.mat-calendar-body-disabled ):hover
281
292
> .mat-calendar-body-cell-content :not (.mat-calendar-body-selected ):not (.mat-calendar-body-comparison-identical ) {
282
293
background : mat-css-color (500 , 0.3 , $palette );
283
294
}
284
- }
285
-
286
- @mixin _mat-mdc-chips-overwrites {
287
- .mat-mdc-standard-chip {
288
- @include mat-css-dark-theme-global () {
289
- --mdc-chip-elevated-container-color : #{map-get ($mat-css-palette-background-dark , " unselected-chip" )} ;
290
- }
291
- @include mat-css-light-theme-global () {
292
- --mdc-chip-elevated-container-color : #{map-get ($mat-css-palette-background , " unselected-chip" )} ;
293
- }
294
- }
295
295
}
0 commit comments