-
Notifications
You must be signed in to change notification settings - Fork 437
/
_sidebar-menu.scss
118 lines (101 loc) · 2.38 KB
/
_sidebar-menu.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// SIDEBAR menu
// -----------------------------------------------
// -----------------------------------------------
.sidebar-menu {
.sidebar-menu-item {
&.active {
> a,
a.active {
color: $gray-primary;
}
}
&.open {
.sub-menu {
max-height: 1600px;
}
& > button {
.fa {
@include rotate(90deg);
}
}
}
button,
a {
display: flex;
padding: 12px 32px;
width: 100%;
font-size: 0.938rem;
font-family: $heading-font-family;
color: $white;
transition: background $base-duration $base-timing;
.fa {
margin-left: ($base-point-grid * 2);
font-size: 18px;
transition: all .3s;
-moz-osx-font-smoothing: unset;
pointer-events: none;
}
}
a {
@include links($white, $white, rgba($white, 0.5), rgba($white, 0.5));
&:hover {
text-decoration: none;
}
}
.sub-menu {
max-height: 0px;
overflow: hidden;
transition: max-height 0.8s ease-in-out;
.sidebar-menu-item {
&.active {
color: $gray-primary;
}
}
a {
font-size: 0.875rem;
padding: $base-point-grid ($base-point-grid * 2);
@include links($white, $white, rgba($white, 0.5), rgba($white, 0.5));
&:hover {
text-decoration: none;
}
&:before {
content: "•";
margin-right: ($base-point-grid * 2);
}
}
}
}
}
// Sidebar doc versions
// -----------------------------------------------
// -----------------------------------------------
.doc-version-container {
margin-top: $base-point-grid * 7;
border-top: 1px solid rgba($white, 0.1);
}
.sidebar-doc-versions {
display: flex;
justify-content: center;
#doc-version-dropdown {
width: 100%;
&.active {
> a {
border-color: transparent;
}
ul {
display: block;
}
}
ul {
position: sticky;
li {
a {
font-size: 0.800rem;
}
}
li:nth-child(3) {
border-top: solid 1px rgba(255, 255, 255, 0.5);
}
}
}
}