1 /* CSS31_ style sheet for the output of Docutils HTML writers. */
2 /* Rules for easy reading and pre-defined style variants. */
4 /* :Author: Günter Milde, based on html4css1.css by David Goodger */
6 /* :Copyright: © 2015 Günter Milde. */
7 /* :License: Released under the terms of the `2-Clause BSD license`_, */
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. */
14 /* This file is offered as-is, without any warranty. */
16 /* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
17 /* .. _CSS3: http://www.w3.org/TR/CSS3 */
20 /* Document Structure */
21 /* ****************** */
31 /* counter-reset: figure; */
32 /* avoid long lines --> better reading */
33 /* OTOH: lines should not be too short because of missing hyphenation, */
52 /* vertical space (parskip) */
59 h1
, h2
, h3
, h4
, h5
, h6
,
67 /* Definition Lists */
69 dl
> dd
p:first-child
{ margin-top: 0; }
70 /* :last-child is not part of CSS 2.1 (introduced in CSS 3) */
71 /* dl > dd p:last-child { margin-bottom: 0; } */
73 /* lists nested in definition lists */
74 /* :only-child is not part of CSS 2.1 (introduced in CSS 3) */
75 dd
> ul:only-child
, dd
> ol:only-child
{ padding-left: 1em; }
77 /* Description Lists */
78 /* styled like in most dictionaries, encyclopedias etc. */
90 /* example for custom field-name width */
91 dl
.field-list
.narrow
> dd
{
94 /* run-in: start field-body on same line after long field names */
95 dl
.field-list
.run-in
> dd p
{
99 /* Bibliographic Fields */
101 /* generally, bibliographic fields use special definition list dl.docinfo */
102 /* but dedication and abstract are placed into "topic" divs */
103 div
.abstract p
.topic-title
{
111 div
.dedication p
.topic-title
{
116 dl
.citation dt
.label
{
127 pre
.literal-block
, pre
.doctest-block
,
145 blockquote p
.attribution
,
146 div
.topic p
.attribution
{
154 /* th { vertical-align: bottom; } */
156 table tr
{ text-align: left
; }
158 /* "booktabs" style (no vertical lines) */
161 border-top: 2px solid
;
162 border-bottom: 2px solid
;
163 border-collapse: collapse
;
169 border-bottom: thin solid
;
172 /* numbered tables (counter defined in div.document) */
173 table
.numbered
> caption:before
{
174 counter-increment: table
;
175 content: "Table " counter
(table
) ": ";
179 /* Explicit Markup Blocks */
180 /* ====================== */
182 /* Footnotes and Citations */
183 /* ----------------------- */
185 /* line on the left */
189 border-left-width: thin
;
198 /* Images and Figures */
200 /* let content flow to the side of aligned images and figures */
217 /* Stop floating sidebars, images and figures at section level 1,2,3 */
218 h1
, h2
, h3
{ clear: both
; }
222 /* Move into the margin. In a layout with fixed margins, */
223 /* it can be moved into the margin completely. */
229 background-color: #ffffee ;
234 pre
.code
, code
{ background-color: #eeeeee }
235 pre
.code
.ln
{ color: gray
; } /* line numbers */
236 /* basic highlighting: for a complete scheme, see */
237 /* http://docutils.sourceforge.net/sandbox/stylesheets/ */
238 pre
.code
.comment
, code
.comment
{ color: #5C6576 }
239 pre
.code
.keyword
, code
.keyword
{ color: #3B0D06; font-weight: bold
}
240 pre
.code
.literal
.string
, code
.literal
.string
{ color: #0C5404 }
241 pre
.code
.name
.builtin
, code
.name
.builtin
{ color: #352B84 }
242 pre
.code
.deleted
, code
.deleted
{ background-color: #DEB0A1}
243 pre
.code
.inserted
, code
.inserted
{ background-color: #A3D289}
246 /* styled separately (see math.css for math-output=HTML) */
251 /* Compound Paragraph */
254 /* can be styled in a custom stylesheet */
256 /* Document Header and Footer */
258 div
.footer
, div
.header
{
268 /* Strong Emphasis */
270 /* Interpreted Text */
271 /* span.interpreted */
272 /* Title Reference */
274 /* Inline Literals */
275 /* possible values: normal, nowrap, pre, pre-wrap, pre-line */
276 /* span.docutils.literal { white-space: pre-wrap; } */
278 /* Hyperlink References */
279 a
{ text-decoration: none
; }
281 /* External Targets */
282 /* span.target.external */
283 /* Internal Targets */
284 /* span.target.internal */
285 /* Footnote References */
286 /* a.footnote-reference */
287 /* Citation References */
288 /* a.citation-reference */