|
1 |
| -@import url("html4css1.css"); |
2 |
| -@import url("nikola_rst.css"); |
| 1 | +/* |
| 2 | +:Author: David Goodger (goodger@python.org) |
| 3 | +:Id: $Id: html4css1.css 7514 2012-09-14 14:27:12Z milde $ |
| 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 | +object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
| 42 | + overflow: hidden; |
| 43 | +} |
| 44 | + |
| 45 | +/* Uncomment (and remove this text!) to get bold-faced definition list terms |
| 46 | +dl.docutils dt { |
| 47 | + font-weight: bold } |
| 48 | +*/ |
| 49 | + |
| 50 | +div.abstract { |
| 51 | + margin: 2em 5em } |
| 52 | + |
| 53 | +div.abstract p.topic-title { |
| 54 | + font-weight: bold ; |
| 55 | + text-align: center } |
| 56 | + |
| 57 | +div.admonition, div.attention, div.caution, div.danger, div.error, |
| 58 | +div.hint, div.important, div.note, div.tip, div.warning { |
| 59 | + margin: 2em ; |
| 60 | + border: medium outset ; |
| 61 | + padding: 1em } |
| 62 | + |
| 63 | +div.admonition p.admonition-title, div.hint p.admonition-title, |
| 64 | +div.important p.admonition-title, div.note p.admonition-title, |
| 65 | +div.tip p.admonition-title { |
| 66 | + font-weight: bold ; |
| 67 | + font-family: sans-serif } |
| 68 | + |
| 69 | +div.attention p.admonition-title, div.caution p.admonition-title, |
| 70 | +div.danger p.admonition-title, div.error p.admonition-title, |
| 71 | +div.warning p.admonition-title, .code .error { |
| 72 | + color: red ; |
| 73 | + font-weight: bold ; |
| 74 | + font-family: sans-serif } |
| 75 | + |
| 76 | +/* Uncomment (and remove this text!) to get reduced vertical space in |
| 77 | + compound paragraphs. |
| 78 | +div.compound .compound-first, div.compound .compound-middle { |
| 79 | + margin-bottom: 0.5em } |
| 80 | +
|
| 81 | +div.compound .compound-last, div.compound .compound-middle { |
| 82 | + margin-top: 0.5em } |
| 83 | +*/ |
| 84 | + |
| 85 | +div.dedication { |
| 86 | + margin: 2em 5em ; |
| 87 | + text-align: center ; |
| 88 | + font-style: italic } |
| 89 | + |
| 90 | +div.dedication p.topic-title { |
| 91 | + font-weight: bold ; |
| 92 | + font-style: normal } |
| 93 | + |
| 94 | +div.figure { |
| 95 | + margin-left: 2em ; |
| 96 | + margin-right: 2em } |
| 97 | + |
| 98 | +div.footer, div.header { |
| 99 | + clear: both; |
| 100 | + font-size: smaller } |
| 101 | + |
| 102 | +div.line-block { |
| 103 | + display: block ; |
| 104 | + margin-top: 1em ; |
| 105 | + margin-bottom: 1em } |
| 106 | + |
| 107 | +div.line-block div.line-block { |
| 108 | + margin-top: 0 ; |
| 109 | + margin-bottom: 0 ; |
| 110 | + margin-left: 1.5em } |
| 111 | + |
| 112 | +html[dir="rtl"] div.line-block div.line-block { |
| 113 | + margin-top: 0 ; |
| 114 | + margin-bottom: 0 ; |
| 115 | + margin-right: 1.5em ; |
| 116 | + margin-left: 0 } |
| 117 | + |
| 118 | +div.sidebar { |
| 119 | + margin: 0 0 0.5em 1em ; |
| 120 | + border: medium outset ; |
| 121 | + padding: 1em ; |
| 122 | + background-color: #ffffee ; |
| 123 | + width: 40% ; |
| 124 | + float: right ; |
| 125 | + clear: right } |
| 126 | + |
| 127 | +div.sidebar p.rubric { |
| 128 | + font-family: sans-serif ; |
| 129 | + font-size: medium } |
| 130 | + |
| 131 | +div.system-messages { |
| 132 | + margin: 5em } |
| 133 | + |
| 134 | +div.system-messages h1 { |
| 135 | + color: red } |
| 136 | + |
| 137 | +div.system-message { |
| 138 | + border: medium outset ; |
| 139 | + padding: 1em } |
| 140 | + |
| 141 | +div.system-message p.system-message-title { |
| 142 | + color: red ; |
| 143 | + font-weight: bold } |
| 144 | + |
| 145 | +div.topic { |
| 146 | + margin: 2em } |
| 147 | + |
| 148 | +h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
| 149 | +h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
| 150 | + margin-top: 0.4em } |
| 151 | + |
| 152 | +h1.title { |
| 153 | + text-align: center } |
| 154 | + |
| 155 | +h2.subtitle { |
| 156 | + text-align: center } |
| 157 | + |
| 158 | +hr.docutils { |
| 159 | + width: 75% } |
| 160 | + |
| 161 | +img.align-left, .figure.align-left, object.align-left { |
| 162 | + clear: left ; |
| 163 | + float: left ; |
| 164 | + margin-right: 1em } |
| 165 | + |
| 166 | +img.align-right, .figure.align-right, object.align-right { |
| 167 | + clear: right ; |
| 168 | + float: right ; |
| 169 | + margin-left: 1em } |
| 170 | + |
| 171 | +img.align-center, .figure.align-center, object.align-center { |
| 172 | + display: block; |
| 173 | + margin-left: auto; |
| 174 | + margin-right: auto; |
| 175 | +} |
| 176 | + |
| 177 | +.align-left { |
| 178 | + text-align: left } |
| 179 | + |
| 180 | +.align-center { |
| 181 | + clear: both ; |
| 182 | + text-align: center } |
| 183 | + |
| 184 | +.align-right { |
| 185 | + text-align: right } |
| 186 | + |
| 187 | +/* reset inner alignment in figures */ |
| 188 | +div.align-right { |
| 189 | + text-align: inherit } |
| 190 | + |
| 191 | +/* div.align-center * { */ |
| 192 | +/* text-align: left } */ |
| 193 | + |
| 194 | +ol.simple, ul.simple { |
| 195 | + margin-bottom: 1em } |
| 196 | + |
| 197 | +ol.arabic { |
| 198 | + list-style: decimal } |
| 199 | + |
| 200 | +ol.loweralpha { |
| 201 | + list-style: lower-alpha } |
| 202 | + |
| 203 | +ol.upperalpha { |
| 204 | + list-style: upper-alpha } |
| 205 | + |
| 206 | +ol.lowerroman { |
| 207 | + list-style: lower-roman } |
| 208 | + |
| 209 | +ol.upperroman { |
| 210 | + list-style: upper-roman } |
| 211 | + |
| 212 | +p.attribution { |
| 213 | + text-align: right ; |
| 214 | + margin-left: 50% } |
| 215 | + |
| 216 | +p.caption { |
| 217 | + font-style: italic } |
| 218 | + |
| 219 | +p.credits { |
| 220 | + font-style: italic ; |
| 221 | + font-size: smaller } |
| 222 | + |
| 223 | +p.label { |
| 224 | + white-space: nowrap } |
| 225 | + |
| 226 | +p.rubric { |
| 227 | + font-weight: bold ; |
| 228 | + font-size: larger ; |
| 229 | + color: maroon ; |
| 230 | + text-align: center } |
| 231 | + |
| 232 | +p.sidebar-title { |
| 233 | + font-family: sans-serif ; |
| 234 | + font-weight: bold ; |
| 235 | + font-size: larger } |
| 236 | + |
| 237 | +p.sidebar-subtitle { |
| 238 | + font-family: sans-serif ; |
| 239 | + font-weight: bold } |
| 240 | + |
| 241 | +p.topic-title { |
| 242 | + font-weight: bold } |
| 243 | + |
| 244 | +pre.address { |
| 245 | + margin-bottom: 0 ; |
| 246 | + margin-top: 0 ; |
| 247 | + font: inherit } |
| 248 | + |
| 249 | +pre.literal-block, pre.doctest-block, pre.math, pre.code { |
| 250 | + margin-left: 2em ; |
| 251 | + margin-right: 2em } |
| 252 | + |
| 253 | +pre.code .ln { color: grey; } /* line numbers */ |
| 254 | +pre.code, code { background-color: #eeeeee } |
| 255 | +pre.code .comment, code .comment { color: #5C6576 } |
| 256 | +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
| 257 | +pre.code .literal.string, code .literal.string { color: #0C5404 } |
| 258 | +pre.code .name.builtin, code .name.builtin { color: #352B84 } |
| 259 | +pre.code .deleted, code .deleted { background-color: #DEB0A1} |
| 260 | +pre.code .inserted, code .inserted { background-color: #A3D289} |
| 261 | + |
| 262 | +span.classifier { |
| 263 | + font-family: sans-serif ; |
| 264 | + font-style: oblique } |
| 265 | + |
| 266 | +span.classifier-delimiter { |
| 267 | + font-family: sans-serif ; |
| 268 | + font-weight: bold } |
| 269 | + |
| 270 | +span.interpreted { |
| 271 | + font-family: sans-serif } |
| 272 | + |
| 273 | +span.option { |
| 274 | + white-space: nowrap } |
| 275 | + |
| 276 | +span.pre { |
| 277 | + white-space: pre } |
| 278 | + |
| 279 | +span.problematic { |
| 280 | + color: red } |
| 281 | + |
| 282 | +span.section-subtitle { |
| 283 | + /* font-size relative to parent (h1..h6 element) */ |
| 284 | + font-size: 80% } |
| 285 | + |
| 286 | +table.citation { |
| 287 | + border-left: solid 1px gray; |
| 288 | + margin-left: 1px } |
| 289 | + |
| 290 | +table.docinfo { |
| 291 | + margin: 2em 4em } |
| 292 | + |
| 293 | +table.docutils { |
| 294 | + margin-top: 0.5em ; |
| 295 | + margin-bottom: 0.5em } |
| 296 | + |
| 297 | +table.footnote { |
| 298 | + border-left: solid 1px black; |
| 299 | + margin-left: 1px } |
| 300 | + |
| 301 | +table.docutils td, table.docutils th, |
| 302 | +table.docinfo td, table.docinfo th { |
| 303 | + padding-left: 0.5em ; |
| 304 | + padding-right: 0.5em ; |
| 305 | + vertical-align: top } |
| 306 | + |
| 307 | +table.docutils th.field-name, table.docinfo th.docinfo-name { |
| 308 | + font-weight: bold ; |
| 309 | + text-align: left ; |
| 310 | + white-space: nowrap ; |
| 311 | + padding-left: 0 } |
| 312 | + |
| 313 | +h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
| 314 | +h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
| 315 | + font-size: 100% } |
| 316 | + |
| 317 | +ul.auto-toc { |
| 318 | + list-style-type: none } |
0 commit comments