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 /* Figure/table alignment */
24 .align-left { text-align: left
; }
25 .align-right { text-align: right
; }
26 .align-center { clear: both
; text-align: center
;}
29 h1
.title
, p
.subtitle
{
36 p
.system-message-title
{
40 h1
+ p
.section-subtitle
{
43 h2
+ p
.section-subtitle
{ font-size: 1.28em; }
54 p
.rubric
{ color: maroon
; }
57 text-decoration: none
; }
59 /* Warnings, Errors */
60 div
.caution p
.admonition-title
,
61 div
.attention p
.admonition-title
,
62 div
.danger p
.admonition-title
,
63 div
.error p
.admonition-title
,
64 div
.warning p
.admonition-title
,
65 div
.system-messages h1
,
68 p
.system-message-title
{
73 span
.docutils
.literal
{
74 font-family: monospace
;
75 white-space: pre-wrap
;
77 /* do not wraph at hyphens and similar: */
78 .literal > span.pre { white-space: nowrap
; }
82 /* compact and simple lists: no margin between items */
83 .simple li
, .compact li
,
84 .simple ul
, .compact ul
,
85 .simple ol
, .compact ol
,
86 .simple
> li p
, .compact
> li p
,
87 dl
.simple
> dd
, dl
.compact
> dd
{
92 /* Table of Contents */
93 div
.topic
.contents
{ margin: 0; }
95 list-style-type: none
;
96 padding-left: 1.5em; }
98 /* Enumerated Lists */
99 ol
.arabic
{ list-style: decimal
}
100 ol
.loweralpha
{ list-style: lower-alpha
}
101 ol
.upperalpha
{ list-style: upper-alpha
}
102 ol
.lowerroman
{ list-style: lower-roman
}
103 ol
.upperroman
{ list-style: upper-roman
}
105 dt span
.classifier
{ font-style: italic
}
106 dt span
.classifier:before
{
112 /* Field Lists and drivatives */
113 /* bold field name, content starts on the same line */
124 padding-right: 0.5em;
126 /* Offset for field content (corresponds to the --field-name-limit option) */
130 margin-left: 9em; /* ca. 14 chars in the test examples */
132 /* start field-body on a new line after long field names */
133 dl
.field-list
> dd
> *:first-child
,
134 dl
.option-list
> dd
> *:first-child
136 display: inline-block
;
140 /* field names followed by a colon */
141 dl
.field-list
> dt:after
,
142 dl
.docinfo
> dt:after
{
146 /* Bibliographic Fields (docinfo) */
147 pre
.address
{ font: inherit
; }
148 dd
.authors
> p
{ margin: 0; }
151 dl
.option-list
{ margin-left: 40px; }
152 dl
.option-list
> dt
{ font-weight: normal
; }
153 span
.option
{ white-space: nowrap
; }
155 /* Footnotes and Citations */
156 dl
> dt
.label
{ font-weight: normal
; }
157 dt
.label
> span
.fn-backref
{ margin: 0.2em; }
158 dt
.label
> span
.fn-backref
> a
{ font-style: italic
; }
161 div
.line-block
{ display: block
; }
162 div
.line-block div
.line-block
{
168 /* Images and Figures */
176 .figure
.align-center
,
177 object
.align-center
{
188 /* reset inner alignment in figures */
189 div
.align-right
{ text-align: inherit
}
191 /* Admonitions and System Messages */
196 border: medium outset
;
218 pre
.code
.ln
{ color: gray
; } /* line numbers */
221 table
{ border-collapse: collapse
; }
224 border-color: silver
;
228 td
> p:first-child
, th
> p:first-child
{ margin-top: 0; }
229 td
> p
, th
> p
{ margin-bottom: 0; }
233 margin-bottom: 0.25em
236 table
.borderless td
, table
.borderless th
{
239 padding-right: 0.5em /* separate table cells */