Repository navigation
Expand file tree
/
Copy pathsof-custom.css
More file actions
412 lines (349 loc) · 11.2 KB
/
Copy pathsof-custom.css
File metadata and controls
412 lines (349 loc) · 11.2 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
/* -- Extra CSS styles for SOF content (RTD theme) ----------------------- */
/* make the page width fill the window */
.wy-nav-content {
max-width: none;
}
/* take the background color from the palette */
.wy-side-nav-search {
background-color: #33335b
}
/* (temporarily) add an under development tagline to the bread crumb
.wy-breadcrumbs::after {
content: " (Content under development)";
background-color: #FFFACD;
color: red;
font-weight: bold;
}
*/
/* code block highlight color in rtd changed to lime green, no no no */
.wy-nav-content .rst-content tt.literal,
.wy-nav-content .rst-content code.literal,
.wy-nav-content .highlight {
background: #f0f0f0;
}
.wy-nav-content .rst-content tt.literal,
.wy-nav-content .rst-content code.literal {
color: #000000;
}
/* Make the version number more visible */
.wy-side-nav-search>div.version {
color: rgba(255,255,255,1);
}
/* squish the space between a paragraph before a list */
div > p + ul, div > p + ol {
margin-top: -20px;
}
/* add some space before the figure caption */
p.caption {
/* border-top: 1px solid; */
margin-top: 1em;
}
/* add a colon after the figure/table number (before the caption) */
span.caption-number::after {
content: ": ";
}
p.extrafooter {
text-align: right;
margin-top: -36px;
}
table.align-center {
display: table !important;
}
.code-block-caption {
color: #000;
font: italic 85%/1 arial,sans-serif;
padding: 1em 0;
text-align: center;
}
/* make .. hlist:: tables fill the page */
table.hlist {
width: 95% !important;
}
/* override rtd theme white-space no-wrap in table heading and content */
th,td {
white-space: normal !important;
}
/* tweak for doxygen-generated API headings (for RTD theme) */
.rst-content dl.group>dt {
display:none !important;
}
.rst-content dl.group {
margin: 0 0 12px 0px;
}
.rst-content dl.group>dd {
margin-left: 0 !important;
}
.rst-content p.breathe-sectiondef-title {
text-decoration: underline; /* for API sub-headings */
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 12px;
}
.rst-content div.breathe-sectiondef {
padding-left: 0 !important;
}
/* -- PyData Theme Custom Layout Dimensions --------------------------------- */
:root {
--pst-sidebar-secondary: 11.5rem !important;
}
/* Widen overall container on wide displays */
.bd-page-width {
max-width: 98rem !important;
}
/* Make left primary navigation sidebar slimmer */
@media (min-width: 960px) {
.bd-sidebar-primary {
width: 13.5% !important;
min-width: 175px !important;
max-width: 210px !important;
padding: 1rem 0.45rem 1rem !important;
font-size: 0.86rem !important;
}
/* Make right secondary TOC sidebar slimmer */
.bd-sidebar-secondary {
width: 11.5rem !important;
min-width: 11.5rem !important;
max-width: 12.5rem !important;
padding: 1.25rem 0.35rem 1rem !important;
font-size: 0.80rem !important;
}
}
/* Vendor icon styling for platform tables */
img.vendor-icon {
display: inline-block !important;
vertical-align: middle !important;
margin-right: 6px !important;
width: 18px !important;
height: 18px !important;
border-radius: 4px !important;
}
table.docutils td:first-child {
white-space: nowrap !important;
font-weight: 600 !important;
}
/* Expand main article container */
@media (min-width: 1200px) {
.bd-main .bd-content .bd-article-container {
max-width: 82em !important;
padding: 1rem 1.75rem !important;
}
.bd-main .bd-content .bd-article-container .bd-article {
padding-left: 1rem !important;
padding-right: 1rem !important;
padding-top: 1.25rem !important;
}
}
/* -- Sphinx-Tabs Modern Styling -------------------------------------------- */
.sphinx-tabs {
margin-top: 1.25rem;
margin-bottom: 1.75rem;
padding: 0;
}
.sphinx-tabs [role="tablist"] {
display: flex;
flex-wrap: wrap;
border-bottom: 2px solid var(--pst-color-border, #d1d5da);
margin-bottom: 0;
padding-left: 0;
gap: 4px;
}
/* Base tab button */
.sphinx-tabs-tab {
font-family: inherit;
font-size: 0.95rem;
font-weight: 500;
line-height: 1.5;
padding: 0.6rem 1.25rem;
border: 1px solid transparent;
border-bottom: none;
border-radius: 6px 6px 0 0;
background-color: transparent;
color: var(--pst-color-text-muted, #677384);
cursor: pointer;
margin-bottom: -2px;
transition: all 0.15s ease-in-out;
}
.sphinx-tabs-tab:hover {
color: var(--pst-color-primary, #0a7d91);
background-color: var(--pst-color-surface, rgba(0, 0, 0, 0.04));
}
.sphinx-tabs-tab:focus-visible {
outline: 2px solid var(--pst-color-accent, #0a7d91);
outline-offset: 2px;
}
/* Active tab button (light mode default) */
.sphinx-tabs-tab[aria-selected="true"] {
font-weight: 600;
color: var(--pst-color-primary, #0a7d91) !important;
background-color: var(--pst-color-on-background, #ffffff) !important;
border: 2px solid var(--pst-color-border, #d1d5da) !important;
border-top: 2px solid var(--pst-color-primary, #0a7d91) !important;
border-bottom: 2px solid var(--pst-color-on-background, #ffffff) !important;
margin-bottom: -2px;
z-index: 2;
}
/* Tab content panel (light mode default) */
.sphinx-tabs-panel {
border: 2px solid var(--pst-color-border, #d1d5da);
border-top: none;
border-radius: 0 0 6px 6px;
background-color: var(--pst-color-on-background, #ffffff);
color: var(--pst-color-text-base, #222832);
padding: 1.25rem;
margin: 0;
position: relative;
z-index: 1;
}
.sphinx-tabs-panel[hidden] {
display: none !important;
}
.sphinx-tabs-panel .highlight {
margin: 0 !important;
background-color: var(--pst-color-surface, #f8fafc) !important;
border: 1px solid var(--pst-color-border, #d1d5da) !important;
border-radius: 6px;
}
.sphinx-tabs-panel .highlight pre {
margin: 0;
padding: 0.85rem 1rem;
background-color: transparent !important;
color: inherit;
}
/* -- Dark Mode Overrides (PyData Theme data attributes) -- */
html[data-theme="dark"] .sphinx-tabs [role="tablist"],
html[data-mode="dark"] .sphinx-tabs [role="tablist"] {
border-bottom-color: var(--pst-color-border, #48566b) !important;
}
html[data-theme="dark"] .sphinx-tabs-tab,
html[data-mode="dark"] .sphinx-tabs-tab {
color: var(--pst-color-text-muted, #9ca4af) !important;
background-color: transparent !important;
}
html[data-theme="dark"] .sphinx-tabs-tab:hover,
html[data-mode="dark"] .sphinx-tabs-tab:hover {
color: var(--pst-color-text-base, #ffffff) !important;
background-color: var(--pst-color-surface, #29313d) !important;
}
html[data-theme="dark"] .sphinx-tabs-tab[aria-selected="true"],
html[data-mode="dark"] .sphinx-tabs-tab[aria-selected="true"] {
color: var(--pst-color-text-base, #ffffff) !important;
background-color: #222832 !important;
border-color: var(--pst-color-border, #48566b) !important;
border-top: 2px solid var(--pst-color-primary, #0a7d91) !important;
border-bottom: 2px solid #222832 !important;
}
html[data-theme="dark"] .sphinx-tabs-panel,
html[data-mode="dark"] .sphinx-tabs-panel {
background-color: #222832 !important;
border-color: var(--pst-color-border, #48566b) !important;
color: var(--pst-color-text-base, #ced6dd) !important;
}
html[data-theme="dark"] .sphinx-tabs-panel .highlight,
html[data-mode="dark"] .sphinx-tabs-panel .highlight,
html[data-theme="dark"] .highlight,
html[data-mode="dark"] .highlight {
background-color: #14181e !important;
border-color: #364150 !important;
color: var(--pst-color-text-base, #ced6dd) !important;
}
html[data-theme="dark"] .sphinx-tabs-panel .highlight pre,
html[data-mode="dark"] .sphinx-tabs-panel .highlight pre {
background-color: transparent !important;
color: #ced6dd !important;
}
html[data-theme="dark"] button.copybtn,
html[data-mode="dark"] button.copybtn {
background-color: var(--pst-color-surface, #29313d) !important;
color: var(--pst-color-text-base, #ced6dd) !important;
border-color: var(--pst-color-border, #48566b) !important;
}
/* -- System Dark Mode Fallback (@media prefers-color-scheme) -- */
@media (prefers-color-scheme: dark) {
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs [role="tablist"] {
border-bottom-color: var(--pst-color-border, #48566b) !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-tab {
color: var(--pst-color-text-muted, #9ca4af) !important;
background-color: transparent !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-tab:hover {
color: var(--pst-color-text-base, #ffffff) !important;
background-color: var(--pst-color-surface, #29313d) !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-tab[aria-selected="true"] {
color: var(--pst-color-text-base, #ffffff) !important;
background-color: #222832 !important;
border-color: var(--pst-color-border, #48566b) !important;
border-top: 2px solid var(--pst-color-primary, #0a7d91) !important;
border-bottom: 2px solid #222832 !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-panel {
background-color: #222832 !important;
border-color: var(--pst-color-border, #48566b) !important;
color: var(--pst-color-text-base, #ced6dd) !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-panel .highlight,
html:not([data-theme="light"]):not([data-mode="light"]) .highlight {
background-color: #14181e !important;
border-color: #364150 !important;
color: var(--pst-color-text-base, #ced6dd) !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) .sphinx-tabs-panel .highlight pre {
background-color: transparent !important;
color: #ced6dd !important;
}
html:not([data-theme="light"]):not([data-mode="light"]) button.copybtn {
background-color: var(--pst-color-surface, #29313d) !important;
color: var(--pst-color-text-base, #ced6dd) !important;
border-color: var(--pst-color-border, #48566b) !important;
}
}
/* -- Breathe C API middle content pane styling (PyData theme) ------------- */
.bd-article p.breathe-sectiondef-title {
font-size: 1.25rem;
font-weight: 700;
margin-top: 1.8rem;
margin-bottom: 0.8rem;
padding-bottom: 0.3rem;
border-bottom: 1px solid var(--pst-color-border, #e5e7eb);
color: var(--pst-color-text-base);
}
.bd-article dl.c.function,
.bd-article dl.c.struct,
.bd-article dl.c.enum,
.bd-article dl.c.macro,
.bd-article dl.c.type {
margin: 1.25rem 0;
padding: 0.75rem 1rem;
border: 1px solid var(--pst-color-border, #e5e7eb);
border-radius: 6px;
background-color: var(--pst-color-surface, #f8f9fa);
}
.bd-article dl.c > dt.sig {
font-family: var(--pst-font-family-monospace, monospace);
font-size: 0.92rem;
font-weight: 600;
padding: 0.4rem 0.6rem;
margin: -0.75rem -1rem 0.75rem -1rem;
border-bottom: 1px solid var(--pst-color-border, #e5e7eb);
background-color: rgba(0, 0, 0, 0.03);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
overflow-x: auto;
}
html[data-theme="dark"] .bd-article dl.c > dt.sig,
html[data-mode="dark"] .bd-article dl.c > dt.sig {
background-color: rgba(255, 255, 255, 0.04);
}
.bd-article dl.c > dd {
margin-left: 0.5rem;
margin-bottom: 0;
}
.bd-article dl.c .field-list {
margin-top: 0.75rem;
margin-bottom: 0.5rem;
}
.bd-article dl.c .field-list dt {
font-weight: 600;
color: var(--pst-color-text-muted, #6c757d);
}