Debian Codegraph @

test/functional/input/data/plain.css

raw symbols SCIP
1 /* CSS31_ style sheet for the output of Docutils HTML writers. */
2 /* Rules for easy reading and pre-defined style variants. */
3 /* */
4 /* :Author: Günter Milde, based on html4css1.css by David Goodger */
5 /* :Id: $Id: plain.css 10079 2025-04-10 12:01:48Z milde $ */
6 /* :Copyright: © 2015 Günter Milde. */
7 /* :License: Released under the terms of the `2-Clause BSD license`_, */
8 /* in short: */
9 /* */
10 /* Copying and distribution of this file, with or without modification, */
11 /* are permitted in any medium without royalty provided the copyright */
12 /* notice and this notice are preserved. */
13 /* */
14 /* This file is offered as-is, without any warranty. */
15 /* */
16 /* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
17 /* .. _CSS3: https://www.w3.org/Style/CSS/ */
18
19
20 /* Document Structure */
21 /* ****************** */
22
23 /* "page layout" */
24 body {
25 margin: 0;
26 background-color: #dbdbdb;
27 --field-indent: 9em; /* default indent of fields in field lists */
28 }
29 main, footer, header {
30 line-height:1.6;
31 /* avoid long lines --> better reading */
32 /* optimum is 45…75 characters/line <http://webtypography.net/2.1.2> */
33 /* OTOH: lines should not be too short because of missing hyphenation, */
34 max-width: 50rem;
35 padding: 1px 2%; /* 1px on top avoids grey bar above title (mozilla) */
36 margin: auto;
37 }
38 main {
39 counter-reset: table figure;
40 background-color: white;
41 }
42 footer, header {
43 font-size: smaller;
44 padding: 0.5em 2%;
45 border: none;
46 }
47
48 /* Table of Contents */
49 ul.auto-toc > li > p {
50 padding-left: 1em;
51 text-indent: -1em;
52 }
53 nav.contents ul {
54 padding-left: 1em;
55 }
56 main > nav.contents ul ul ul ul:not(.auto-toc) {
57 list-style-type: '\2B29\ ';
58 }
59 main > nav.contents ul ul ul ul ul:not(.auto-toc) {
60 list-style-type: '\2B1D\ ';
61 }
62
63 /* Transitions */
64 hr.docutils {
65 width: 80%;
66 margin-top: 1em;
67 margin-bottom: 1em;
68 clear: both;
69 }
70
71 /* Paragraphs */
72
73 /* vertical space (parskip) */
74 p, ol, ul, dl, li,
75 .footnote, .citation,
76 div > math,
77 table {
78 margin-top: 0.5em;
79 margin-bottom: 0.5em;
80 }
81
82 h1, h2, h3, h4, h5, h6,
83 dd, details > p:last-child {
84 margin-bottom: 0.5em;
85 }
86
87 /* Lists */
88 /* ===== */
89
90 /* Definition Lists */
91 /* Indent lists nested in definition lists */
92 dd > ul:only-child, dd > ol:only-child { padding-left: 1em; }
93
94 /* Description Lists */
95 /* styled like in most dictionaries, encyclopedias etc. */
96 dl.description {
97 display: flow-root;
98 }
99 dl.description > dt {
100 font-weight: bold;
101 clear: left;
102 float: left;
103 margin: 0;
104 padding: 0;
105 padding-right: 0.3em;
106 }
107 dl.description > dd:after {
108 display: table;
109 content: "";
110 clear: left; /* clearfix for empty descriptions */
111 }
112
113 /* Field Lists */
114
115 dl.field-list > dd,
116 dl.docinfo > dd {
117 margin-left: var(--field-indent); /* adapted in media queries or HTML */
118 }
119
120 /* example for custom field-name width */
121 dl.field-list.narrow > dd {
122 --field-indent: 5em;
123 }
124 /* run-in: start field-body on same line after long field names */
125 dl.field-list.run-in > dd p {
126 display: block;
127 }
128
129 /* Bibliographic Fields */
130
131 /* generally, bibliographic fields use dl.docinfo */
132 /* but dedication and abstract are placed into divs */
133 div.abstract p.topic-title {
134 text-align: center;
135 }
136 div.dedication {
137 margin: 2em 5em;
138 text-align: center;
139 font-style: italic;
140 }
141 div.dedication p.topic-title {
142 font-style: normal;
143 }
144
145 /* disclosures */
146 details { padding-left: 1em; }
147 summary { margin-left: -1em; }
148
149 /* Text Blocks */
150 /* =========== */
151
152 /* Literal Blocks */
153 pre.literal-block, pre.doctest-block,
154 pre.math, pre.code {
155 font-family: monospace;
156 }
157
158 /* Block Quotes and Topics */
159 bockquote { margin: 1em 2em; }
160 blockquote p.attribution {
161 text-align: right;
162 margin-left: 20%;
163 }
164
165 /* Tables */
166 /* ====== */
167
168 /* th { vertical-align: bottom; } */
169
170 table tr { text-align: left; }
171
172 /* "booktabs" style (no vertical lines) */
173 table.booktabs {
174 border: 0;
175 border-top: 2px solid;
176 border-bottom: 2px solid;
177 border-collapse: collapse;
178 }
179 table.booktabs * {
180 border: 0;
181 }
182 table.booktabs th {
183 border-bottom: thin solid;
184 }
185
186 /* numbered tables (counter defined in div.document) */
187 table.numbered > caption:before {
188 counter-increment: table;
189 content: "Table " counter(table) ": ";
190 font-weight: bold;
191 }
192
193 /* Explicit Markup Blocks */
194 /* ====================== */
195
196 /* Footnotes and Citations */
197 /* ----------------------- */
198
199 /* line on the left */
200 .footnote-list {
201 border-left: solid thin;
202 padding-left: 0.25em;
203 }
204
205 /* Directives */
206 /* ---------- */
207
208 /* Body Elements */
209 /* ~~~~~~~~~~~~~ */
210
211 /* Images and Figures */
212
213 /* let content flow to the side of aligned images and figures */
214 figure.align-left,
215 img.align-left,
216 svg.align-left,
217 video.align-left,
218 div.align-left,
219 object.align-left {
220 clear: left;
221 float: left;
222 margin-right: 1em;
223 }
224 figure.align-right,
225 img.align-right,
226 svg.align-right,
227 video.align-right,
228 div.align-right,
229 object.align-right {
230 clear: right;
231 float: right;
232 margin-left: 1em;
233 }
234 /* Stop floating sidebars, images and figures */
235 h1, h2, h3, h4, footer, header { clear: both; }
236
237 /* Numbered figures */
238 figure.numbered > figcaption > p:before {
239 counter-increment: figure;
240 content: "Figure " counter(figure) ": ";
241 font-weight: bold;
242 }
243
244 /* Admonitions and System Messages */
245 .caution p.admonition-title,
246 .attention p.admonition-title,
247 .danger p.admonition-title,
248 .error p.admonition-title,
249 .warning p.admonition-title,
250 div.error {
251 color: red;
252 }
253
254 /* Sidebar */
255 /* Move right. In a layout with fixed margins, */
256 /* it can be moved into the margin. */
257 aside.sidebar {
258 width: 30%;
259 max-width: 26em;
260 float: right;
261 clear: right;
262 margin-left: 1em;
263 margin-right: -1%;
264 background-color: #fffffa;
265 }
266
267
268 /* Code */
269 pre.code { padding: 0.7ex }
270 pre.code, code { background-color: #eeeeee }
271 /* basic highlighting: for a complete scheme, see */
272 /* https://docutils.sourceforge.io/sandbox/stylesheets/ */
273 pre.code .comment, code .comment { color: #5C6576 }
274 pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
275 pre.code .literal.string, code .literal.string { color: #0C5404 }
276 pre.code .name.builtin, code .name.builtin { color: #352B84 }
277 pre.code .deleted, code .deleted { background-color: #DEB0A1}
278 pre.code .inserted, code .inserted { background-color: #A3D289}
279
280
281 /* Epigraph */
282 /* Highlights */
283 /* Pull-Quote */
284 /* Compound Paragraph */
285 /* Container */
286
287 /* Inline Markup */
288 /* ============= */
289
290 sup, sub { line-height: 0.8; } /* do not add leading for lines with sup/sub */
291
292 /* Inline Literals */
293 /* possible values: normal, nowrap, pre, pre-wrap, pre-line */
294 /* span.docutils.literal { white-space: pre-wrap; } */
295
296 /* Hyperlink References */
297 a { text-decoration: none; }
298
299 /* External Targets */
300 /* span.target.external */
301 /* Internal Targets */
302 /* span.target.internal */
303 /* Footnote References */
304 /* a[role="doc-noteref"] */
305 /* Citation References */
306 /* a.citation-reference */