blob: c73c8295eb1eaadfab16bb6fc7dc8314c996853c (
plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
.navbarItem .inner {
background-color: var(--oxford-blue);
color: var(--fg);
padding: 8px;
border-radius: 8px;
transition-property: background-color, color;
transition-duration: .15s;
position: relative;
}
.navbarItem {
text-decoration: none;
display: block;
}
.navbarItem .icon { display: inline-block; }
.navbarItem .icon .collapseIcon {
transform: rotate(0deg);
transition-property: transform;
transition-duration: .3s;
}
.navbarItem .icon .collapseIcon.collapsed {
transform: rotate(-90deg);
}
.navbarItem .icon,
.navbarItem .title {
cursor: pointer;
}
.navbarItem.indentLevel0 { margin-bottom: 12px; }
.navbarItem.active .inner,
.navbarItem.link:hover .inner {
background-color: var(--heliotrope-gray);
color: var(--oxford-blue);
}
.navbarItem.chapter .inner,
.navbarItem.pinned .inner {
background-color: transparent;
color: var(--fg);
padding: 4px 0;
overflow: visible;
}
.navbarItem.pinned .inner .title {
margin: 0;
font-style: italic;
opacity: .8;
color: var(--heliotrope-gray)
}
.navbarItem.pinned * { cursor: default !important; }
.navbarItem .title {
vertical-align: top;
margin-left: 8px;
margin-top: 3px;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: calc(100% - 32px);
}
.navbarItem.chapter .title { margin-top: 1px; }
.navbarItem.chapter .chapterChildren {
transition-property: height;
transition-duration: .3s;
overflow: hidden;
}
.navbarItem.chapter.childrenCollapsed > .chapterChildren { height: 0; }
.navbarItem.chapter > .chapterChildren { height: var(--children-height); }
.navbarItem .inner,
.navbarItem .icon,
.navbarItem .icon .collapseIcon {
height: 24px;
}
.navbarItem > div > svg { vertical-align: super; }
@media (prefers-color-scheme: light) {
.navbarItem .inner { background-color: var(--heliotrope-gray); }
.navbarItem.active .inner,
.navbarItem.link:hover .inner {
color: var(--bg);
background-color: var(--fg);
}
.navbarItem.pinned .inner .title {
opacity: .6;
color: var(--oxford-blue)
}
}
.mobileNav {
width: 48px;
text-align: center;
line-height: 0;
}
.mobileNav .button:last-child {
margin-bottom: 0;
}
.mobileNav .button {
padding: 12px;
background-color: var(--fire-opal);
display: inline-block !important;
min-width: 0;
border-radius: 24px;
margin: 0;
box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 25%);
width: 24px;
height: 24px;
position: relative;
}
.mobileNav .button > svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.mobileNav .button.small {
padding: 6px;
background-color: var(--purple-navy);
margin-bottom: 12px;
opacity: 0;
transition: opacity .3s;
}
.mobileNav.open .button.small {
opacity: 1;
}
|