html4css1.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. /*
  2. :Author: David Goodger (goodger@python.org)
  3. :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z 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 https://docutils.sourceforge.io/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. .subscript {
  24. vertical-align: sub;
  25. font-size: smaller }
  26. .superscript {
  27. vertical-align: super;
  28. font-size: smaller }
  29. a.toc-backref {
  30. text-decoration: none ;
  31. color: black }
  32. blockquote.epigraph {
  33. margin: 2em 5em ; }
  34. dl.docutils dd {
  35. margin-bottom: 0.5em }
  36. object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  37. overflow: hidden;
  38. }
  39. /* Uncomment (and remove this text!) to get bold-faced definition list terms
  40. dl.docutils dt {
  41. font-weight: bold }
  42. */
  43. div.abstract {
  44. margin: 2em 5em }
  45. div.abstract p.topic-title {
  46. font-weight: bold ;
  47. text-align: center }
  48. div.admonition, div.attention, div.caution, div.danger, div.error,
  49. div.hint, div.important, div.note, div.tip, div.warning {
  50. margin: 2em ;
  51. border: medium outset ;
  52. padding: 1em }
  53. div.admonition p.admonition-title, div.hint p.admonition-title,
  54. div.important p.admonition-title, div.note p.admonition-title,
  55. div.tip p.admonition-title {
  56. font-weight: bold ;
  57. font-family: sans-serif }
  58. div.attention p.admonition-title, div.caution p.admonition-title,
  59. div.danger p.admonition-title, div.error p.admonition-title,
  60. div.warning p.admonition-title, .code .error {
  61. color: red ;
  62. font-weight: bold ;
  63. font-family: sans-serif }
  64. /* Uncomment (and remove this text!) to get reduced vertical space in
  65. compound paragraphs.
  66. div.compound .compound-first, div.compound .compound-middle {
  67. margin-bottom: 0.5em }
  68. div.compound .compound-last, div.compound .compound-middle {
  69. margin-top: 0.5em }
  70. */
  71. div.dedication {
  72. margin: 2em 5em ;
  73. text-align: center ;
  74. font-style: italic }
  75. div.dedication p.topic-title {
  76. font-weight: bold ;
  77. font-style: normal }
  78. div.figure {
  79. margin-left: 2em ;
  80. margin-right: 2em }
  81. div.footer, div.header {
  82. clear: both;
  83. font-size: smaller }
  84. div.line-block {
  85. display: block ;
  86. margin-top: 1em ;
  87. margin-bottom: 1em }
  88. div.line-block div.line-block {
  89. margin-top: 0 ;
  90. margin-bottom: 0 ;
  91. margin-left: 1.5em }
  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, table.align-left {
  125. clear: left ;
  126. float: left ;
  127. margin-right: 1em }
  128. img.align-right, .figure.align-right, object.align-right, table.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. table.align-center {
  138. margin-left: auto;
  139. margin-right: auto;
  140. }
  141. .align-left {
  142. text-align: left }
  143. .align-center {
  144. clear: both ;
  145. text-align: center }
  146. .align-right {
  147. text-align: right }
  148. /* reset inner alignment in figures */
  149. div.align-right {
  150. text-align: inherit }
  151. /* div.align-center * { */
  152. /* text-align: left } */
  153. .align-top {
  154. vertical-align: top }
  155. .align-middle {
  156. vertical-align: middle }
  157. .align-bottom {
  158. vertical-align: bottom }
  159. ol.simple, ul.simple {
  160. margin-bottom: 1em }
  161. ol.arabic {
  162. list-style: decimal }
  163. ol.loweralpha {
  164. list-style: lower-alpha }
  165. ol.upperalpha {
  166. list-style: upper-alpha }
  167. ol.lowerroman {
  168. list-style: lower-roman }
  169. ol.upperroman {
  170. list-style: upper-roman }
  171. p.attribution {
  172. text-align: right ;
  173. margin-left: 50% }
  174. p.caption {
  175. font-style: italic }
  176. p.credits {
  177. font-style: italic ;
  178. font-size: smaller }
  179. p.label {
  180. white-space: nowrap }
  181. p.rubric {
  182. font-weight: bold ;
  183. font-size: larger ;
  184. color: maroon ;
  185. text-align: center }
  186. p.sidebar-title {
  187. font-family: sans-serif ;
  188. font-weight: bold ;
  189. font-size: larger }
  190. p.sidebar-subtitle {
  191. font-family: sans-serif ;
  192. font-weight: bold }
  193. p.topic-title {
  194. font-weight: bold }
  195. pre.address {
  196. margin-bottom: 0 ;
  197. margin-top: 0 ;
  198. font: inherit }
  199. pre.literal-block, pre.doctest-block, pre.math, pre.code {
  200. margin-left: 2em ;
  201. margin-right: 2em }
  202. pre.code .ln { color: grey; } /* line numbers */
  203. pre.code, code { background-color: #eeeeee }
  204. pre.code .comment, code .comment { color: #5C6576 }
  205. pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
  206. pre.code .literal.string, code .literal.string { color: #0C5404 }
  207. pre.code .name.builtin, code .name.builtin { color: #352B84 }
  208. pre.code .deleted, code .deleted { background-color: #DEB0A1}
  209. pre.code .inserted, code .inserted { background-color: #A3D289}
  210. span.classifier {
  211. font-family: sans-serif ;
  212. font-style: oblique }
  213. span.classifier-delimiter {
  214. font-family: sans-serif ;
  215. font-weight: bold }
  216. span.interpreted {
  217. font-family: sans-serif }
  218. span.option {
  219. white-space: nowrap }
  220. span.pre {
  221. white-space: pre }
  222. span.problematic {
  223. color: red }
  224. span.section-subtitle {
  225. /* font-size relative to parent (h1..h6 element) */
  226. font-size: 80% }
  227. table.citation {
  228. border-left: solid 1px gray;
  229. margin-left: 1px }
  230. table.docinfo {
  231. margin: 2em 4em }
  232. table.docutils {
  233. margin-top: 0.5em ;
  234. margin-bottom: 0.5em }
  235. table.footnote {
  236. border-left: solid 1px black;
  237. margin-left: 1px }
  238. table.docutils td, table.docutils th,
  239. table.docinfo td, table.docinfo th {
  240. padding-left: 0.5em ;
  241. padding-right: 0.5em ;
  242. vertical-align: top }
  243. table.docutils th.field-name, table.docinfo th.docinfo-name {
  244. font-weight: bold ;
  245. text-align: left ;
  246. white-space: nowrap ;
  247. padding-left: 0 }
  248. /* "booktabs" style (no vertical lines) */
  249. table.docutils.booktabs {
  250. border: 0px;
  251. border-top: 2px solid;
  252. border-bottom: 2px solid;
  253. border-collapse: collapse;
  254. }
  255. table.docutils.booktabs * {
  256. border: 0px;
  257. }
  258. table.docutils.booktabs th {
  259. border-bottom: thin solid;
  260. text-align: left;
  261. }
  262. h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
  263. h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  264. font-size: 100% }
  265. ul.auto-toc {
  266. list-style-type: none }