-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathstyles.css
283 lines (278 loc) · 5.82 KB
/
styles.css
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
html {
font-family: 'Helvetica', sans-serif;
background-color: #eeeeee;
margin: 0;
min-height: 100%;
overflow-x: hidden;
overflow-y: overlay;
display: flex;
justify-content: center;
}
body {
background-color: white;
max-width: 1100px;
margin: 0;
box-shadow: 0 0 30px #888;
display: flex;
/* Avoid horizontal overflow.
* Default (min-width: auto) prevents body from shrinking overwide content. */
min-width: 0;
}
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; }
aside header {
background-color: #3399dd;
color: white;
margin: 0;
margin-bottom: 1em;
padding: 1.5em 2em;
}
header h1 {
font-size: 3em;
margin: 0;
}
header h1 a {
display: flex;
white-space: nowrap;
}
header #logo-text {
flex-grow: 1;
}
header #logo {
height: 1em;
align-self: center;
margin-left: 0.2em;
}
header h2 {
opacity: 0.7;
font-size: 1em;
margin: 0;
}
header a, nav a {
text-decoration: none;
color: inherit;
}
aside {
background-color: rgba(50, 150, 220, 0.1);
flex: 0 0 250px;
}
nav {
display: flex;
flex-direction: column;
}
nav a {
padding: 0.8em 1.5em;
/* text ------- [icon] */
display: flex;
justify-content: space-between;
align-items: center;
/* use as a parent for absolute positioning */
position: relative;
}
nav a.selected {
background-color: rgba(50, 150, 220, 0.3);
}
nav a.folder::before {
content: "►";
color: #246;
position: absolute;
left: 0.2em;
}
nav a.folder.selected::before {
content: "▼";
}
nav a:hover:not(.selected) {
background-color: rgba(50, 150, 220, 0.1);
}
nav a .icon {
/* icons should be vertically and horizontally centered. */
display: inline-block;
font-size: 180%;
line-height: 1em;
text-align: center;
width: 1.2em;
/* Get color emoji if we can */
font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort;
order: 1;
}
nav a.child {
font-weight: 600;
padding: 0.4em 0.5em;
display: block;
color: #246;
border-left: 2em solid rgba(0,0,0,0.1);
}
main {
padding: 0 4em;
flex: 1 1 700px;
/* Avoid horizontal overflow.
* Default (min-width: auto) prevents main from shrinking overwide content. */
min-width: 0;
line-height: 150%;
position: relative;
}
main img {
max-width: 100%;
}
main h1, main h2 {
color: rgb(0, 0, 128);
border-bottom: 1px solid #def;
}
main h3 {
color: rgb(64, 64, 64);
}
hr {
border: none;
height: 1px;
background-color: rgba(0, 0, 0, 0.2);
width: 100%;
}
details {
background-color: rgba(50, 150, 220, 0.08);
margin-bottom: 0.5em;
padding: 0 1em;
overflow-y: hidden; /* Suppress margin-collapsing */
}
details[open] {
border-bottom: 1px solid rgba(0, 0, 128, 0.2);
margin-bottom: 1em;
}
details summary {
font-weight: bold;
background-color: rgba(50, 150, 220, 0.1);
border-color: rgba(0, 0, 128, 0.2);
border-width: 1px;
border-style: solid none;
padding: 0.2em;
margin: 0 -1em;
}
details summary:hover {
background-color: rgba(50, 150, 220, 0.2);
cursor: pointer;
}
pre > code {
display: block;
overflow-x: auto;
padding-left: 1em;
}
code {
background-color: #ffe;
border: 1px solid #feb;
padding: 5px 1px;
}
a[href^="https://code.woboq.org/"] {
font-family: monospace;
}
.tip {
color: #00796b;
}
/* Version marker ornaments */
.v6::before, .v7::before, .v8::before, .v9::before, .v10::before, .v11::before, .v12::before,
.v13::before, .v14::before, .v15::before, .v16::before, .v17::before, .v18::before, .v19::before {
color: #008;
border-radius: 3px;
padding: 0.2em 0.6em;
font-family: sans-serif;
font-weight: 500;
background-color: rgba(0, 128, 255, 0.2);
float: right;
line-height: 1.5em;
text-align: center;
font-size: x-small;
}
.v6::before { content: "clangd-6"; }
.v7::before { content: "clangd-7"; }
.v8::before { content: "clangd-8"; }
.v9::before { content: "clangd-9"; }
.v10::before { content: "clangd-10"; }
.v11::before { content: "clangd-11"; }
.v12::before { content: "clangd-12"; }
.v13::before { content: "clangd-13"; }
.v14::before { content: "clangd-14"; }
.v15::before { content: "clangd-15"; }
.v16::before { content: "clangd-16"; }
.v17::before { content: "clangd-17"; }
.v18::before { content: "clangd-18"; }
.v19::before { content: "clangd-19"; }
#edit {
text-decoration: none;
position: absolute;
top: 1em;
right: 4em;
}
/* Heading anchors (added by JS) */
main h1, main h2, main h3, main h4 {
overflow-x: clip;
position: relative;
}
.anchor-link {
opacity: 50%;
margin-left: 0.25em;
color: #666;
text-decoration: none;
position: absolute;
}
:hover > .anchor-link { opacity: 100%; }
.anchor-link span {
font-size: 60%;
display: none;
white-space: nowrap;
vertical-align: top;
}
.anchor-link:hover span { display: initial; }
.main-article {
text-align: center;
font-style: italic;
background-color: rgba(0,0,0,0.05);
padding: 0.3em 0;
margin: -0.5em 0;
text-decoration: none;
}
.main-article::before {
content: "→ Main article: ";
}
/* Mini layout, for phones */
@media (max-width: 600px) {
body {
flex-direction: column;
max-width: 100%;
}
main { padding: 0 1em; }
#edit { right: 1em; }
aside {
font-size: 80%;
flex: 0 1 auto;
}
aside header {
margin-bottom: 0;
padding: 1em;
}
aside header h2 {
display: none;
}
nav {
flex-direction: row;
flex-wrap: wrap;
}
/* [Icon] Text ---- */
nav a {
padding: 0.8em 1em;
margin: 0;
flex-direction: row;
white-space: nowrap;
justify-content: left;
flex: 1 1 0;
min-width: 115px;
}
nav a .icon {
margin-right: 0.1em;
order: -1;
}
nav hr {
margin: 0;
}
/* Folders/children are not shown in mini layout */
nav a.folder::before { content: none ! important; }
nav a.child { display: none; }
pre { white-space: pre-wrap; }
code { overflow-wrap: break-word; }
}