/ docs / default.css
default.css
  1  /*
  2     :Author: David Goodger (goodger@python.org)
  3     :Id: $Id: html4css1.css 5196 2007-06-03 20:25:28Z wiemann $
  4     :Copyright: This stylesheet has been placed in the public domain.
  5  
  6     Default cascading style sheet for the HTML output of Docutils.
  7  
  8     See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
  9     customize 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  
 16  table.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  
 31  a.toc-backref {
 32      text-decoration: none ;
 33      color: black }
 34  
 35  blockquote.epigraph {
 36      margin: 2em 5em ; }
 37  
 38  dl.docutils dd {
 39      margin-bottom: 0.5em }
 40  
 41  
 42  dl.docutils dt {
 43      font-weight: bold }
 44  
 45  div.abstract {
 46      margin: 2em 5em }
 47  
 48  div.abstract p.topic-title {
 49      font-weight: bold ;
 50      text-align: center }
 51  
 52  div.admonition, div.attention, div.caution, div.danger, div.error,
 53  div.hint, div.important, div.note, div.tip, div.warning {
 54      margin: 2em ;
 55      border: medium outset ;
 56      padding: 1em }
 57  
 58  div.admonition p.admonition-title, div.hint p.admonition-title,
 59  div.important p.admonition-title, div.note p.admonition-title,
 60  div.tip p.admonition-title {
 61      font-weight: bold ;
 62      font-family: sans-serif }
 63  
 64  div.attention p.admonition-title, div.caution p.admonition-title,
 65  div.danger p.admonition-title, div.error p.admonition-title,
 66  div.warning p.admonition-title {
 67      color: red ;
 68      font-weight: bold ;
 69      font-family: sans-serif }
 70  
 71  /* Uncomment (and remove this text!) to get reduced vertical space in
 72     compound paragraphs.
 73     div.compound .compound-first, div.compound .compound-middle {
 74     margin-bottom: 0.5em }
 75  
 76     div.compound .compound-last, div.compound .compound-middle {
 77     margin-top: 0.5em }
 78   */
 79  
 80  div.dedication {
 81      margin: 2em 5em ;
 82      text-align: center ;
 83      font-style: italic }
 84  
 85  div.dedication p.topic-title {
 86      font-weight: bold ;
 87      font-style: normal }
 88  
 89  div.figure {
 90      margin-left: 2em ;
 91      margin-right: 2em }
 92  
 93  div.footer, div.header {
 94      clear: both;
 95      font-size: smaller }
 96  
 97  div.line-block {
 98      display: block ;
 99      margin-top: 1em ;
100      margin-bottom: 1em }
101  
102  div.line-block div.line-block {
103      margin-top: 0 ;
104      margin-bottom: 0 ;
105      margin-left: 1.5em }
106  
107  div.sidebar {
108      margin: 0 0 0.5em 1em ;
109      border: medium outset ;
110      padding: 1em ;
111      background-color: #ffffee ;
112      width: 40% ;
113      float: right ;
114      clear: right }
115  
116  div.sidebar p.rubric {
117      font-family: sans-serif ;
118      font-size: medium }
119  
120  div.system-messages {
121      margin: 5em }
122  
123  div.system-messages h1 {
124      color: red }
125  
126  div.system-message {
127      border: medium outset ;
128      padding: 1em }
129  
130  div.system-message p.system-message-title {
131      color: red ;
132      font-weight: bold }
133  
134  div.topic {
135      margin: 2em }
136  
137  h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
138  h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
139      margin-top: 0.4em }
140  
141  h1.title {
142      text-align: center }
143  
144  h2.subtitle {
145      text-align: center }
146  
147  hr.docutils {
148      width: 75% }
149  
150  img.align-left {
151      clear: left }
152  
153  img.align-right {
154      clear: right }
155  
156  ol.simple, ul.simple {
157      margin-bottom: 1em }
158  
159  ol.arabic {
160      list-style: decimal }
161  
162  ol.loweralpha {
163      list-style: lower-alpha }
164  
165  ol.upperalpha {
166      list-style: upper-alpha }
167  
168  ol.lowerroman {
169      list-style: lower-roman }
170  
171  ol.upperroman {
172      list-style: upper-roman }
173  
174  p.attribution {
175      text-align: right ;
176      margin-left: 50% }
177  
178  p.caption {
179      font-style: italic }
180  
181  p.credits {
182      font-style: italic ;
183      font-size: smaller }
184  
185  p.label {
186      white-space: nowrap }
187  
188  p.rubric {
189      font-weight: bold ;
190      font-size: larger ;
191      color: maroon ;
192      text-align: center }
193  
194  p.sidebar-title {
195      font-family: sans-serif ;
196      font-weight: bold ;
197      font-size: larger }
198  
199  p.sidebar-subtitle {
200      font-family: sans-serif ;
201      font-weight: bold }
202  
203  p.topic-title {
204      font-weight: bold }
205  
206  pre.address {
207      margin-bottom: 0 ;
208      margin-top: 0 ;
209      font-family: serif ;
210      font-size: 100% }
211  
212  pre.literal-block, pre.doctest-block {
213      padding: 1em 2em;
214      border: black solid 1px;
215      border-radius: .5em;
216      background-color: #333;
217      color: #eee;
218      overflow: auto }
219  
220  span.classifier {
221      font-family: sans-serif ;
222      font-style: oblique }
223  
224  span.classifier-delimiter {
225      font-family: sans-serif ;
226      font-weight: bold }
227  
228  span.interpreted {
229      font-family: sans-serif }
230  
231  span.option {
232      white-space: nowrap }
233  
234  span.pre {
235      white-space: pre }
236  
237  span.problematic {
238      color: red }
239  
240  span.section-subtitle {
241      /* font-size relative to parent (h1..h6 element) */
242      font-size: 80% }
243  
244  table.citation {
245      border-left: solid 1px gray;
246      margin-left: 1px }
247  
248  table.docinfo {
249      margin: 2em 4em }
250  
251  table.docutils {
252      margin-top: 0.5em ;
253      margin-bottom: 0.5em }
254  
255  table.footnote {
256      border-left: solid 1px black;
257      margin-left: 1px }
258  
259  table.docutils td, table.docutils th,
260  table.docinfo td, table.docinfo th {
261      padding-left: 0.5em ;
262      padding-right: 0.5em ;
263      vertical-align: top }
264  
265  table.docutils th.field-name, table.docinfo th.docinfo-name {
266      font-weight: bold ;
267      text-align: left ;
268      white-space: nowrap ;
269      padding-left: 0 }
270  
271  table caption { caption-side: bottom; font-weight: bold; font-style: italic; }
272  p.caption { text-align:center; font-weight: bold;  }
273  
274  table.docutils, table.docutils tr th, table.docutils tr td { outline-width: thin; outline-style: solid; }
275  
276  
277  h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
278  h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
279      font-size: 100% }
280  
281  ul.auto-toc {
282      list-style-type: none }
283  
284  /* Begin coo customization */
285  
286  @import url("//fonts.googleapis.com/css?family=Fira+Mono|Fira+Sans");
287  
288  :root {
289      font-family: "Fira Sans", sans-serif;
290      font-size: 16px;
291  }
292  
293  .document {
294      max-width: 1200px;
295      margin: 0 auto;
296  }
297  
298  span.pre {
299      font-family: "Fira Mono", monospace;
300  }
301  
302  h2 {
303      background: #eee;
304      border-width: 1px 0;
305      border-color: black;
306      border-style: solid;
307  }
308  
309  .ref-package {
310      font-family: "Fira Mono", mono;
311      background-color: #eee;
312      color: #ab7967;
313      padding: 3px;
314      border-radius: 6px;
315  }
316  
317  .ref-class {
318      font-family: "Fira Mono", mono;
319      background-color: #eee;
320      color: #99c794;
321      padding: 3px;
322      border-radius: 6px;
323  }
324  
325  .ref-variable {
326      font-family: "Fira Mono", mono;
327      background-color: #eee;
328      color: #6699cc;
329      padding: 3px;
330      border-radius: 6px;
331  }
332  
333  .ref-macro {
334      font-family: "Fira Mono", mono;
335      background-color: #eee;
336      color: #fac863;
337      padding: 3px;
338      border-radius: 6px;
339  }
340  
341  .ref-function {
342      font-family: "Fira Mono", mono;
343      background-color: #eee;
344      color: #c594c5;
345      padding: 3px;
346      border-radius: 6px;
347  }
348  
349  .param {
350      background-color: #eee;
351      color: #6699cc;
352  }
353  
354  p {
355      color: #343d46;
356  }
357  
358  /* End coo customization */