Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
419 lines (344 loc) · 9.74 KB
/
Copy pathextra.css
File metadata and controls
419 lines (344 loc) · 9.74 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
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*
Box2D look on top of doxygen's built-in dark theme (HTML_COLORSTYLE DARK).
Restores the Box2D cyan accent and grays, backs the transparent SVG diagrams,
and styles screenshots, prose width, and callouts. Loaded after doxygen.css,
so plain overrides win by order.
*/
/* Doxygen's DARK style bakes its colors, so these only feed the overrides below */
:root {
--b3-page: #292a2d;
--b3-panel: #32363d;
--b3-edge: #3c4048;
--b3-edge-hover: #5f6670;
--b3-text: #D8D8D8;
--b3-muted: #9aa0a6;
--b3-accent: #67d8ef;
--b3-warm: #e5b567;
--b3-plate: #CCCCCC;
}
/* Page */
/* Soften contrast. Doxygen's dark is near black, restore the Box2D grays */
body {
background-color: var(--b3-page);
color: var(--b3-text);
}
#titlearea,
div.header,
#side-nav,
#nav-tree {
background-color: var(--b3-page);
}
#titlearea,
div.header {
border-bottom-color: var(--b3-edge);
}
/* Panels and selection sit one step lighter than the page */
#nav-tree .selected,
div.fragment, pre.fragment, span.tt,
.memItemLeft, .memItemRight, .memTemplParams,
.memtitle, .memname, .memname td,
.memproto, dl.reflist dt,
div.toc,
table.doxtable th, .fieldtable th,
th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone,
table.doxtable tr:nth-child(even) td,
.directory tr.even {
background-color: var(--b3-panel);
}
.directory tr.odd {
background-color: var(--b3-page);
}
/* Cap line length for readability */
div.contents {
max-width: 1000px;
}
/* Prose reads best near 75 characters, the reference tables keep the wider cap */
.textblock {
max-width: 820px;
}
/* Links and headings */
/* Box2D cyan for links, symbol cross references, and section headings */
a, a:link, a:visited,
.contents a:visited,
a.el, a.el:visited, a.code, a.code:visited, a.line, a.line:visited,
a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited {
color: var(--b3-accent);
}
/* Doxygen bolds internal links only, so prose would mix two link weights */
.textblock a.el {
font-weight: normal;
}
.contents a:hover {
text-decoration: underline;
}
h2.groupheader,
.memtitle {
color: var(--b3-accent);
}
h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow {
text-shadow: 0 0 15px var(--b3-accent);
}
/* A page's # heading is the title and its ## headings render as h1 at 200% bold,
so the title has to outrank them */
div.headertitle .title {
font-size: 240%;
font-weight: 600;
line-height: 1.2;
}
/* Doxygen draws the group underline with side shadows filled in its black page color */
h2.groupheader {
box-shadow: 12px 0 var(--b3-page), -12px 0 var(--b3-page), 12px 1px var(--b3-edge), -12px 1px var(--b3-edge);
}
td h2.groupheader {
box-shadow: 13px 0 var(--b3-page), -13px 0 var(--b3-page), 13px 1px var(--b3-edge), -13px 1px var(--b3-edge);
}
/* Reference members */
/* Typedef types left aligned and free to wrap, so a long opaque struct typedef doesn't widen the
column, push the short callback return types right and squeeze the signatures */
table.memberdecls:has(#header-typedef-members) td.memItemLeft {
text-align: left;
white-space: normal;
}
/* Member list and field table edges in the border gray instead of navy */
.mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplParams, td.ititle,
tr.heading + tr[class^='memitem'] td.memItemLeft,
tr.groupHeader + tr[class^='memitem'] td.memItemLeft,
tr.inherit_header + tr[class^='memitem'] td.memItemLeft,
tr.heading + tr[class^='memitem'] td.memItemRight,
tr.groupHeader + tr[class^='memitem'] td.memItemRight,
tr.inherit_header + tr[class^='memitem'] td.memItemRight,
tr.heading + tr[class^='memitem'] td.memTemplParams,
tr.heading + tr td.ititle,
tr.groupHeader + tr[class^='memitem'] td.memTemplParams,
tr.groupHeader + tr td.ititle,
tr.inherit_header + tr[class^='memitem'] td.memTemplParams,
table.fieldtable, table.memberdecls-inline,
.fieldtable td.fieldtype, .fieldtable td.fieldname, .fieldtable td.fieldinit, .fieldtable td.fielddoc,
.memberdecls-inline th, .fieldtable th {
border-color: var(--b3-edge);
}
/* The member tab joins its box with a shadow and a strip, both in doxygen's navy */
.memtitle {
box-shadow: 0 10px 0 -1px var(--b3-panel), 0 2px 8px 0 rgba(0, 0, 0, 0.075);
}
.memtitle:after {
background: var(--b3-panel);
}
.memtitle, .memproto, dl.reflist dt, .memdoc, dl.reflist dd {
border-color: var(--b3-edge);
}
.memberdecls-inline th, .fieldtable th {
background-color: var(--b3-panel);
color: var(--b3-text);
}
/* Images */
/* Doxygen embeds SVG with object. The diagrams are transparent, so back them with a light plate
to stay legible on a dark page */
.image:has(object) {
background-color: var(--b3-plate);
border: 10px solid var(--b3-plate);
}
/* Raster images are screenshots, already opaque, so no plate */
.image:has(img) img {
border: 1px solid var(--b3-edge);
border-radius: 6px;
}
/* Fit wide images to the page, a link around a screenshot opens it full size */
.image img,
.image object {
max-width: 100%;
height: auto;
}
/* Caption sits on the light plate */
.caption {
padding-top: 10px;
color: black;
}
.image:has(img) .caption {
color: var(--b3-muted);
font-weight: normal;
font-size: 90%;
}
/* Callouts */
/* Callouts share one panel with an accent edge.
@note and > [!NOTE] give dl.note, @warning and > [!WARNING] give dl.warning,
> [!CAUTION] gives dl.attention, a plain quote like > [!caution]: gives blockquote.doxtable */
dl.note, dl.remark, dl.warning, dl.attention, dl.important,
blockquote.doxtable {
background-color: var(--b3-panel);
color: var(--b3-text);
border: none;
border-left: 4px solid var(--b3-accent);
border-radius: 4px;
padding: 10px 16px;
margin: 12px 0;
}
dl.warning, dl.attention, dl.important,
blockquote.doxtable {
border-left-color: var(--b3-warm);
}
dl.note dt, dl.remark dt {
color: var(--b3-accent);
}
dl.warning dt, dl.attention dt, dl.important dt,
blockquote.doxtable b:first-child {
color: var(--b3-warm);
}
blockquote.doxtable p {
margin: 0;
}
/* Doxygen titles > [!CAUTION] as Attention, overlay the GitHub title in the same font */
dl.attention dt {
visibility: hidden;
position: relative;
}
dl.attention dt::after {
content: "Caution";
visibility: visible;
position: absolute;
left: 0;
top: 0;
}
/* Search */
/* Search box on the panel gray with the cyan accent on focus, in place of the black field and blue edge */
#MSearchBox {
background-color: var(--b3-panel);
border: 1px solid var(--b3-edge);
border-radius: 6px;
padding: 2px 6px 2px 2px;
transition: border-color 0.15s, box-shadow 0.15s;
}
#MSearchBox:hover {
border-color: var(--b3-edge-hover);
}
#MSearchBox.MSearchBoxActive,
#MSearchBox:focus-within {
border-color: var(--b3-accent);
box-shadow: 0 0 0 2px rgba(103, 216, 239, 0.2);
}
#MSearchField {
width: 12em;
background-color: transparent;
color: var(--b3-text);
font-family: inherit;
font-size: 14px;
}
#MSearchField::placeholder {
color: var(--b3-muted);
}
/* The lens circle is filled to hide the handle behind it, so it must match the box */
.search-icon::before {
background: var(--b3-panel);
border-color: var(--b3-muted);
}
.search-icon::after {
border-color: var(--b3-muted);
}
.search-icon-dropdown {
border-top-color: var(--b3-muted);
}
#MSearchSelectWindow,
#MSearchResultsWindow {
background-color: var(--b3-page);
border: 1px solid var(--b3-edge);
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
a.SelectItem {
color: var(--b3-text);
}
a.SelectItem:hover {
color: var(--b3-text);
background-color: var(--b3-panel);
}
/* Tree */
/* Plain text so the tree doesn't compete with the page's links, cyan only on hover.
Doxygen sets its own small font here */
#nav-tree .label {
font: 13px system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
line-height: 22px;
}
#nav-tree a {
color: var(--b3-text);
}
#nav-tree a:hover {
color: var(--b3-accent);
}
/* Doxygen dims the current page, mark it bright with an accent edge instead */
#nav-tree .selected {
box-shadow: inset 3px 0 var(--b3-accent);
}
#nav-tree .selected a {
color: white;
}
span.arrowhead {
border-right-color: var(--b3-muted);
border-bottom-color: var(--b3-muted);
}
.selected span.arrowhead {
border-right-color: var(--b3-text);
border-bottom-color: var(--b3-text);
}
/* Tree sync toggle in the panel grays with the cyan accent on hover */
div.nav-sync-icon {
background-color: var(--b3-panel);
border: 1px solid var(--b3-edge);
border-radius: 3px;
}
div.nav-sync-icon:hover {
background-color: var(--b3-edge);
}
div.nav-sync-icon.active:after {
background-color: var(--b3-panel);
border-top-color: var(--b3-muted);
}
div.nav-sync-icon.active:hover:after {
border-top-color: var(--b3-accent);
}
span.sync-icon-left {
border-left-color: var(--b3-muted);
border-top-color: var(--b3-muted);
}
span.sync-icon-right {
border-right-color: var(--b3-muted);
border-bottom-color: var(--b3-muted);
}
div.nav-sync-icon:hover span.sync-icon-left {
border-left-color: var(--b3-accent);
border-top-color: var(--b3-accent);
}
div.nav-sync-icon:hover span.sync-icon-right {
border-right-color: var(--b3-accent);
border-bottom-color: var(--b3-accent);
}
/* Tree resize handle, shown on hover */
.ui-resizable-e {
background-color: var(--b3-edge);
}
.ui-resizable-e:after {
border-left-color: var(--b3-muted);
border-right-color: var(--b3-muted);
}
/* Footer */
/* Footer bar on the page gray, doxygen fills it black. The directory pages put a breadcrumb in it */
#nav-path ul {
background: var(--b3-page);
border-top: 1px solid var(--b3-edge);
border-bottom: none;
color: var(--b3-muted);
}
.navpath li,
.navpath li.footer {
color: var(--b3-muted);
}
.navpath li.navelem a {
color: var(--b3-accent);
}
#nav-path li.navelem:after {
background: var(--b3-page);
box-shadow: 2px -2px 0 2px var(--b3-edge);
}
#nav-path li.navelem:hover,
#nav-path li.navelem:hover:after {
background-color: var(--b3-panel);
}