blob: 02e11518155321bc345314e04c362bd8b9e414b7 [file] [log] [blame]
Mario Six78a88f72018-07-10 08:40:17 +02001/* -*- coding: utf-8; mode: css -*-
2 *
3 * Sphinx HTML theme customization: read the doc
Heinrich Schuchardt0c098a52024-01-14 14:18:21 +01004 * Please don't add any color definition here, as the theme should
5 * work for both normal and dark modes.
Mario Six78a88f72018-07-10 08:40:17 +02006 */
7
Heinrich Schuchardt479edba2024-01-14 14:18:22 +01008@import 'css/theme.css';
9@import 'pygments.css';
10
Heinrich Schuchardt0c098a52024-01-14 14:18:21 +010011/* Improve contrast and increase size for easier reading. */
12
13body {
Heinrich Schuchardt479edba2024-01-14 14:18:22 +010014 font-family: sans-serif;
Heinrich Schuchardt0c098a52024-01-14 14:18:21 +010015 font-size: 100%;
16}
17
18h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
19 font-family: sans-serif;
20}
21
22div[class^="highlight"] pre {
23 font-family: monospace;
24 font-size: 100%;
25}
26
27.wy-menu-vertical {
28 font-family: sans-serif;
29}
30
31.c {
32 font-style: normal;
33}
34
35p {
36 font-size: 100%;
37}
38
Mario Six78a88f72018-07-10 08:40:17 +020039/* Interim: Code-blocks with line nos - lines and line numbers don't line up.
40 * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419
41 */
42
43div[class^="highlight"] pre {
44 line-height: normal;
45}
46.rst-content .highlight > pre {
47 line-height: normal;
48}
49
Heinrich Schuchardt0c098a52024-01-14 14:18:21 +010050/* Keep fields from being strangely far apart due to inheirited table CSS. */
51.rst-content table.field-list th.field-name {
52 padding-top: 1px;
53 padding-bottom: 1px;
54}
55.rst-content table.field-list td.field-body {
56 padding-top: 1px;
57 padding-bottom: 1px;
58}
59
Mario Six78a88f72018-07-10 08:40:17 +020060@media screen {
61
62 /* content column
63 *
64 * RTD theme's default is 800px as max width for the content, but we have
65 * tables with tons of columns, which need the full width of the view-port.
66 */
67
68 .wy-nav-content{max-width: none; }
69
70 /* table:
71 *
72 * - Sequences of whitespace should collapse into a single whitespace.
73 * - make the overflow auto (scrollbar if needed)
74 * - align caption "left" ("center" is unsuitable on vast tables)
75 */
76
77 .wy-table-responsive table td { white-space: normal; }
78 .wy-table-responsive { overflow: auto; }
79 .rst-content table.docutils caption { text-align: left; font-size: 100%; }
80
81 /* captions:
82 *
83 * - captions should have 100% (not 85%) font size
84 * - hide the permalink symbol as long as link is not hovered
85 */
86
87 .toc-title {
88 font-size: 150%;
89 font-weight: bold;
90 }
91
92 caption, .wy-table caption, .rst-content table.field-list caption {
93 font-size: 100%;
94 }
95 caption a.headerlink { opacity: 0; }
96 caption a.headerlink:hover { opacity: 1; }
97
98 /* Menu selection and keystrokes */
99
100 span.menuselection {
Mario Six78a88f72018-07-10 08:40:17 +0200101 font-family: "Courier New", Courier, monospace
102 }
103
104 code.kbd, code.kbd span {
Mario Six78a88f72018-07-10 08:40:17 +0200105 font-weight: bold;
106 font-family: "Courier New", Courier, monospace
107 }
108
109 /* fix bottom margin of lists items */
110
111 .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child {
112 margin-bottom: 12px;
113 }
114
115 /* inline literal: drop the borderbox, padding and red color */
116
117 code, .rst-content tt, .rst-content code {
118 color: inherit;
119 border: none;
120 padding: unset;
121 background: inherit;
122 font-size: 85%;
123 }
124
125 .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
126 color: inherit;
127 }
128}