rst.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. 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. html[dir="rtl"] div.line-block div.line-block {
  87. margin-top: 0 ;
  88. margin-bottom: 0 ;
  89. margin-right: 1.5em ;
  90. margin-left: 0 ;
  91. }
  92. div.sidebar {
  93. margin: 0 0 0.5em 1em ;
  94. border: medium outset ;
  95. padding: 1em ;
  96. background-color: #ffffee ;
  97. width: 40% ;
  98. float: right ;
  99. clear: right }
  100. div.sidebar p.rubric {
  101. font-family: sans-serif ;
  102. font-size: medium }
  103. div.system-messages {
  104. margin: 5em }
  105. div.system-messages h1 {
  106. color: red }
  107. div.system-message {
  108. border: medium outset ;
  109. padding: 1em }
  110. div.system-message p.system-message-title {
  111. color: red ;
  112. font-weight: bold }
  113. div.topic {
  114. margin: 2em }
  115. h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
  116. h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  117. margin-top: 0.4em }
  118. h1.title {
  119. text-align: center }
  120. h2.subtitle {
  121. text-align: center }
  122. hr.docutils {
  123. width: 75% }
  124. img.align-left, .figure.align-left, object.align-left {
  125. clear: left ;
  126. float: left ;
  127. margin-right: 1em }
  128. img.align-right, .figure.align-right, object.align-right {
  129. clear: right ;
  130. float: right ;
  131. margin-left: 1em }
  132. img.align-center, .figure.align-center, object.align-center {
  133. display: block;
  134. margin-left: auto;
  135. margin-right: auto;
  136. }
  137. .align-left {
  138. text-align: left }
  139. .align-center {
  140. clear: both ;
  141. text-align: center }
  142. .align-right {
  143. text-align: right }
  144. /* reset inner alignment in figures */
  145. div.align-right {
  146. text-align: inherit }
  147. /* div.align-center * { */
  148. /* text-align: left } */
  149. ol.simple, ul.simple {
  150. margin-bottom: 1em }
  151. ol.arabic {
  152. list-style: decimal }
  153. ol.loweralpha {
  154. list-style: lower-alpha }
  155. ol.upperalpha {
  156. list-style: upper-alpha }
  157. ol.lowerroman {
  158. list-style: lower-roman }
  159. ol.upperroman {
  160. list-style: upper-roman }
  161. p.attribution {
  162. text-align: right ;
  163. margin-left: 50% }
  164. p.caption {
  165. font-style: italic }
  166. p.credits {
  167. font-style: italic ;
  168. font-size: smaller }
  169. p.label {
  170. white-space: nowrap }
  171. p.rubric {
  172. font-weight: bold ;
  173. font-size: larger ;
  174. color: maroon ;
  175. text-align: center }
  176. p.sidebar-title {
  177. font-family: sans-serif ;
  178. font-weight: bold ;
  179. font-size: larger }
  180. p.sidebar-subtitle {
  181. font-family: sans-serif ;
  182. font-weight: bold }
  183. p.topic-title {
  184. font-weight: bold }
  185. pre.address {
  186. margin-bottom: 0 ;
  187. margin-top: 0 ;
  188. font: inherit }
  189. pre.literal-block, pre.doctest-block, pre.math, pre.code {
  190. margin-left: 2em ;
  191. margin-right: 2em }
  192. pre.code .ln { color: grey; } /* line numbers */
  193. pre.code, code { background-color: #eeeeee; }
  194. pre.code .comment, code .comment { color: #5C6576 }
  195. pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
  196. pre.code .literal.string, code .literal.string { color: #0C5404 }
  197. pre.code .name.builtin, code .name.builtin { color: #352B84 }
  198. pre.code .deleted, code .deleted { background-color: #DEB0A1}
  199. pre.code .inserted, code .inserted { background-color: #A3D289}
  200. span.classifier {
  201. font-family: sans-serif ;
  202. font-style: oblique }
  203. span.classifier-delimiter {
  204. font-family: sans-serif ;
  205. font-weight: bold }
  206. span.interpreted {
  207. font-family: sans-serif }
  208. span.option {
  209. white-space: nowrap }
  210. span.pre {
  211. white-space: pre }
  212. span.problematic {
  213. color: red }
  214. span.section-subtitle {
  215. /* font-size relative to parent (h1..h6 element) */
  216. font-size: 80% }
  217. table.citation {
  218. border-left: solid 1px gray;
  219. margin-left: 1px }
  220. table.docinfo {
  221. margin: 2em 4em }
  222. table.docutils {
  223. margin-top: 0.5em ;
  224. margin-bottom: 0.5em }
  225. table.footnote {
  226. border-left: solid 1px black;
  227. margin-left: 1px }
  228. table.docutils td, table.docutils th,
  229. table.docinfo td, table.docinfo th {
  230. padding-left: 0.5em ;
  231. padding-right: 0.5em ;
  232. vertical-align: top }
  233. table.docutils th.field-name, table.docinfo th.docinfo-name {
  234. font-weight: bold ;
  235. text-align: left ;
  236. white-space: nowrap ;
  237. padding-left: 0 }
  238. h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
  239. h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  240. font-size: 100% }
  241. ul.auto-toc {
  242. list-style-type: none }
  243. a.footnote-reference {
  244. line-height: 0px;
  245. }