forked from FrontendMatter/bootstrap-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_sidebar-menu.scss
More file actions
77 lines (75 loc) · 1.65 KB
/
Copy path_sidebar-menu.scss
File metadata and controls
77 lines (75 loc) · 1.65 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
.sidebar-menu {
margin-bottom: $sm-spacing-y;
padding-left: 0;
padding-right: 0;
list-style: none;
}
.sidebar-menu-item {
position: relative;
overflow: hidden;
}
.sidebar-menu-button {
display: block;
font-weight: $sm-button-font-weight;
line-height: $sm-button-height;
padding-left: $sm-spacing-x;
font-size: $sm-button-font-size;
&, &:hover, &:focus {
text-decoration: none;
}
}
.active > .sidebar-menu-button {
font-weight: $sm-active-button-font-weight;
}
.sidebar-menu-button:not(:only-child):before {
font-family: $sm-toggle-family;
content: $sm-toggle-icon;
position: absolute;
right: $sm-spacing-x;
display: block;
font-size: $sm-toggle-font-size;
}
.open > .sidebar-menu-button:not(:only-child):before {
content: $sm-open-toggle-icon;
}
.sidebar-menu-icon {
vertical-align: middle;
width: $sm-icon-width;
font-size: $sm-icon-font-size;
display: inline-block;
line-height: normal;
position: relative;
&.material-icons {
top: -1px;
}
}
.sidebar-menu-label {
position: absolute;
right: $sm-spacing-x;
margin-top: floor(($sm-button-height - $sm-label-height) / 2);
padding: $sm-label-spacing-vertical $sm-label-spacing-horizontal;
font-size: $sm-label-font-size;
}
.sidebar-menu-button:not(:only-child) .sidebar-menu-label {
right: $sm-spacing-x + $sm-icon-font-size;
}
// submenus
.sidebar-submenu {
display: none;
list-style: none;
margin: 0;
padding: 0;
.open > & {
display: block;
}
.sidebar-menu-button {
line-height: $ssm-button-height;
font-size: $ssm-button-font-size;
}
.sidebar-menu-icon {
top:-1px;
position: relative;
font-size: $ssm-icon-font-size;
width: $ssm-icon-font-size + ($ssm-icon-font-size / 2);
}
}