docutils.css 5.3 KB

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