qemu
210 строк · 4.9 Кб
1/* -*- coding: utf-8; mode: css -*-
2*
3* Sphinx HTML theme customization: read the doc
4* Based on Linux Documentation/sphinx-static/theme_overrides.css
5*/
6
7/* Improve contrast and increase size for easier reading. */
8
9body {10font-family: serif;11color: black;12font-size: 100%;13}
14
15h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {16font-family: sans-serif;17}
18
19.rst-content dl:not(.docutils) dt {20border-top: none;21border-left: solid 3px #ccc;22background-color: #f0f0f0;23color: black;24}
25
26.wy-nav-top {27background: #802400;28}
29
30.wy-side-nav-search input[type="text"] {31border-color: #f60;32}
33
34.wy-menu-vertical p.caption {35color: white;36}
37
38.wy-menu-vertical li.current a {39color: #505050;40}
41
42.wy-menu-vertical li.on a, .wy-menu-vertical li.current > a {43color: #303030;44}
45
46.fa-gitlab {47box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 3px 10px 0 rgba(0,0,0,0.19);48border-radius: 5px;49}
50
51div[class^="highlight"] pre {52font-family: monospace;53color: black;54font-size: 100%;55}
56
57.wy-menu-vertical {58font-family: sans-serif;59}
60
61.c {62font-style: normal;63}
64
65p {66font-size: 100%;67}
68
69/* Interim: Code-blocks with line nos - lines and line numbers don't line up.
70* see: https://github.com/rtfd/sphinx_rtd_theme/issues/419
71*/
72
73div[class^="highlight"] pre {74line-height: normal;75}
76.rst-content .highlight > pre {77line-height: normal;78}
79
80/* Keep fields from being strangely far apart due to inheirited table CSS. */
81.rst-content table.field-list th.field-name {82padding-top: 1px;83padding-bottom: 1px;84}
85.rst-content table.field-list td.field-body {86padding-top: 1px;87padding-bottom: 1px;88}
89
90/* qmp-example directive styling */
91
92.rst-content .admonition-example {93/* do not apply the standard admonition background */94background-color: transparent;95border: solid #ffd2ed 1px;96}
97
98.rst-content .admonition-example > .admonition-title:before {99content: "▷";100}
101
102.rst-content .admonition-example > .admonition-title {103background-color: #5980a6;104}
105
106.rst-content .admonition-example > div[class^="highlight"] {107/* make code boxes take up the full width of the admonition w/o margin */108margin-left: -12px;109margin-right: -12px;110
111border-top: 1px solid #ffd2ed;112border-bottom: 1px solid #ffd2ed;113border-left: 0px;114border-right: 0px;115}
116
117.rst-content .admonition-example > div[class^="highlight"]:nth-child(2) {118/* If a code box is the second element in an example admonition,119* it is the first child after the title. let it sit flush against
120* the title. */
121margin-top: -12px;122border-top: 0px;123}
124
125.rst-content .admonition-example > div[class^="highlight"]:last-child {126/* If a code box is the final element in an example admonition, don't127* render margin below it; let it sit flush with the end of the
128* admonition box */
129margin-bottom: -12px;130border-bottom: 0px;131}
132
133.rst-content .admonition-example .highlight {134background-color: #fffafd;135}
136
137/* end qmp-example styling */
138
139@media screen {140
141/* content column142*
143* RTD theme's default is 800px as max width for the content, but we have
144* tables with tons of columns, which need the full width of the view-port.
145*/
146
147.wy-nav-content{max-width: none; }148
149/* table:150*
151* - Sequences of whitespace should collapse into a single whitespace.
152* - make the overflow auto (scrollbar if needed)
153* - align caption "left" ("center" is unsuitable on vast tables)
154*/
155
156.wy-table-responsive table td { white-space: normal; }157.wy-table-responsive { overflow: auto; }158.rst-content table.docutils caption { text-align: left; font-size: 100%; }159
160/* captions:161*
162* - captions should have 100% (not 85%) font size
163* - hide the permalink symbol as long as link is not hovered
164*/
165
166.toc-title {167font-size: 150%;168font-weight: bold;169}170
171caption, .wy-table caption, .rst-content table.field-list caption {172font-size: 100%;173}174caption a.headerlink { opacity: 0; }175caption a.headerlink:hover { opacity: 1; }176
177/* Menu selection and keystrokes */178
179span.menuselection {180color: blue;181font-family: "Courier New", Courier, monospace182}183
184code.kbd, code.kbd span {185color: white;186background-color: darkblue;187font-weight: bold;188font-family: "Courier New", Courier, monospace189}190
191/* fix bottom margin of lists items */192
193.rst-content .section ul li:last-child, .rst-content .section ul li p:last-child {194margin-bottom: 12px;195}196
197/* inline literal: drop the borderbox, padding and red color */198
199code, .rst-content tt, .rst-content code {200color: inherit;201border: none;202padding: unset;203background: inherit;204font-size: 85%;205}206
207.rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {208color: inherit;209}210}
211