source: trunk/doc/rst.css @ 5

Revision 5, 5.3 KB checked in by mmatloka, 14 years ago (diff)

svn:keywords

  • Property svn:keywords set to Id Revision
RevLine 
[1]1/*
2:Author: David Goodger (goodger@python.org)
[5]3:Id: $Id$
[1]4:Copyright: This stylesheet has been placed in the public domain.
5
6Default cascading style sheet for the HTML output of Docutils.
7
8See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
9customize this style sheet.
10*/
11
12/* used to remove borders from tables and images */
13.borderless, table.borderless td, table.borderless th {
14  border: 0 }
15
16table.borderless td, table.borderless th {
17  /* Override padding for "table.docutils td" with "! important".
18     The right padding separates the table cells. */
19  padding: 0 0.5em 0 0 ! important }
20
21.first {
22  /* Override more specific margin styles with "! important". */
23  margin-top: 0 ! important }
24
25.last, .with-subtitle {
26  margin-bottom: 0 ! important }
27
28.hidden {
29  display: none }
30
31a.toc-backref {
32  text-decoration: none ;
33  color: black }
34
35blockquote.epigraph {
36  margin: 2em 5em ; }
37
38dl.docutils dd {
39  margin-bottom: 0.5em }
40
41/* Uncomment (and remove this text!) to get bold-faced definition list terms
42dl.docutils dt {
43  font-weight: bold }
44*/
45
46div.abstract {
47  margin: 2em 5em }
48
49div.abstract p.topic-title {
50  font-weight: bold ;
51  text-align: center }
52
53div.admonition, div.attention, div.caution, div.danger, div.error,
54div.hint, div.important, div.note, div.tip, div.warning {
55  margin: 2em ;
56  border: medium outset ;
57  padding: 1em }
58
59div.admonition p.admonition-title, div.hint p.admonition-title,
60div.important p.admonition-title, div.note p.admonition-title,
61div.tip p.admonition-title {
62  font-weight: bold ;
63  font-family: sans-serif }
64
65div.attention p.admonition-title, div.caution p.admonition-title,
66div.danger p.admonition-title, div.error p.admonition-title,
67div.warning p.admonition-title {
68  color: red ;
69  font-weight: bold ;
70  font-family: sans-serif }
71
72/* Uncomment (and remove this text!) to get reduced vertical space in
73   compound paragraphs.
74div.compound .compound-first, div.compound .compound-middle {
75  margin-bottom: 0.5em }
76
77div.compound .compound-last, div.compound .compound-middle {
78  margin-top: 0.5em }
79*/
80
81div.dedication {
82  margin: 2em 5em ;
83  text-align: center ;
84  font-style: italic }
85
86div.dedication p.topic-title {
87  font-weight: bold ;
88  font-style: normal }
89
90div.figure {
91  margin-left: 2em ;
92  margin-right: 2em }
93
94div.footer, div.header {
95  clear: both;
96  font-size: smaller }
97
98div.line-block {
99  display: block ;
100  margin-top: 1em ;
101  margin-bottom: 1em }
102
103div.line-block div.line-block {
104  margin-top: 0 ;
105  margin-bottom: 0 ;
106  margin-left: 1.5em }
107
108div.sidebar {
109  margin: 0 0 0.5em 1em ;
110  border: medium outset ;
111  padding: 1em ;
112  background-color: #ffffee ;
113  width: 40% ;
114  float: right ;
115  clear: right }
116
117div.sidebar p.rubric {
118  font-family: sans-serif ;
119  font-size: medium }
120
121div.system-messages {
122  margin: 5em }
123
124div.system-messages h1 {
125  color: red }
126
127div.system-message {
128  border: medium outset ;
129  padding: 1em }
130
131div.system-message p.system-message-title {
132  color: red ;
133  font-weight: bold }
134
135div.topic {
136  margin: 2em }
137
138h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
139h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
140  margin-top: 0.4em }
141
142h1.title {
143  text-align: center }
144
145h2.subtitle {
146  text-align: center }
147
148hr.docutils {
149  width: 75% }
150
151img.align-left {
152  clear: left }
153
154img.align-right {
155  clear: right }
156
157ol.simple, ul.simple {
158  margin-bottom: 1em }
159
160ol.arabic {
161  list-style: decimal }
162
163ol.loweralpha {
164  list-style: lower-alpha }
165
166ol.upperalpha {
167  list-style: upper-alpha }
168
169ol.lowerroman {
170  list-style: lower-roman }
171
172ol.upperroman {
173  list-style: upper-roman }
174
175p.attribution {
176  text-align: right ;
177  margin-left: 50% }
178
179p.caption {
180  font-style: italic }
181
182p.credits {
183  font-style: italic ;
184  font-size: smaller }
185
186p.label {
187  white-space: nowrap }
188
189p.rubric {
190  font-weight: bold ;
191  font-size: larger ;
192  color: maroon ;
193  text-align: center }
194
195p.sidebar-title {
196  font-family: sans-serif ;
197  font-weight: bold ;
198  font-size: larger }
199
200p.sidebar-subtitle {
201  font-family: sans-serif ;
202  font-weight: bold }
203
204p.topic-title {
205  font-weight: bold }
206
207pre.address {
208  margin-bottom: 0 ;
209  margin-top: 0 ;
210  font-family: serif ;
211  font-size: 100% }
212
213pre.literal-block, pre.doctest-block {
214  margin-left: 2em ;
215  margin-right: 2em }
216
217span.classifier {
218  font-family: sans-serif ;
219  font-style: oblique }
220
221span.classifier-delimiter {
222  font-family: sans-serif ;
223  font-weight: bold }
224
225span.interpreted {
226  font-family: sans-serif }
227
228span.option {
229  white-space: nowrap }
230
231span.pre {
232  white-space: pre }
233
234span.problematic {
235  color: red }
236
237span.section-subtitle {
238  /* font-size relative to parent (h1..h6 element) */
239  font-size: 80% }
240
241table.citation {
242  border-left: solid 1px gray;
243  margin-left: 1px }
244
245table.docinfo {
246  margin: 2em 4em }
247
248table.docutils {
249  margin-top: 0.5em ;
250  margin-bottom: 0.5em }
251
252table.footnote {
253  border-left: solid 1px black;
254  margin-left: 1px }
255
256table.docutils td, table.docutils th,
257table.docinfo td, table.docinfo th {
258  padding-left: 0.5em ;
259  padding-right: 0.5em ;
260  vertical-align: top }
261
262table.docutils th.field-name, table.docinfo th.docinfo-name {
263  font-weight: bold ;
264  text-align: left ;
265  white-space: nowrap ;
266  padding-left: 0 }
267
268h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
269h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
270  font-size: 100% }
271
272ul.auto-toc {
273  list-style-type: none }
Note: See TracBrowser for help on using the repository browser.