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 */
26 p
.system-message-title
{
46 h2
+ p
.section-subtitle
, a
.toc-backref
{
48 text-decoration: none
;
51 /* Warnings, Errors */
53 .system-message-title
,
60 font-family: monospace
;
61 white-space: pre-wrap
;
63 /* do not wrap at hyphens and similar: */
64 .literal > span.pre { white-space: nowrap
; }
68 /* compact and simple lists: no margin between items */
69 .simple li
, .simple ul
, .simple ol
,
70 .compact li
, .compact ul
, .compact ol
,
71 .simple
> li p
, dl
.simple
> dd
,
72 .compact > li p, dl.compact > dd {
76 /* Nested Paragraphs */
77 p:first-child
{ margin-top: 0; }
78 p:last-child
{ margin-bottom: 0; }
79 td
> p
, th
> p
{ margin-bottom: 0; }
81 /* Table of Contents */
82 .topic.contents { margin: 0.5em 0; }
84 list-style-type: none
;
88 /* Enumerated Lists */
89 ol
.arabic
{ list-style: decimal
}
90 ol
.loweralpha
{ list-style: lower-alpha
}
91 ol
.upperalpha
{ list-style: upper-alpha
}
92 ol
.lowerroman
{ list-style: lower-roman
}
93 ol
.upperroman
{ list-style: upper-roman
}
95 /* Definition Lists and Derivatives */
96 dt
.classifier
{ font-style: italic
}
97 dt
.classifier:before
{
102 /* Field Lists and similar */
103 /* bold field name, content starts on the same line */
114 padding-right: 0.5em;
116 /* Offset for field content (corresponds to the --field-name-limit option) */
120 margin-left: 9em; /* ca. 14 chars in the test examples, fit all Docinfo fields */
122 /* start field-body on a new line after long field names */
123 dl
.field-list
> dd
> *:first-child
,
124 dl
.option-list
> dd
> *:first-child
126 display: inline-block
;
130 /* field names followed by a colon */
131 dl
.field-list
> dt:after
,
132 dl
.docinfo
> dt:after
{
136 /* Bibliographic Fields (docinfo) */
137 dl
.docinfo pre
.address
{
141 dl
.docinfo
> dd
.authors
> p
{ margin: 0; }
144 dl
.option-list
> dt
{ font-weight: normal
; }
145 span
.option
{ white-space: nowrap
; }
147 /* Footnotes and Citations */
148 dl
.footnote
.superscript
> dd
{ margin-left: 1em; }
149 dl
.footnote
.brackets
> dd
{ margin-left: 2em; }
150 dl
.footnote
> dt
{ font-weight: normal
; }
151 a
.footnote-reference
.brackets:before
,
152 dt
.label
> span
.brackets:before
{ content: "["; }
153 a
.footnote-reference
.brackets:after
,
154 dt
.label
> span
.brackets:after
{ content: "]"; }
155 a
.footnote-reference
.superscript
,
156 dl
.footnote
.superscript
> dt
.label
{
157 vertical-align: super
;
160 dt
.label
> span
.fn-backref
{
164 dt
.label
> span
.fn-backref
> a
{ font-style: italic
; }
181 .align-top { vertical-align: top
; }
182 .align-middle { vertical-align: middle
; }
183 .align-bottom { vertical-align: bottom
; }
185 /* reset inner alignment in figures and tables */
186 figure
.align-left
, figure
.align-right
,
187 table
.align-left
, table
.align-center
, table
.align-right
{
210 div
.line-block
{ display: block
; }
211 div
.line-block div
.line-block
, pre
{ margin-left: 2em; }
213 /* Code line numbers: dropped when copying text from the page */
214 pre
.code
.ln
{ display: none
; }
215 pre
.code
code:before
{
216 content: attr
(data-lineno
); /* …, none) fallback not supported by any browser */
222 border-collapse: collapse
;
225 border: thin solid silver
;
228 .borderless td, .borderless th {
231 padding-right: 0.5em /* separate table cells */
237 margin-bottom: 0.2em;
240 caption-side: bottom
;
243 /* Document Header and Footer */
244 header
{ border-bottom: 1px solid black
; }
245 footer
{ border-top: 1px solid black
; }
247 /* Images are block-level by default in Docutils */
248 /* New HTML5 block elements: set display for older browsers */
249 img
, header
, section
, footer
, aside
, nav
, main
, article
, figure
, video
{
253 p img
, p video
, figure img
, figure video
{