-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
_menu-theme.scss
45 lines (36 loc) · 920 Bytes
/
_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
@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] {
color: mat-color($foreground, 'disabled');
}
.mat-icon {
color: mat-color($foreground, 'icon');
vertical-align: middle;
}
}
.mat-menu-item:hover,
.mat-menu-item:focus,
.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);
size: mat-font-size($config, subheading-2);
}
}
}