-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
_menu-theme.scss
48 lines (40 loc) · 1.08 KB
/
_menu-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-menu-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.mat-menu-panel {
background: mat-color($background, 'card');
}
.mat-menu-item {
background: transparent;
color: mat-color($foreground, 'text');
&[disabled] {
&, &::after {
color: mat-color($foreground, 'disabled');
}
}
}
.mat-menu-item .mat-icon:not([color]),
.mat-menu-item-submenu-trigger::after {
color: mat-color($foreground, 'icon');
}
.mat-menu-item:hover,
.mat-menu-item.cdk-program-focused,
.mat-menu-item.cdk-keyboard-focused,
.mat-menu-item-highlighted {
&:not([disabled]) {
background: mat-color($background, 'hover');
}
}
}
@mixin mat-menu-typography($config) {
.mat-menu-item {
font: {
family: mat-font-family($config, subheading-2);
size: mat-font-size($config, subheading-2);
weight: mat-font-weight($config, subheading-2);
}
}
}