Debian Codegraph @

doc/_static/xdg.css

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