-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_menu.scss
More file actions
101 lines (87 loc) · 3.76 KB
/
_menu.scss
File metadata and controls
101 lines (87 loc) · 3.76 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* @docs */
$menu-label-bg: transparent !default;
$menu-label-color: var(--#{$prefix}body-color) !default;
$menu-label-font-size: 0.75em !default;
$menu-list-line-height: 1.25em !default;
$menu-item-padding: 0.5em 0.75em !default;
$menu-item-bg: transparent !default;
$menu-item-color: var(--#{$prefix}body-color) !default;
$menu-item-active-bg: var(--#{$prefix}primary) !default;
$menu-item-active-color: var(--#{$prefix}white) !default;
$menu-item-disabled-bg: transparent !default;
$menu-item-disabled-color: var(--#{$prefix}secondary) !default;
$menu-item-border-radius: var(--#{$prefix}border-radius) !default;
$menu-item-hover-bg: var(--#{$prefix}tertiary-bg) !default;
$menu-item-hover-color: var(--#{$prefix}body-color) !default;
$menu-icon-spacer: 0.5rem !default;
$menu-submenu-border-left: 1px solid #445e00 !default;
$menu-submenu-padding: 0 0.75em !default;
$menu-submenu-margin: 0.75em 1.25em !default;
/* @docs */
.menu {
.menu-label {
--#{$prefix}menu-label-bg: #{$menu-label-bg};
--#{$prefix}menu-label-color: #{$menu-label-color};
--#{$prefix}menu-label-font-size: #{$menu-label-font-size};
background: var(--#{$prefix}menu-label-bg);
color: var(--#{$prefix}menu-label-color);
font-size: var(--#{$prefix}menu-label-font-size);
text-transform: uppercase;
}
.menu-list {
--#{$prefix}menu-list-line-height: #{$menu-list-line-height};
--#{$prefix}menu-submenu-padding-left: #{$menu-submenu-padding};
line-height: var(--#{$prefix}menu-list-line-height);
padding: var(--#{$prefix}menu-submenu-padding-left);
}
.menu-item {
--#{$prefix}menu-item-padding: #{$menu-item-padding};
--#{$prefix}menu-item-bg: #{$menu-item-bg};
--#{$prefix}menu-item-color: #{$menu-item-color};
--#{$prefix}menu-item-active-bg: #{$menu-item-active-bg};
--#{$prefix}menu-item-active-color: #{$menu-item-active-color};
--#{$prefix}menu-item-hover-bg: #{$menu-item-hover-bg};
--#{$prefix}menu-item-hover-color: #{$menu-item-hover-color};
--#{$prefix}menu-item-disabled-bg: #{$menu-item-disabled-bg};
--#{$prefix}menu-item-disabled-color: #{$menu-item-disabled-color};
--#{$prefix}menu-item-border-radius: #{$menu-item-border-radius};
list-style: none;
}
.menu-button {
display: block;
list-style: none;
background: var(--#{$prefix}menu-item-bg);
color: var(--#{$prefix}menu-item-color);
padding: var(--#{$prefix}menu-item-padding);
border-radius: var(--#{$prefix}menu-item-border-radius);
border: 0;
&.focused:not(.active) {
color: var(--#{$prefix}menu-item-hover-color);
background-color: var(--#{$prefix}menu-item-hover-bg);
}
&.active {
--#{$prefix}menu-item-bg: var(--#{$prefix}menu-item-active-bg);
--#{$prefix}menu-item-color: var(
--#{$prefix}menu-item-active-color
);
}
&.disabled {
--#{$prefix}menu-item-bg: var(--#{$prefix}menu-item-disabled-bg);
--#{$prefix}menu-item-color: var(
--#{$prefix}menu-item-disabled-color
);
}
&.menu-icon .icon {
--#{$prefix}menu-icon-spacer: #{$menu-icon-spacer};
margin-right: var(--#{$prefix}menu-icon-spacer);
}
}
.menu-submenu {
--#{$prefix}menu-submenu-border-left: #{$menu-submenu-border-left};
--#{$prefix}menu-submenu-padding: #{$menu-submenu-padding};
--#{$prefix}menu-submenu-margin: #{$menu-submenu-margin};
border-left: var(--#{$prefix}menu-submenu-border-left);
padding: var(--#{$prefix}menu-submenu-padding);
margin: var(--#{$prefix}menu-submenu-margin);
}
}