Debian Codegraph @

doc/_static/xdg.css

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /* XDG CSS theme for Sphinx + Furo
2
3 https://www.sphinx-doc.org
4 https://pypi.org/project/furo/
5 */
6
7 /* FONTS */
8
9 @font-face {
10 font-family: "Inter var";
11 font-weight: 100 900;
12 font-display: swap;
13 font-style: normal;
14 font-named-instance: "Regular";
15 src: url("inter.woff2") format("woff2");
16 }
17
18 :root {
19 --rounded-corner: 12px;
20 --blue1: rgb(153,193,241);
21 --blue2: rgb(98,160,234);
22 --blue3: rgb(53,132,228);
23 --blue4: rgb(28,113,216);
24 --blue5: rgb(26,95,180);
25 --green1: rgb(143,240,164);
26 --green2: rgb(87,227,137);
27 --green3: rgb(51,209,122);
28 --green4: rgb(46,194,126);
29 --green5: rgb(38,162,105);
30 --yellow1: rgb(249,240,107);
31 --yellow2: rgb(248,228,92);
32 --yellow3: rgb(246,211,45);
33 --yellow4: rgb(245,194,17);
34 --yellow5: rgb(229,165,10);
35 --orange1: rgb(255,190,111);
36 --orange2: rgb(255,163,72);
37 --orange3: rgb(255,120,0);
38 --orange4: rgb(230,97,0);
39 --orange5: rgb(198,70,0);
40 --red1: rgb(246,97,81);
41 --red2: rgb(237,51,59);
42 --red3: rgb(224,27,36);
43 --red4: rgb(192,28,40);
44 --red5: rgb(165,29,45);
45 --purple1: rgb(220,138,221);
46 --purple2: rgb(192,97,203);
47 --purple3: rgb(145,65,172);
48 --purple4: rgb(129,61,156);
49 --purple5: rgb(97,53,131);
50 --brown1: rgb(205,171,143);
51 --brown2: rgb(181,131,90);
52 --brown3: rgb(152,106,68);
53 --brown4: rgb(134,94,60);
54 --brown5: rgb(99,69,44);
55 --light1: rgb(255,255,255);
56 --light2: rgb(246,245,244);
57 --light3: rgb(222,221,218);
58 --light4: rgb(192,191,188);
59 --light5: rgb(154,153,150);
60 --dark1: rgb(119,118,123);
61 --dark2: rgb(94,92,100);
62 --dark3: rgb(61,56,70);
63 --dark4: rgb(36,31,49);
64 --dark5: rgb(0,0,0);
65 --text: #f6f5f4;
66 --tocbg: var(--light2);
67 --tocfg: var(--dark3);
68 --borders: var(--light3);
69 --link: var(--blue5);
70 --link-underline: var(--blue1);
71 }
72
73 ::selection {
74 background-color: rgba(153,193,241,0.5);
75 }
76
77 @media (prefers-color-scheme: dark) {
78 :root {
79 --tocbg: var(--dark5);
80 --tocfg: var(--light5);
81 --borders: var(--dark3);
82 --link: var(--blue1);
83 --link-underline: var(--blue5);
84 }
85 ::selection {
86 background-color: rgba(26,95,180,0.4);
87 }
88 }
89
90 * {
91 -moz-box-sizing: border-box;
92 -webkit-box-sizing: border-box;
93 box-sizing: border-box;
94 }
95
96 html, body {
97 margin: 0;
98 padding: 0;
99 font-size: 16px;
100 font-family: "Inter var", sans-serif;
101 font-weight: 400;
102 line-height: 1.6;
103 }
104 @media (min-width: 700px) {
105 html, body {
106 font-size: 18px;
107 }
108 }
109
110 a {
111 color: var(--link);
112 text-decoration-color: var(--link-underline);
113 }
114
115 p strong {
116 font-weight: 600;
117 opacity: 0.9;
118 }
119
120 h1 {
121 font-weight: 500;
122 font-size: 2rem;
123 margin-top: '0';
124 margin-bottom: 1.5rem;
125 font-family: "Inter var", sans-serif;
126 }
127 h2 {
128 font-weight: 800;
129 font-size: 1.7rem;
130 margin-top: 2.5rem;
131 margin-bottom: 1.2rem;
132 font-family: "Inter var", sans-serif;
133 }
134 h3 {
135 font-weight: 800;
136 font-size: 1.3rem;
137 margin-top: 2.2rem;
138 margin-bottom: 1rem;
139 font-family: "Inter var", sans-serif;
140 }
141 h4 {
142 font-weight: 700;
143 font-size: 1.1rem;
144 margin-top: 1rem;
145 margin-bottom: 1rem;
146 font-family: "Inter var", sans-serif;
147 }
148 h5 {
149 font-weight: 700;
150 font-size: 1rem;
151 margin-top: 1rem;
152 margin-bottom: 1rem;
153 font-family: "Inter var", sans-serif;
154 }
155 h2,h3,h4,h5 { opacity: 0.7; }
156
157 ul.simple {
158 margin: 1rem 1rem 3rem;
159 }
160
161 ul.simple li {
162 list-style-image: url(bullet.svg);
163 margin-inline-end: 1ch;
164 margin-bottom: 1rem;
165 }
166 ul.simple li:hover::marker { }
167
168 .related-pages {
169 font-size: 10pt;
170 font-weight: 800;
171 display: flex;
172 flex-direction: row-reverse;
173 align-items: stretch;
174 justify-content: space-between;
175 }
176
177 .related-pages a .title {
178 color: var(--dark1);
179 }
180 .related-pages a svg {
181 width: 32px; height: 32px;
182 }
183
184 .prev-page {
185 border-radius: 8px;
186 padding: 8px 24px 8px 8px;
187
188 }
189 .next-page {
190 border-radius: 8px;
191 padding: 8px 8px 8px 24px;
192 }
193 .related-pages a.prev-page,
194 .related-pages a.next-page {
195 float: none;
196 max-width: inherit; /* cancel furo's 50% */
197 }
198 .related-pages a.prev-page:hover, .related-pages a.next-page:hover {
199 background-color: var(--tocbg);
200 }
201
202 @media (min-width: 700px) {
203 .related-pages {
204 font-size: 14pt;
205 }
206 .prev-page {
207 padding: 16px 48px 16px 16px;
208 border-radius: 24px;
209
210 }
211 .next-page {
212 padding: 16px 16px 16px 48px;
213 border-radius: 24px;
214 }
215 }
216 .related-pages a.prev-page:only-child,
217 .related-pages a.next-page:only-child,
218 .page-info {
219 /* align-self: flex-end; i wish */
220 width: 100%; /* big buttons instead */
221 }
222
223 .toctree-wrapper ul {
224 margin: 0; padding: 0;
225 }
226
227 .toctree-wrapper li {
228 list-style: none;
229 margin: 0 0 1rem 0;
230 }
231 .toctree-wrapper li.toctree-l1 {
232 font-size: 14pt;
233 font-weight: 600;
234
235 }
236 .toctree-wrapper li.toctree-l1 > a { color: var(--tocfg); }
237
238 .toctree-wrapper li.toctree-l2 {
239 list-style-image: url(toc_bullet.svg);
240 margin: 0;
241 font-size: 12pt;
242 font-weight: 400;
243 padding: 0.2rem;
244 }
245 .toctree-wrapper > ul ul {
246 margin-top: 1rem;
247 display: grid;
248 grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
249 gap: .2rem;
250 }
251 .toctree-wrapper > ul ul a {
252 background-color: transparent;
253 }
254 /* tiled TOC with images */
255
256 ul.tiled-toc {
257 display: grid;
258 gap: 1rem;
259 grid-auto-flow: row;
260 margin: 1rem 0; padding: 0;
261 text-align: center;
262 margin-top: 2rem;
263 grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
264 }
265 ul.tiled-toc li {
266 display: block;
267 list-style: none;
268 }
269 ul.tiled-toc li img {
270 display: block;
271 width: 100%;
272 image-rendering: crisp-edges;
273 image-rendering: pixelated;
274 }
275 ul.tiled-toc li img::after {
276 content: "";
277 }
278
279 ul.tiled-toc a {
280 color: black;
281 text-decoration: none;
282 font-weight: 600;
283 }
284
285 @media (prefers-color-scheme: dark) {
286 ul.tiled-toc a { color: white; }
287 }
288
289
290 table.docutils {
291 font-size: 90%;
292 box-shadow: none;
293 border-collapse: collapse;
294 border-spacing: 0;
295 border-radius: 0;
296 text-align: left;
297 border-width: 0;
298 box-sizing: border-box;
299 }
300 /* reset crazy */
301 table.docutils th, table.docutils tr, table.docutils td {
302 background-color: transparent;
303 text-align: left;
304 }
305
306 table.docutils td, table.docutils th {
307 border-width: 0;
308 padding: .25rem;
309 }
310 table.docutils tr {
311 border-width: 0;
312 border-bottom: 1px solid var(--borders);
313 }
314
315 table.docutils thead tr {
316 font-weight: 800;
317 border-width: 0;
318 box-sizing: inherit;
319 border-bottom: 2px solid var(--borders);
320 }
321
322 .hig-palette-table.align-default {
323 display: table;
324 width: 100%;
325 }
326
327 img.hig-palette-swatch {
328 display: block;
329 width: 42px;
330 aspect-ratio: 1 / 1;
331 border-radius: 50%;
332 }
333
334 .hig-palette-table colgroup { display: none; }
335 .hig-palette-table .stub,
336 .hig-palette-table .head.stub {
337 width: 50px;
338 }
339
340 video {
341 width: 100%;
342 height: auto;
343 }
344
345 footer {
346 margin-bottom: 3rem;
347 }
348
349 .sidebar-drawer {
350
351 }
352
353 .sidebar-brand-text {
354 font-family: Cantarell, -apple-system, BlinkMacSystemFont, "Helvetica", sans-serif;
355 font-size: 14pt;
356 font-weight: 800;
357 }
358
359 .sidebar-search-container,
360 .sidebar-search {
361 border-radius: 99999px;
362 border: none;
363 }
364 .sidebar-search-container {
365 margin: 0 var(--sidebar-item-spacing-horizontal);
366 transition: background-color 0.2s linear;
367 background-color: rgba(0,0,0,0.06);
368 }
369 .sidebar-search-container:hover {
370 background-color: rgba(0,0,0,0.09);
371 }
372 .sidebar-search-container:focus-within {
373 background-color: rgba(0,0,0,0.12);
374 }
375
376 @media (prefers-color-scheme: dark) {
377 .sidebar-search-container {
378 background-color: rgba(255,255,255,0.06);
379 }
380 .sidebar-search-container:hover {
381 background-color: rgba(255,255,255,0.09);
382 }
383 .sidebar-search-container:focus-within {
384 background-color: rgba(255,255,255,0.12);
385 }
386 }
387
388 .sidebar-tree .toctree-l1,
389 .sidebar-tree .toctree-l2 {
390 margin: 1px 12px;
391 border-radius: 6px;
392 color: var(--link);
393 }
394
395 .sidebar-tree .toctree-l1 > .reference {
396 color: var(--link);
397 }
398
399 .sidebar-tree .toctree-l2 {
400 margin: 1px 0;
401 font-size: 90%;
402 text-wrap: balance;
403 overflow-wrap: break-word;
404 hyphens: manual;
405 }
406
407 .sidebar-tree li > ul {
408 margin-left: 0;
409 }
410 .sidebar-tree li > ul .reference {
411 padding-left: calc(1.5*var(--sidebar-item-spacing-horizontal));
412 }
413
414 .sidebar-tree label[for^="toctree-checkbox"] {
415 -webkit-user-select: none;
416 -moz-user-select: none;
417 -ms-user-select: none;
418 user-select: none;
419 }
420
421 .sidebar-tree li.toctree-l3 a {
422 margin: 1px 0;
423 padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)
424 var(--sidebar-item-spacing-vertical) calc(2*var(--sidebar-item-spacing-horizontal)) ; /* extra indentation */
425 }
426
427 .sidebar-tree .reference {
428 background: rgba(0,0,0,0);
429 transition: background 0.2s linear;
430 border-radius: 6px;
431 padding: var(--sidebar-item-spacing-vertical) calc(0.75*var(--sidebar-item-spacing-horizontal));
432 }
433 .sidebar-tree .reference:hover,
434 .sidebar-tree .current > .reference:hover {
435 /* background: var(--color-background-hover); */
436 background: rgba(0,0,0,0.03);
437 }
438
439 .sidebar-tree .reference.current {
440 background: rgba(0,0,0,0.06);
441 }
442 .sidebar-tree .reference.current:hover {
443 background: rgba(0,0,0,0.09);
444 }
445
446 .sidebar-tree .current-page > .reference {
447 font-weight: 600;
448 }
449
450 .theme-toggle {
451 display: none; /* just go with auto */
452 }