html4css1.css 6.7 KB

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