1 /* Minimal style sheet for the HTML output of Docutils. */
3 /* :Author: Günter Milde, based on html4css1.css by David Goodger */
5 /* :Copyright: © 2015 Günter Milde. */
6 /* :License: Released under the terms of the `2-Clause BSD license`_, */
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. */
13 /* This file is offered as-is, without any warranty. */
15 /* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
17 /* This CSS2.1_ stylesheet defines rules for Docutils elements without */
18 /* HTML equivalent. It is required to make the document semantic visible. */
20 /* .. _CSS2.1: http://www.w3.org/TR/CSS2 */
21 /* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */
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
; }
32 h1
.title
, p
.subtitle
{
39 p
.system-message-title
{
43 h1
+ p
.section-subtitle
{
46 h2
+ p
.section-subtitle
{ font-size: 1.28em; }
57 p
.rubric
{ color: maroon
; }
60 text-decoration: none
; }
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
,
71 p
.system-message-title
{
76 span
.docutils
.literal
{
77 font-family: monospace
;
78 white-space: pre-wrap
;
80 /* do not wraph at hyphens and similar: */
81 .literal > span.pre { white-space: nowrap
; }
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
{
95 /* Table of Contents */
96 div
.topic
.contents
{ margin: 0; }
98 list-style-type: none
;
99 padding-left: 1.5em; }
101 /* Enumerated Lists */
102 ol
.arabic
{ list-style: decimal
}
103 ol
.loweralpha
{ list-style: lower-alpha
}
104 ol
.upperalpha
{ list-style: upper-alpha
}
105 ol
.lowerroman
{ list-style: lower-roman
}
106 ol
.upperroman
{ list-style: upper-roman
}
108 dt span
.classifier
{ font-style: italic
}
109 dt span
.classifier:before
{
115 /* Field Lists and drivatives */
116 /* bold field name, content starts on the same line */
127 padding-right: 0.5em;
129 /* Offset for field content (corresponds to the --field-name-limit option) */
133 margin-left: 9em; /* ca. 14 chars in the test examples */
135 /* start field-body on a new line after long field names */
136 dl
.field-list
> dd
> *:first-child
,
137 dl
.option-list
> dd
> *:first-child
139 display: inline-block
;
143 /* field names followed by a colon */
144 dl
.field-list
> dt:after
,
145 dl
.docinfo
> dt:after
{
149 /* Bibliographic Fields (docinfo) */
150 pre
.address
{ font: inherit
; }
151 dd
.authors
> p
{ margin: 0; }
154 dl
.option-list
{ margin-left: 40px; }
155 dl
.option-list
> dt
{ font-weight: normal
; }
156 span
.option
{ white-space: nowrap
; }
158 /* Footnotes and Citations */
159 dl
.footnote
.superscript
> dd
{margin-left: 1em; }
160 dl
.footnote
.brackets
> dd
{margin-left: 2em; }
161 dl
> dt
.label
{ font-weight: normal
; }
162 a
.footnote-reference
.brackets:before
,
163 dt
.label
> span
.brackets:before
{ content: "["; }
164 a
.footnote-reference
.brackets:after
,
165 dt
.label
> span
.brackets:after
{ content: "]"; }
166 a
.footnote-reference
.superscript
,
167 dl
.footnote
.superscript
> dt
.label
{
168 vertical-align: super
;
171 dt
.label
> span
.fn-backref
{ margin-left: 0.2em; }
172 dt
.label
> span
.fn-backref
> a
{ font-style: italic
; }
175 div
.line-block
{ display: block
; }
176 div
.line-block div
.line-block
{
182 /* Figures, Images, and Tables */
189 .figure
.align-center
,
191 object
.align-center
{
206 /* reset inner alignment in figures and tables */
207 div
.align-left
, div
.align-center
, div
.align-right
,
208 table
.align-left
, table
.align-center
, table
.align-right
209 { text-align: inherit
}
211 /* Admonitions and System Messages */
216 border: medium outset
;
238 pre
.code
.ln
{ color: gray
; } /* line numbers */
241 table
{ border-collapse: collapse
; }
244 border-color: silver
;
248 td
> p:first-child
, th
> p:first-child
{ margin-top: 0; }
249 td
> p
, th
> p
{ margin-bottom: 0; }
253 margin-bottom: 0.25em
256 table
.borderless td
, table
.borderless th
{
259 padding-right: 0.5em /* separate table cells */