Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/docutils/writers/html5_polyglot/minimal.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 /* Minimal style sheet for the HTML output of Docutils. */ | |
2 /* */ | |
3 /* :Author: Günter Milde, based on html4css1.css by David Goodger */ | |
4 /* :Id: $Id: minimal.css 8397 2019-09-20 11:09:34Z milde $ */ | |
5 /* :Copyright: © 2015 Günter Milde. */ | |
6 /* :License: Released under the terms of the `2-Clause BSD license`_, */ | |
7 /* in short: */ | |
8 /* */ | |
9 /* Copying and distribution of this file, with or without modification, */ | |
10 /* are permitted in any medium without royalty provided the copyright */ | |
11 /* notice and this notice are preserved. */ | |
12 /* */ | |
13 /* This file is offered as-is, without any warranty. */ | |
14 /* */ | |
15 /* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */ | |
16 | |
17 /* This CSS2.1_ stylesheet defines rules for Docutils elements without */ | |
18 /* HTML equivalent. It is required to make the document semantic visible. */ | |
19 /* */ | |
20 /* .. _CSS2.1: http://www.w3.org/TR/CSS2 */ | |
21 /* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */ | |
22 | |
23 /* alignment of text and inline objects inside block objects*/ | |
24 .align-left { text-align: left; } | |
25 .align-right { text-align: right; } | |
26 .align-center { clear: both; text-align: center; } | |
27 .align-top { vertical-align: top; } | |
28 .align-middle { vertical-align: middle; } | |
29 .align-bottom { vertical-align: bottom; } | |
30 | |
31 /* titles */ | |
32 h1.title, p.subtitle { | |
33 text-align: center; | |
34 } | |
35 p.topic-title, | |
36 p.sidebar-title, | |
37 p.rubric, | |
38 p.admonition-title, | |
39 p.system-message-title { | |
40 font-weight: bold; | |
41 } | |
42 h1 + p.subtitle, | |
43 h1 + p.section-subtitle { | |
44 font-size: 1.6em; | |
45 } | |
46 h2 + p.section-subtitle { font-size: 1.28em; } | |
47 p.subtitle, | |
48 p.section-subtitle, | |
49 p.sidebar-subtitle { | |
50 font-weight: bold; | |
51 margin-top: -0.5em; | |
52 } | |
53 p.sidebar-title, | |
54 p.rubric { | |
55 font-size: larger; | |
56 } | |
57 p.rubric { color: maroon; } | |
58 a.toc-backref { | |
59 color: black; | |
60 text-decoration: none; } | |
61 | |
62 /* Warnings, Errors */ | |
63 div.caution p.admonition-title, | |
64 div.attention p.admonition-title, | |
65 div.danger p.admonition-title, | |
66 div.error p.admonition-title, | |
67 div.warning p.admonition-title, | |
68 div.system-messages h1, | |
69 div.error, | |
70 span.problematic, | |
71 p.system-message-title { | |
72 color: red; | |
73 } | |
74 | |
75 /* inline literals */ | |
76 span.docutils.literal { | |
77 font-family: monospace; | |
78 white-space: pre-wrap; | |
79 } | |
80 /* do not wraph at hyphens and similar: */ | |
81 .literal > span.pre { white-space: nowrap; } | |
82 | |
83 /* Lists */ | |
84 | |
85 /* compact and simple lists: no margin between items */ | |
86 .simple li, .compact li, | |
87 .simple ul, .compact ul, | |
88 .simple ol, .compact ol, | |
89 .simple > li p, .compact > li p, | |
90 dl.simple > dd, dl.compact > dd { | |
91 margin-top: 0; | |
92 margin-bottom: 0; | |
93 } | |
94 | |
95 /* Table of Contents */ | |
96 div.topic.contents { margin: 0.5em 0; } | |
97 div.topic.contents ul { | |
98 list-style-type: none; | |
99 padding-left: 1.5em; | |
100 } | |
101 | |
102 /* Enumerated Lists */ | |
103 ol.arabic { list-style: decimal } | |
104 ol.loweralpha { list-style: lower-alpha } | |
105 ol.upperalpha { list-style: upper-alpha } | |
106 ol.lowerroman { list-style: lower-roman } | |
107 ol.upperroman { list-style: upper-roman } | |
108 | |
109 dt span.classifier { font-style: italic } | |
110 dt span.classifier:before { | |
111 font-style: normal; | |
112 margin: 0.5em; | |
113 content: ":"; | |
114 } | |
115 | |
116 /* Field Lists and drivatives */ | |
117 /* bold field name, content starts on the same line */ | |
118 dl.field-list > dt, | |
119 dl.option-list > dt, | |
120 dl.docinfo > dt, | |
121 dl.footnote > dt, | |
122 dl.citation > dt { | |
123 font-weight: bold; | |
124 clear: left; | |
125 float: left; | |
126 margin: 0; | |
127 padding: 0; | |
128 padding-right: 0.5em; | |
129 } | |
130 /* Offset for field content (corresponds to the --field-name-limit option) */ | |
131 dl.field-list > dd, | |
132 dl.option-list > dd, | |
133 dl.docinfo > dd { | |
134 margin-left: 9em; /* ca. 14 chars in the test examples */ | |
135 } | |
136 /* start field-body on a new line after long field names */ | |
137 dl.field-list > dd > *:first-child, | |
138 dl.option-list > dd > *:first-child | |
139 { | |
140 display: inline-block; | |
141 width: 100%; | |
142 margin: 0; | |
143 } | |
144 /* field names followed by a colon */ | |
145 dl.field-list > dt:after, | |
146 dl.docinfo > dt:after { | |
147 content: ":"; | |
148 } | |
149 | |
150 /* Bibliographic Fields (docinfo) */ | |
151 pre.address { font: inherit; } | |
152 dd.authors > p { margin: 0; } | |
153 | |
154 /* Option Lists */ | |
155 dl.option-list { margin-left: 1.5em; } | |
156 dl.option-list > dt { font-weight: normal; } | |
157 span.option { white-space: nowrap; } | |
158 | |
159 /* Footnotes and Citations */ | |
160 dl.footnote.superscript > dd {margin-left: 1em; } | |
161 dl.footnote.brackets > dd {margin-left: 2em; } | |
162 dl > dt.label { font-weight: normal; } | |
163 a.footnote-reference.brackets:before, | |
164 dt.label > span.brackets:before { content: "["; } | |
165 a.footnote-reference.brackets:after, | |
166 dt.label > span.brackets:after { content: "]"; } | |
167 a.footnote-reference.superscript, | |
168 dl.footnote.superscript > dt.label { | |
169 vertical-align: super; | |
170 font-size: smaller; | |
171 } | |
172 dt.label > span.fn-backref { margin-left: 0.2em; } | |
173 dt.label > span.fn-backref > a { font-style: italic; } | |
174 | |
175 /* Line Blocks */ | |
176 div.line-block { display: block; } | |
177 div.line-block div.line-block { | |
178 margin-top: 0; | |
179 margin-bottom: 0; | |
180 margin-left: 40px; | |
181 } | |
182 | |
183 /* Figures, Images, and Tables */ | |
184 .figure.align-left, | |
185 figure.align-left, | |
186 img.align-left, | |
187 object.align-left, | |
188 table.align-left { | |
189 margin-right: auto; | |
190 } | |
191 .figure.align-center, | |
192 figure.align-center, | |
193 img.align-center, | |
194 object.align-center, | |
195 table.align-center { | |
196 margin-left: auto; | |
197 margin-right: auto; | |
198 } | |
199 .figure.align-right, | |
200 figure.align-right, | |
201 img.align-right, | |
202 object.align-right, | |
203 table.align-right { | |
204 margin-left: auto; | |
205 } | |
206 .figure.align-center, .figure.align-right, | |
207 figure.align-center, figure.align-right, | |
208 img.align-center, img.align-right, | |
209 object.align-center, object.align-right { | |
210 display: block; | |
211 } | |
212 /* reset inner alignment in figures and tables */ | |
213 .figure.align-left, .figure.align-right, | |
214 figure.align-left, figure.align-right, | |
215 table.align-left, table.align-center, table.align-right { | |
216 text-align: inherit; | |
217 } | |
218 | |
219 /* Admonitions and System Messages */ | |
220 div.admonition, | |
221 div.system-message, | |
222 div.sidebar, | |
223 aside.sidebar { | |
224 margin: 1em 1.5em; | |
225 border: medium outset; | |
226 padding-top: 0.5em; | |
227 padding-bottom: 0.5em; | |
228 padding-right: 1em; | |
229 padding-left: 1em; | |
230 } | |
231 | |
232 /* Sidebar */ | |
233 div.sidebar, | |
234 aside.sidebar { | |
235 width: 30%; | |
236 max-width: 26em; | |
237 float: right; | |
238 clear: right; | |
239 } | |
240 | |
241 /* Text Blocks */ | |
242 blockquote, | |
243 div.topic, | |
244 pre.literal-block, | |
245 pre.doctest-block, | |
246 pre.math, | |
247 pre.code { | |
248 margin-left: 1.5em; | |
249 margin-right: 1.5em; | |
250 } | |
251 pre.code .ln { color: gray; } /* line numbers */ | |
252 | |
253 /* Tables */ | |
254 table { border-collapse: collapse; } | |
255 td, th { | |
256 border-style: solid; | |
257 border-color: silver; | |
258 padding: 0 1ex; | |
259 border-width: thin; | |
260 } | |
261 td > p:first-child, th > p:first-child { margin-top: 0; } | |
262 td > p, th > p { margin-bottom: 0; } | |
263 | |
264 table > caption { | |
265 text-align: left; | |
266 margin-bottom: 0.25em | |
267 } | |
268 | |
269 table.borderless td, table.borderless th { | |
270 border: 0; | |
271 padding: 0; | |
272 padding-right: 0.5em /* separate table cells */ | |
273 } | |
274 | |
275 /* Document Header and Footer */ | |
276 /* div.header, */ | |
277 /* header { border-bottom: 1px solid black; } */ | |
278 /* div.footer, */ | |
279 /* footer { border-top: 1px solid black; } */ | |
280 | |
281 /* new HTML5 block elements: set display for older browsers */ | |
282 header, section, footer, aside, nav, main, article, figure { | |
283 display: block; | |
284 } |