blob: f6f2b941a5d61f1b4b3279792a12243900d6d356 [file] [log] [blame]
Markus Heiserbc214672016-07-03 10:05:28 +02001/* -*- coding: utf-8; mode: css -*-
2 *
Markus Heiser9abaf972016-07-03 05:09:32 -03003 * Sphinx HTML theme customization: read the doc
Mauro Carvalho Chehaba6fb8b52021-12-07 10:53:02 +01004 * Please don't add any color definition here, as the theme should
5 * work for both normal and dark modes.
Markus Heiserbc214672016-07-03 10:05:28 +02006 */
7
Darrick J. Wong44ba0bb2018-10-04 18:06:03 -07008/* Improve contrast and increase size for easier reading. */
9
10body {
11 font-family: serif;
Darrick J. Wong44ba0bb2018-10-04 18:06:03 -070012 font-size: 100%;
13}
14
15h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
16 font-family: sans-serif;
17}
18
Darrick J. Wong44ba0bb2018-10-04 18:06:03 -070019div[class^="highlight"] pre {
20 font-family: monospace;
Darrick J. Wong44ba0bb2018-10-04 18:06:03 -070021 font-size: 100%;
22}
23
24.wy-menu-vertical {
25 font-family: sans-serif;
26}
27
28.c {
29 font-style: normal;
30}
31
32p {
33 font-size: 100%;
34}
35
Markus Heiser4c047782017-06-17 10:17:21 +020036/* Interim: Code-blocks with line nos - lines and line numbers don't line up.
37 * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419
38 */
39
40div[class^="highlight"] pre {
41 line-height: normal;
42}
43.rst-content .highlight > pre {
44 line-height: normal;
45}
46
Kees Cook1b1438b2019-10-01 11:25:31 -070047/* Keep fields from being strangely far apart due to inheirited table CSS. */
48.rst-content table.field-list th.field-name {
49 padding-top: 1px;
50 padding-bottom: 1px;
51}
52.rst-content table.field-list td.field-body {
53 padding-top: 1px;
54 padding-bottom: 1px;
55}
56
Markus Heiserbc214672016-07-03 10:05:28 +020057@media screen {
58
Markus Heiser9abaf972016-07-03 05:09:32 -030059 /* content column
60 *
61 * RTD theme's default is 800px as max width for the content, but we have
62 * tables with tons of columns, which need the full width of the view-port.
63 */
64
65 .wy-nav-content{max-width: none; }
66
67 /* table:
68 *
69 * - Sequences of whitespace should collapse into a single whitespace.
70 * - make the overflow auto (scrollbar if needed)
71 * - align caption "left" ("center" is unsuitable on vast tables)
72 */
73
74 .wy-table-responsive table td { white-space: normal; }
75 .wy-table-responsive { overflow: auto; }
76 .rst-content table.docutils caption { text-align: left; font-size: 100%; }
77
Markus Heiser4eb40f12016-07-03 05:14:03 -030078 /* captions:
79 *
80 * - captions should have 100% (not 85%) font size
81 * - hide the permalink symbol as long as link is not hovered
82 */
83
Mauro Carvalho Chehabef88f102016-07-19 12:35:08 -030084 .toc-title {
85 font-size: 150%;
86 font-weight: bold;
87 }
88
Markus Heiser4eb40f12016-07-03 05:14:03 -030089 caption, .wy-table caption, .rst-content table.field-list caption {
90 font-size: 100%;
91 }
92 caption a.headerlink { opacity: 0; }
93 caption a.headerlink:hover { opacity: 1; }
94
Mauro Carvalho Chehab1414f042016-09-19 08:07:35 -030095 /* Menu selection and keystrokes */
96
97 span.menuselection {
Mauro Carvalho Chehab1414f042016-09-19 08:07:35 -030098 font-family: "Courier New", Courier, monospace
99 }
100
101 code.kbd, code.kbd span {
Mauro Carvalho Chehab1414f042016-09-19 08:07:35 -0300102 font-weight: bold;
103 font-family: "Courier New", Courier, monospace
104 }
105
Markus Heiser916f6772017-06-17 10:17:20 +0200106 /* fix bottom margin of lists items */
107
108 .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child {
109 margin-bottom: 12px;
110 }
111
Markus Heiserd1669c82016-08-05 11:19:43 +0200112 /* inline literal: drop the borderbox, padding and red color */
Markus Heiser4eb40f12016-07-03 05:14:03 -0300113
114 code, .rst-content tt, .rst-content code {
115 color: inherit;
116 border: none;
Markus Heiserd1669c82016-08-05 11:19:43 +0200117 padding: unset;
Markus Heiser4eb40f12016-07-03 05:14:03 -0300118 background: inherit;
119 font-size: 85%;
120 }
121
122 .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
123 color: inherit;
124 }
Markus Heiserbc214672016-07-03 10:05:28 +0200125}