forked from angular/material.angular.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_component-sidenav-theme.scss
More file actions
37 lines (30 loc) · 965 Bytes
/
_component-sidenav-theme.scss
File metadata and controls
37 lines (30 loc) · 965 Bytes
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
@import '../../../../node_modules/@angular/material/theming';
@mixin component-viewer-sidenav-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$sidenav: '.docs-component-viewer-sidenav';
.docs-component-viewer-sidenav {
// Section divider
h3 {
background: rgba(mat-color($foreground, secondary-text), .32);
color: mat-color($primary, default-contrast);
}
// Sidenav navigation items
li {
border-color: rgba(mat-color($foreground, secondary-text), .06);
color: mat-color($foreground, secondary-text);
> a {
color: mat-color($foreground, secondary-text);
&.is-selected,
&:hover,
&:focus {
background: mat-color($background, background);
color: mat-color($primary);
}
}
}
}
}