Debian Codegraph @

docs/source/_static/styles.css

raw
1 /* Make .. deprecation:: blocks visible
2 * (by default they're entirely unstyled)
3 */
4 .deprecated {
5 background-color: #ffe13b;
6 }
7
8 /* Make typevar/paramspec names distinguishable from classes. */
9 .typevarref {
10 text-decoration: dashed underline;
11 }
12
13 /* Add a snakey triskelion ornament to <hr>
14 * https://stackoverflow.com/questions/8862344/css-hr-with-ornament/18541258#18541258
15 * but only do it to <hr>s in the content box, b/c the RTD popup control panel
16 * thingummy also has an <hr> in it, and putting the ornament on that looks
17 * *really weird*. (In particular, the background color is wrong.)
18 */
19 .rst-content hr {
20 overflow: visible;
21 }
22
23 .rst-content hr:after {
24 /* This .svg gets displayed on top of the middle of the hrule. It has a box
25 * behind the logo that's colored to match the RTD theme body background
26 * color (#fcfcfc), which hides the middle part of the hrule to make it
27 * look like there's a gap in it. The size of the box determines the size
28 * of the gap.
29 */
30 background: url('ornament.svg') no-repeat top center;
31 background-size: contain;
32 content: "";
33 display: block;
34 height: 30px;
35 position: relative;
36 top: -15px;
37 }
38
39 /* Hacks to make the upper-left logo area look nicer */
40
41 .wy-side-nav-search > a {
42 color: #306998 !important;
43 }
44
45 /* vertically center version text */
46 .wy-side-nav-search > a {
47 display: flex;
48 align-items: center;
49 margin: auto;
50 width: max-content;
51 }
52
53 .wy-side-nav-search > a img.logo {
54 margin-left: 0;
55 margin-right: 5px;
56 }
57
58 /* Get rid of the weird super dark "Contents" label that wastes vertical space
59 */
60 .wy-menu-vertical > p.caption {
61 display: none !important;
62 }
63
64 /* I do not like RTD's use of Roboto Slab for headlines. So force it back to
65 * Lato (or whatever fallback it's using if Lato isn't available for some
66 * reason). I also experimented with using Montserrat to be extra obnoxiously
67 * on brand, but honestly you couldn't really tell so there wasn't much point
68 * in adding page weight for that, and this is going to match the body text
69 * better. (Montserrat for body text *definitely* didn't look good, alas.)
70 */
71 h1, h2, h3, h4, h5, h6, legend, .rst-content .toctree-wrapper p.caption {
72 font-family: inherit !important;
73 }
74
75 /* Get rid of the horrible red for literal content */
76 .rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
77 color: #222 !important;
78 }
79
80 /* Style the "Need help?" text just underneath the search box */
81 .trio-help-hint {
82 line-height: normal;
83 margin-bottom: 0;
84 /* font-size: 12px; */
85 font-size: 80%; /* matches the "Search docs" box */
86 padding-top: 6px;
87 color: #306998;
88 text-align: center;
89 }
90
91 a.trio-help-hint, .trio-help-hint a:link, .trio-help-hint a:visited {
92 color: inherit;
93 /* Like text-decoration: underline, but with a thinner line */
94 text-decoration: none;
95 border-bottom: 1px solid;
96 }