-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
_expansion-theme.scss
48 lines (40 loc) · 1.16 KB
/
_expansion-theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@import '../core/theming/palette';
@import '../core/theming/theming';
@import '../core/typography/typography-utils';
@mixin mat-expansion-panel-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.mat-expansion-panel {
background: mat-color($background, card);
color: mat-color($foreground, text);
}
.mat-action-row {
border-top-color: mat-color($foreground, divider);
}
.mat-expansion-panel-header {
&.cdk-keyboard-focused,
&.cdk-program-focused,
&:hover {
background: mat-color($background, hover);
}
}
.mat-expansion-panel-header-title {
color: mat-color($foreground, text);
}
.mat-expansion-panel-header-description,
.mat-expansion-indicator::after {
color: mat-color($foreground, secondary-text);
}
}
@mixin mat-expansion-panel-typography($config) {
.mat-expansion-panel-header {
font: {
family: mat-font-family($config, subheading-1);
size: mat-font-size($config, subheading-1);
weight: mat-font-weight($config, subheading-1);
}
}
.mat-expansion-panel-content {
@include mat-typography-level-to-styles($config, body-1);
}
}