Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/docutils/writers/html5_polyglot/plain.css @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
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 8397 2019-09-20 11:09:34Z 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: http://www.w3.org/TR/CSS3 */ | |
18 | |
19 | |
20 /* Document Structure */ | |
21 /* ****************** */ | |
22 | |
23 /* "page layout" */ | |
24 body { | |
25 margin: 0; | |
26 background-color: #dbdbdb; | |
27 } | |
28 div.document, | |
29 main { | |
30 line-height:1.3; | |
31 counter-reset: table; | |
32 /* counter-reset: figure; */ | |
33 /* avoid long lines --> better reading */ | |
34 /* OTOH: lines should not be too short because of missing hyphenation, */ | |
35 max-width: 50em; | |
36 padding: 1px 2%; /* 1px on top avoids grey bar above title (mozilla) */ | |
37 margin: auto; | |
38 background-color: white; | |
39 } | |
40 | |
41 /* Sections */ | |
42 | |
43 /* Transitions */ | |
44 | |
45 hr.docutils { | |
46 width: 80%; | |
47 margin-top: 1em; | |
48 margin-bottom: 1em; | |
49 clear: both; | |
50 } | |
51 | |
52 /* Paragraphs */ | |
53 /* ========== */ | |
54 | |
55 /* vertical space (parskip) */ | |
56 p, ol, ul, dl, | |
57 div.line-block, | |
58 div.topic, | |
59 table { | |
60 margin-top: 0.5em; | |
61 margin-bottom: 0.5em; | |
62 } | |
63 p:first-child { margin-top: 0; } | |
64 /* (:last-child is new in CSS 3) */ | |
65 p:last-child { margin-bottom: 0; } | |
66 | |
67 h1, h2, h3, h4, h5, h6, | |
68 dl > dd { | |
69 margin-bottom: 0.5em; | |
70 } | |
71 | |
72 /* Lists */ | |
73 /* ===== */ | |
74 | |
75 /* Definition Lists */ | |
76 | |
77 /* lists nested in definition lists */ | |
78 /* (:only-child is new in CSS 3) */ | |
79 dd > ul:only-child, dd > ol:only-child { padding-left: 1em; } | |
80 | |
81 /* Description Lists */ | |
82 /* styled like in most dictionaries, encyclopedias etc. */ | |
83 dl.description > dt { | |
84 font-weight: bold; | |
85 clear: left; | |
86 float: left; | |
87 margin: 0; | |
88 padding: 0; | |
89 padding-right: 0.5em; | |
90 } | |
91 | |
92 /* Field Lists */ | |
93 | |
94 /* example for custom field-name width */ | |
95 dl.field-list.narrow > dd { | |
96 margin-left: 5em; | |
97 } | |
98 /* run-in: start field-body on same line after long field names */ | |
99 dl.field-list.run-in > dd p { | |
100 display: block; | |
101 } | |
102 | |
103 /* Bibliographic Fields */ | |
104 | |
105 /* generally, bibliographic fields use special definition list dl.docinfo */ | |
106 /* but dedication and abstract are placed into "topic" divs */ | |
107 div.abstract p.topic-title { | |
108 text-align: center; | |
109 } | |
110 div.dedication { | |
111 margin: 2em 5em; | |
112 text-align: center; | |
113 font-style: italic; | |
114 } | |
115 div.dedication p.topic-title { | |
116 font-style: normal; | |
117 } | |
118 | |
119 /* Citations */ | |
120 dl.citation dt.label { | |
121 font-weight: bold; | |
122 } | |
123 span.fn-backref { | |
124 font-weight: normal; | |
125 } | |
126 | |
127 /* Text Blocks */ | |
128 /* =========== */ | |
129 | |
130 /* Literal Blocks */ | |
131 | |
132 pre.literal-block, | |
133 pre.doctest-block, | |
134 pre.math, | |
135 pre.code { | |
136 font-family: monospace; | |
137 } | |
138 | |
139 /* Block Quotes */ | |
140 | |
141 blockquote > table, | |
142 div.topic > table { | |
143 margin-top: 0; | |
144 margin-bottom: 0; | |
145 } | |
146 blockquote p.attribution, | |
147 div.topic p.attribution { | |
148 text-align: right; | |
149 margin-left: 20%; | |
150 } | |
151 | |
152 /* Tables */ | |
153 /* ====== */ | |
154 | |
155 /* th { vertical-align: bottom; } */ | |
156 | |
157 table tr { text-align: left; } | |
158 | |
159 /* "booktabs" style (no vertical lines) */ | |
160 table.booktabs { | |
161 border: 0; | |
162 border-top: 2px solid; | |
163 border-bottom: 2px solid; | |
164 border-collapse: collapse; | |
165 } | |
166 table.booktabs * { | |
167 border: 0; | |
168 } | |
169 table.booktabs th { | |
170 border-bottom: thin solid; | |
171 } | |
172 | |
173 /* numbered tables (counter defined in div.document) */ | |
174 table.numbered > caption:before { | |
175 counter-increment: table; | |
176 content: "Table " counter(table) ": "; | |
177 font-weight: bold; | |
178 } | |
179 | |
180 /* Explicit Markup Blocks */ | |
181 /* ====================== */ | |
182 | |
183 /* Footnotes and Citations */ | |
184 /* ----------------------- */ | |
185 | |
186 /* line on the left */ | |
187 dl.footnote { | |
188 padding-left: 1ex; | |
189 border-left: solid; | |
190 border-left-width: thin; | |
191 } | |
192 | |
193 /* Directives */ | |
194 /* ---------- */ | |
195 | |
196 /* Body Elements */ | |
197 /* ~~~~~~~~~~~~~ */ | |
198 | |
199 /* Images and Figures */ | |
200 | |
201 /* let content flow to the side of aligned images and figures */ | |
202 .figure.align-left, | |
203 figure.align-left, | |
204 img.align-left, | |
205 object.align-left { | |
206 display: block; | |
207 clear: left; | |
208 float: left; | |
209 margin-right: 1em; | |
210 } | |
211 .figure.align-right, | |
212 figure.align-right, | |
213 img.align-right, | |
214 object.align-right { | |
215 display: block; | |
216 clear: right; | |
217 float: right; | |
218 margin-left: 1em; | |
219 } | |
220 /* Stop floating sidebars, images and figures at section level 1,2,3 */ | |
221 h1, h2, h3 { clear: both; } | |
222 | |
223 /* Sidebar */ | |
224 | |
225 /* Move right. In a layout with fixed margins, */ | |
226 /* it can be moved into the margin. */ | |
227 div.sidebar, | |
228 aside.sidebar { | |
229 width: 30%; | |
230 max-width: 26em; | |
231 margin-left: 1em; | |
232 margin-right: -2%; | |
233 background-color: #ffffee; | |
234 } | |
235 | |
236 /* Code */ | |
237 | |
238 pre.code { padding: 0.7ex } | |
239 pre.code, code { background-color: #eeeeee } | |
240 pre.code .ln { color: gray; } /* line numbers */ | |
241 /* basic highlighting: for a complete scheme, see */ | |
242 /* http://docutils.sourceforge.net/sandbox/stylesheets/ */ | |
243 pre.code .comment, code .comment { color: #5C6576 } | |
244 pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | |
245 pre.code .literal.string, code .literal.string { color: #0C5404 } | |
246 pre.code .name.builtin, code .name.builtin { color: #352B84 } | |
247 pre.code .deleted, code .deleted { background-color: #DEB0A1} | |
248 pre.code .inserted, code .inserted { background-color: #A3D289} | |
249 | |
250 /* Math */ | |
251 /* styled separately (see math.css for math-output=HTML) */ | |
252 | |
253 /* Epigraph */ | |
254 /* Highlights */ | |
255 /* Pull-Quote */ | |
256 /* Compound Paragraph */ | |
257 /* Container */ | |
258 | |
259 /* can be styled in a custom stylesheet */ | |
260 | |
261 /* Document Header and Footer */ | |
262 | |
263 footer, header, | |
264 div.footer, div.header { | |
265 font-size: smaller; | |
266 clear: both; | |
267 padding: 0.5em 2%; | |
268 background-color: #ebebee; | |
269 border: none; | |
270 } | |
271 | |
272 /* Inline Markup */ | |
273 /* ============= */ | |
274 | |
275 /* Emphasis */ | |
276 /* em */ | |
277 /* Strong Emphasis */ | |
278 /* strong */ | |
279 /* Interpreted Text */ | |
280 /* span.interpreted */ | |
281 /* Title Reference */ | |
282 /* cite */ | |
283 | |
284 /* Inline Literals */ | |
285 /* possible values: normal, nowrap, pre, pre-wrap, pre-line */ | |
286 /* span.docutils.literal { white-space: pre-wrap; } */ | |
287 | |
288 /* Hyperlink References */ | |
289 a { text-decoration: none; } | |
290 | |
291 /* External Targets */ | |
292 /* span.target.external */ | |
293 /* Internal Targets */ | |
294 /* span.target.internal */ | |
295 /* Footnote References */ | |
296 /* a.footnote-reference */ | |
297 /* Citation References */ | |
298 /* a.citation-reference */ |