default.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /*
  2. :Author: David Goodger (goodger@python.org)
  3. :Id: $Id: html4css1.css 5951 2009-05-18 18:03:10Z 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. /* Uncomment (and remove this text!) to get bold-faced definition list terms
  31. dl.docutils dt {
  32. font-weight: bold }
  33. */
  34. div.abstract {
  35. margin: 2em 5em }
  36. div.abstract p.topic-title {
  37. font-weight: bold ;
  38. text-align: center }
  39. div.admonition, div.attention, div.caution, div.danger, div.error,
  40. div.hint, div.important, div.note, div.tip, div.warning {
  41. margin: 2em ;
  42. border: medium outset ;
  43. padding: 1em }
  44. div.admonition p.admonition-title, div.hint p.admonition-title,
  45. div.important p.admonition-title, div.note p.admonition-title,
  46. div.tip p.admonition-title {
  47. font-weight: bold ;
  48. font-family: sans-serif }
  49. div.attention p.admonition-title, div.caution p.admonition-title,
  50. div.danger p.admonition-title, div.error p.admonition-title,
  51. div.warning p.admonition-title {
  52. color: red ;
  53. font-weight: bold ;
  54. font-family: sans-serif }
  55. /* Uncomment (and remove this text!) to get reduced vertical space in
  56. compound paragraphs.
  57. div.compound .compound-first, div.compound .compound-middle {
  58. margin-bottom: 0.5em }
  59. div.compound .compound-last, div.compound .compound-middle {
  60. margin-top: 0.5em }
  61. */
  62. div.dedication {
  63. margin: 2em 5em ;
  64. text-align: center ;
  65. font-style: italic }
  66. div.dedication p.topic-title {
  67. font-weight: bold ;
  68. font-style: normal }
  69. div.figure {
  70. margin-left: 2em ;
  71. margin-right: 2em }
  72. div.footer, div.header {
  73. clear: both;
  74. font-size: smaller }
  75. div.line-block {
  76. display: block ;
  77. margin-top: 1em ;
  78. margin-bottom: 1em }
  79. div.line-block div.line-block {
  80. margin-top: 0 ;
  81. margin-bottom: 0 ;
  82. margin-left: 1.5em }
  83. div.sidebar {
  84. margin: 0 0 0.5em 1em ;
  85. border: medium outset ;
  86. padding: 1em ;
  87. background-color: #ffffee ;
  88. width: 40% ;
  89. float: right ;
  90. clear: right }
  91. div.sidebar p.rubric {
  92. font-family: sans-serif ;
  93. font-size: medium }
  94. div.system-messages {
  95. margin: 5em }
  96. div.system-messages h1 {
  97. color: red }
  98. div.system-message {
  99. border: medium outset ;
  100. padding: 1em }
  101. div.system-message p.system-message-title {
  102. color: red ;
  103. font-weight: bold }
  104. div.topic {
  105. margin: 2em }
  106. h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
  107. h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  108. margin-top: 0.4em }
  109. h1.title {
  110. text-align: center }
  111. h2.subtitle {
  112. text-align: center }
  113. hr.docutils {
  114. width: 75% }
  115. img.align-left, .figure.align-left{
  116. clear: left ;
  117. float: left ;
  118. margin-right: 1em }
  119. img.align-right, .figure.align-right {
  120. clear: right ;
  121. float: right ;
  122. margin-left: 1em }
  123. .align-left {
  124. text-align: left }
  125. .align-center {
  126. clear: both ;
  127. text-align: center }
  128. .align-right {
  129. text-align: right }
  130. /* reset inner alignment in figures */
  131. div.align-right {
  132. text-align: left }
  133. /* div.align-center * { */
  134. /* text-align: left } */
  135. ol.simple, ul.simple {
  136. margin-bottom: 1em }
  137. ol.arabic {
  138. list-style: decimal }
  139. ol.loweralpha {
  140. list-style: lower-alpha }
  141. ol.upperalpha {
  142. list-style: upper-alpha }
  143. ol.lowerroman {
  144. list-style: lower-roman }
  145. ol.upperroman {
  146. list-style: upper-roman }
  147. p.attribution {
  148. text-align: right ;
  149. margin-left: 50% }
  150. p.caption {
  151. font-style: italic }
  152. p.credits {
  153. font-style: italic ;
  154. font-size: smaller }
  155. p.label {
  156. white-space: nowrap }
  157. p.rubric {
  158. font-weight: bold ;
  159. font-size: larger ;
  160. color: maroon ;
  161. text-align: center }
  162. p.sidebar-title {
  163. font-family: sans-serif ;
  164. font-weight: bold ;
  165. font-size: larger }
  166. p.sidebar-subtitle {
  167. font-family: sans-serif ;
  168. font-weight: bold }
  169. p.topic-title {
  170. font-weight: bold }
  171. pre.address {
  172. margin-bottom: 0 ;
  173. margin-top: 0 ;
  174. font: inherit }
  175. pre.literal-block, pre.doctest-block {
  176. margin-left: 2em ;
  177. margin-right: 2em }
  178. span.classifier {
  179. font-family: sans-serif ;
  180. font-style: oblique }
  181. span.classifier-delimiter {
  182. font-family: sans-serif ;
  183. font-weight: bold }
  184. span.interpreted {
  185. font-family: sans-serif }
  186. span.option {
  187. white-space: nowrap }
  188. span.pre {
  189. white-space: pre }
  190. span.problematic {
  191. color: red }
  192. span.section-subtitle {
  193. /* font-size relative to parent (h1..h6 element) */
  194. font-size: 80% }
  195. table.citation {
  196. border-left: solid 1px gray;
  197. margin-left: 1px }
  198. table.docinfo {
  199. margin: 2em 4em }
  200. table.docutils {
  201. margin-top: 0.5em ;
  202. margin-bottom: 0.5em }
  203. table.footnote {
  204. border-left: solid 1px black;
  205. margin-left: 1px }
  206. table.docutils td, table.docutils th,
  207. table.docinfo td, table.docinfo th {
  208. padding-left: 0.5em ;
  209. padding-right: 0.5em ;
  210. vertical-align: top }
  211. table.docutils th.field-name, table.docinfo th.docinfo-name {
  212. font-weight: bold ;
  213. text-align: left ;
  214. white-space: nowrap ;
  215. padding-left: 0 }
  216. h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
  217. h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  218. font-size: 100% }
  219. ul.auto-toc {
  220. list-style-type: none }