Debian Codegraph @

python_docs_theme/static/pydoctheme.css

raw
1 /* Common colours */
2 :root {
3 --good-color: rgb(41 100 51);
4 --good-border: rgb(79 196 100);
5 --middle-color: rgb(133 72 38);
6 --middle-border: rgb(244, 227, 76);
7 --bad-color: rgb(159 49 51);
8 --bad-border: rgb(244, 76, 78);
9 }
10
11 /* unset some styles from the classic stylesheet */
12 div.document,
13 div.body,
14 div.related,
15 div.body h1,
16 div.body h2,
17 div.body h3,
18 div.body h4,
19 div.body h5,
20 div.body h6,
21 div.sphinxsidebar a,
22 div.sphinxsidebar p,
23 div.sphinxsidebar ul,
24 div.sphinxsidebar h3,
25 div.sphinxsidebar h3 a,
26 div.sphinxsidebar h4,
27 .menu a,
28 .menu p,
29 .menu ul,
30 .menu h3,
31 .menu h3 a,
32 .menu h4,
33 table.docutils td,
34 table.indextable tr.cap,
35 pre {
36 background-color: inherit;
37 color: inherit;
38 }
39
40 /* Add underlines to links */
41 a[href] {
42 text-decoration: underline 1px;
43 }
44
45 /* Increase the underline offset for code to avoid obscuring underscores */
46 a[href]:has(> code) {
47 text-underline-offset: 0.25em;
48 }
49
50 /* No underline for navigation */
51 a.headerlink,
52 div.genindex-jumpbox a,
53 div.modindex-jumpbox a,
54 div#search-results a,
55 div.sphinxsidebar a,
56 div.toctree-wrapper a,
57 div[role=navigation] a,
58 table.contentstable a,
59 table.indextable a {
60 text-decoration: none;
61 }
62
63 /* Except when hovered */
64 div.genindex-jumpbox a:hover,
65 div.modindex-jumpbox a:hover,
66 div#search-results a:hover,
67 div.sphinxsidebar a:hover,
68 div.toctree-wrapper a:hover,
69 div[role=navigation] a:hover,
70 table.contentstable a:hover,
71 table.indextable a:hover {
72 text-decoration: underline;
73 text-underline-offset: auto;
74 }
75
76 body {
77 margin-left: 1em;
78 margin-right: 1em;
79 }
80
81 .mobile-nav,
82 .menu-wrapper {
83 display: none;
84 }
85
86 div.related {
87 margin-top: 0.5em;
88 margin-bottom: 1.2em;
89 padding: 0.5em 0;
90 border-width: 1px;
91 border-color: #ccc;
92 }
93
94 .mobile-nav + div.related {
95 border-bottom-style: solid;
96 }
97
98 .document + div.related {
99 border-top-style: solid;
100 }
101
102 div.related a:hover {
103 color: #0095c4;
104 }
105
106 .related .switchers {
107 display: inline-flex;
108 }
109
110 .switchers > div {
111 margin-right: 5px;
112 }
113
114 div.related ul::after {
115 content: '';
116 clear: both;
117 display: block;
118 }
119
120 .inline-search,
121 form.inline-search input {
122 display: inline;
123 }
124
125 form.inline-search input[type='submit'] {
126 /* In some languages, more than 40px is required */
127 width: auto;
128 min-width: 40px;
129 }
130
131 div.document {
132 display: flex;
133 /* Don't let long code literals extend beyond the right side of the screen */
134 overflow-wrap: break-word;
135 }
136
137 /* Don't let long code literals extend beyond the right side of the screen */
138 span.pre {
139 white-space: unset;
140 }
141
142 div.sphinxsidebar {
143 display: flex;
144 width: min(25vw, 350px);
145 float: none;
146 position: sticky;
147 top: 0;
148 max-height: 100vh;
149 color: #444;
150 background-color: #eee;
151 border-radius: 5px;
152 line-height: 130%;
153 font-size: smaller;
154 }
155
156 div.sphinxsidebar h3,
157 div.sphinxsidebar h4 {
158 margin-top: 1.5em;
159 }
160
161 div.bodywrapper {
162 margin-left: min(25vw, 350px);
163 }
164
165 div.sphinxsidebarwrapper {
166 box-sizing: border-box;
167 height: 100%;
168 overflow-x: hidden;
169 overflow-y: auto;
170 float: none;
171 flex-grow: 1;
172 }
173
174 div.sphinxsidebarwrapper > h3:first-child {
175 margin-top: 0.2em;
176 }
177
178 div.sphinxsidebarwrapper > ul > li > ul > li {
179 margin-bottom: 0.4em;
180 }
181
182 div.sphinxsidebar a:hover {
183 color: #0095c4;
184 }
185
186 form.inline-search input,
187 div.sphinxsidebar input,
188 div.related input {
189 font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
190 border: 1px solid #999999;
191 font-size: smaller;
192 border-radius: 3px;
193 }
194
195 div.sphinxsidebar input[type='text'] {
196 max-width: 150px;
197 }
198
199 #sidebarbutton {
200 display: flex;
201 justify-content: center;
202 align-items: center;
203 width: 12px;
204 min-width: 12px;
205 border-radius: 0 5px 5px 0;
206 border-left: none;
207 }
208
209 #sidebarbutton:hover {
210 background-color: #AAAAAA;
211 }
212
213 div.body {
214 padding: 0 0 0 1.2em;
215 }
216
217 div.body p, div.body dd, div.body li, div.body blockquote {
218 text-align: left;
219 line-height: 1.6;
220 }
221 div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
222 margin: 0;
223 border: 0;
224 padding: 0.3em 0;
225 }
226 div.body dl.field-list > dt {
227 line-height: 1.6;
228 }
229
230 div.body hr {
231 border: 0;
232 background-color: #ccc;
233 height: 1px;
234 }
235
236 div.body pre {
237 border-radius: 3px;
238 border: 1px solid #ac9;
239 }
240
241 div.body {
242 .good pre {
243 border-left: 3px solid var(--good-border);
244 }
245 .bad pre {
246 border-left: 3px solid var(--bad-border);
247 }
248 .maybe pre {
249 border-left: 3px solid var(--middle-border);
250 }
251 }
252
253 div.code-block-caption {
254 background-color: #eee;
255 border: 1px solid #ac9;
256 border-bottom: none;
257 border-radius: 3px 3px 0 0;
258 padding: 0.3em 0.6em;
259 font-size: 90%;
260 color: #333;
261
262 & + div pre {
263 border-top-left-radius: 0 !important;
264 border-top-right-radius: 0 !important;
265 }
266
267 & + div .copybutton {
268 border-top-right-radius: 0 !important;
269 }
270 }
271
272 /* Admonitions */
273 :root {
274 --admonition-background: #eee;
275 --admonition-border: #ccc;
276 --admonition-color: black;
277 --attention-background: #bbddff5c;
278 --attention-border: #0000ff36;
279 --caution-background: #ffc;
280 --caution-border: #dd6;
281 --danger-background: #ffe4e4;
282 --danger-border: red;
283 --error-background: #ffe4e4;
284 --error-border: red;
285 --hint-background: #dfd;
286 --hint-border: green;
287 --seealso-background: #ffc;
288 --seealso-border: #dd6;
289 --tip-background: #dfd;
290 --tip-border: green;
291 --warning-background: #ffe4e4;
292 --warning-border: red;
293 }
294
295 div.body div.admonition {
296 background-color: var(--admonition-background);
297 border: 1px solid var(--admonition-border);
298 border-radius: 3px;
299 color: var(--admonition-color);
300 }
301
302 div.body div.admonition.attention {
303 background-color: var(--attention-background);
304 border-color: var(--attention-border);
305 }
306
307 div.body div.admonition.caution {
308 background-color: var(--caution-background);
309 border-color: var(--caution-border);
310 }
311
312 div.body div.admonition.danger {
313 background-color: var(--danger-background);
314 border-color: var(--danger-border);
315 }
316
317 div.body div.admonition.error {
318 background-color: var(--error-background);
319 border-color: var(--error-border);
320 }
321
322 div.body div.admonition.hint {
323 background-color: var(--hint-background);
324 border-color: var(--hint-border);
325 }
326
327 div.body div.admonition.seealso {
328 background-color: var(--seealso-background);
329 border-color: var(--seealso-border);
330 }
331
332 div.body div.admonition.tip {
333 background-color: var(--tip-background);
334 border-color: var(--tip-border);
335 }
336
337 div.body div.admonition.warning {
338 background-color: var(--warning-background);
339 border-color: var(--warning-border);
340 }
341
342 div.body div.impl-detail {
343 border-radius: 3px;
344 }
345
346 div.body div.impl-detail > p {
347 margin: 0;
348 }
349
350 div.body a {
351 color: #0072aa;
352 }
353
354 div.body a:visited {
355 color: #6363bb;
356 }
357
358 div.body a:hover {
359 color: #00b0e4;
360 }
361
362 tt, code, pre {
363 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
364 font-size: 96.5%;
365 }
366
367 div.body pre {
368 line-height: 120%;
369 }
370
371 div.body tt,
372 div.body code {
373 border-radius: 3px;
374 }
375
376 div.body tt.descname,
377 div.body code.descname {
378 font-size: 120%;
379 }
380
381 div.body tt.xref,
382 div.body a tt,
383 div.body code.xref,
384 div.body a code {
385 font-weight: normal;
386 }
387
388 table.docutils {
389 border: 1px solid #ddd;
390 min-width: 20%;
391 border-radius: 3px;
392 margin-top: 10px;
393 margin-bottom: 10px;
394 }
395
396 table.docutils td,
397 table.docutils th {
398 border: 1px solid #ddd !important;
399 border-radius: 3px;
400 padding: 0.3em 0.5em;
401 }
402
403 table p,
404 table li {
405 text-align: left !important;
406 }
407
408 table.docutils th {
409 background-color: #eee;
410 }
411
412 table.footnote,
413 table.footnote td {
414 border: 0 !important;
415 }
416
417 div.footer {
418 line-height: 150%;
419 text-align: right;
420 width: auto;
421 margin-right: 10px;
422 }
423
424 div.footer a {
425 text-underline-offset: auto;
426 }
427
428 div.footer a:hover {
429 color: #0095c4;
430 }
431
432 /* C API return value annotations */
433 :root {
434 --refcount: var(--good-color);
435 --refcount-return-borrowed-ref: var(--middle-color);
436 }
437
438 .refcount {
439 color: var(--refcount);
440 }
441
442 .refcount.return_borrowed_ref {
443 color: var(--refcount-return-borrowed-ref)
444 }
445
446 .stableabi {
447 color: #229;
448 }
449
450 /* C API thread safety annotations */
451 :root {
452 --threadsafety-incompatible: var(--bad-color);
453 --threadsafety-compatible: var(--middle-color);
454 --threadsafety-distinct: var(--middle-color);
455 --threadsafety-shared: var(--good-color);
456 --threadsafety-atomic: var(--good-color);
457 }
458
459 .threadsafety.threadsafety-incompatible {
460 color: var(--threadsafety-incompatible);
461 }
462
463 .threadsafety.threadsafety-compatible {
464 color: var(--threadsafety-compatible);
465 }
466
467 .threadsafety.threadsafety-distinct {
468 color: var(--threadsafety-distinct);
469 }
470
471 .threadsafety.threadsafety-shared {
472 color: var(--threadsafety-shared);
473 }
474
475 .threadsafety.threadsafety-atomic {
476 color: var(--threadsafety-atomic);
477 }
478
479
480 dl > dt span ~ em,
481 .sig {
482 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
483 }
484
485 .toctree-wrapper ul {
486 padding-left: 20px;
487 }
488
489 .theme-selector {
490 margin-left: .5em;
491 }
492
493 div.genindex-jumpbox,
494 div.genindex-jumpbox > p {
495 display: inline-flex;
496 flex-wrap: wrap;
497 }
498
499 div.genindex-jumpbox a {
500 margin: 0 5px;
501 min-width: 30px;
502 text-align: center;
503 }
504
505 .copybutton {
506 cursor: pointer;
507 position: absolute;
508 top: 0;
509 right: 0;
510 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
511 font-size: 80%;
512 padding-left: .5em;
513 padding-right: .5em;
514 height: 100%;
515 max-height: min(100%, 2.4em);
516 border-radius: 0 3px 0 0;
517 color: #000;
518 background-color: #fff;
519 border: 1px solid #ac9; /* follows div.body pre */
520 display: none;
521 }
522
523 .copybutton:hover {
524 background-color: #eee;
525 }
526
527 .copybutton:active {
528 background-color: #ddd;
529 }
530
531 .highlight:active .copybutton {
532 display: block;
533 }
534
535 .highlight:hover .copybutton {
536 display: block;
537 }
538
539 @media (max-width: 1023px) {
540 /* Body layout */
541 div.body {
542 min-width: 100%;
543 padding: 0;
544 font-size: 0.875rem;
545 }
546 div.bodywrapper {
547 margin: 0;
548 }
549 /* Typography */
550 div.body h1 {
551 font-size: 1.625rem;
552 }
553 div.body h2 {
554 font-size: 1.25rem;
555 }
556 div.body h3, div.body h4, div.body h5 {
557 font-size: 1rem;
558 }
559 /* Override default styles to make more readable */
560 div.body ul {
561 padding-inline-start: 1rem;
562 }
563 div.body blockquote {
564 margin-inline-start: 1rem;
565 margin-inline-end: 0;
566 }
567 /* Remove sidebar and top related bar */
568 div.related, div.sphinxsidebar {
569 display: none;
570 }
571 /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */
572 html {
573 scroll-padding-top: 40px;
574 }
575 body {
576 margin-top: 40px;
577 }
578
579 /* Top navigation bar */
580 .mobile-nav {
581 display: block;
582 height: 40px;
583 width: 100%;
584 position: fixed;
585 top: 0;
586 left: 0;
587 box-shadow: rgba(0, 0, 0, 0.25) 0 0 2px 0;
588 z-index: 1;
589 }
590 .mobile-nav * {
591 box-sizing: border-box;
592 }
593 .nav-content {
594 position: absolute;
595 z-index: 1;
596 height: 40px;
597 width: 100%;
598 display: flex;
599 background-color: white;
600 }
601 .nav-items-wrapper {
602 display: flex;
603 flex: auto;
604 padding: .25rem;
605 align-items: stretch;
606 }
607 .nav-logo {
608 margin-right: 1rem;
609 flex-shrink: 0;
610 align-self: center;
611 }
612 .nav-content img {
613 display: block;
614 width: 20px;
615 }
616 .version_switcher_placeholder {
617 margin-right: 1rem;
618 }
619 .version_switcher_placeholder > select {
620 height: 100%;
621 }
622 .nav-content .search {
623 display: flex;
624 flex: auto;
625 border: 1px solid #a9a9a9;
626 align-items: stretch;
627 }
628 .nav-content .search input[type=search] {
629 border: 0;
630 padding-left: 24px;
631 width: 100%;
632 flex: 1;
633 }
634 .nav-content .search input[type=submit] {
635 height: 100%;
636 box-shadow: none;
637 border: 0;
638 border-left: 1px solid #a9a9a9;
639 cursor: pointer;
640 margin-right: 0;
641 }
642 .nav-content .search svg {
643 position: absolute;
644 align-self: center;
645 padding-left: 4px;
646 }
647 .toggler__input {
648 display: none;
649 }
650 .toggler__label {
651 width: 40px;
652 cursor: pointer;
653 display: flex;
654 align-items: center;
655 justify-content: center;
656 padding: 8px;
657 flex-shrink: 0;
658 }
659 .toggler__label:hover, .toggler__label:focus {
660 background-color: rgba(127 127 127 / 50%);
661 }
662 .toggler__label > span {
663 position: relative;
664 flex: none;
665 height: 2px;
666 width: 100%;
667 background: currentColor;
668 transition: all 400ms ease;
669 }
670 .toggler__label > span::before,
671 .toggler__label > span::after {
672 content: '';
673 height: 2px;
674 width: 100%;
675 background: inherit;
676 position: absolute;
677 left: 0;
678 top: -8px;
679 }
680 .toggler__label > span::after {
681 top: 8px;
682 }
683 .toggler__input:checked ~ nav > .toggler__label span {
684 transform: rotate(135deg);
685 }
686 .toggler__input:checked ~ nav > .toggler__label span::before {
687 transform: rotate(90deg);
688 }
689 .toggler__input:checked ~ nav > .toggler__label span::before,
690 .toggler__input:checked ~ nav > .toggler__label span::after {
691 top: 0;
692 }
693 .toggler__input:checked:hover ~ nav > .toggler__label span {
694 transform: rotate(315deg);
695 }
696 .toggler__input:checked ~ .menu-wrapper {
697 visibility: visible;
698 left: 0;
699 }
700
701 /* Sliding side menu */
702 .menu-wrapper {
703 display: block;
704 position: fixed;
705 top: 0;
706 transition: left 400ms ease;
707 left: -310px;
708 width: 300px;
709 height: 100%;
710 background-color: #eee;
711 color: #444444;
712 box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
713 overflow-y: auto;
714 }
715 .menu-wrapper.open {
716 visibility: visible;
717 left: 0;
718 }
719 .menu {
720 padding: 40px 10px 30px 20px;
721 }
722 .menu-wrapper h3,
723 .menu-wrapper h4 {
724 margin-bottom: 0;
725 font-weight: normal;
726 }
727 .menu-wrapper h4 {
728 font-size: 1.3em;
729 }
730 .menu-wrapper h3 {
731 font-size: 1.4em;
732 }
733 .menu-wrapper h3 + p,
734 .menu-wrapper h4 + p {
735 margin-top: 0.5rem;
736 }
737 .menu a {
738 font-size: smaller;
739 text-decoration: none;
740 }
741 .menu ul {
742 list-style: none;
743 line-height: 1.4;
744 overflow-wrap: break-word;
745 padding-left: 0;
746 }
747 .menu ul ul {
748 margin-left: 20px;
749 list-style: square;
750 }
751 .menu ul li {
752 margin-bottom: 0.5rem;
753 }
754 .language_switcher_placeholder {
755 margin-top: 2rem;
756 }
757 .language_switcher_placeholder select {
758 width: 100%;
759 }
760 .document {
761 position: relative;
762 z-index: 0;
763 }
764 /*Responsive tables*/
765 .responsive-table__container {
766 width: 100%;
767 overflow-x: auto;
768 }
769
770 .menu .theme-selector-label {
771 margin-top: .5em;
772 display: flex;
773 width: 100%;
774 }
775
776 .menu .theme-selector {
777 flex: auto;
778 }
779 }
780
781 @media (min-width: 1024px) {
782 div.footer {
783 margin-top: -2em;
784 }
785 }
786
787 /* Version change directives */
788 :root {
789 --versionadded: var(--good-color);
790 --versionchanged: var(--middle-color);
791 --deprecated: var(--bad-color);
792 --soft-deprecated: rgb(175, 0, 255);
793
794 --versionadded-border: var(--good-border);
795 --versionchanged-border: var(--middle-border);
796 --deprecated-border: var(--bad-border);
797 --soft-deprecated-border: rgb(175, 0, 255);
798 }
799
800 div.versionadded,
801 div.versionchanged,
802 div.deprecated,
803 div.deprecated-removed {
804 border-left: 3px solid;
805 padding: 0 1rem;
806 }
807
808 div.versionadded {
809 border-left-color: var(--versionadded-border);
810 }
811
812 div.versionchanged {
813 border-left-color: var(--versionchanged-border);
814 }
815
816 div.deprecated,
817 div.deprecated-removed,
818 div.versionremoved {
819 border-left-color: var(--deprecated-border);
820 }
821
822 div.soft-deprecated {
823 border-left-color: var(--soft-deprecated-border);
824 }
825
826 div.versionadded .versionmodified {
827 color: var(--versionadded);
828 }
829
830 div.versionchanged .versionmodified {
831 color: var(--versionchanged);
832 }
833
834 div.deprecated .versionmodified,
835 div.deprecated-removed .versionmodified,
836 div.versionremoved .versionmodified {
837 color: var(--deprecated);
838 }
839
840 div.soft-deprecated .versionmodified {
841 color: var(--soft-deprecated);
842 }
843
844 /* Hide header when printing */
845 @media print {
846 div.mobile-nav {
847 display: none;
848 }
849 }