rst.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /*
  2. :Authors: David Goodger, David Abrahams
  3. :Contact: goodger@users.sourceforge.net, dave@boost-consulting.com
  4. :date: $Date$
  5. :version: $Revision$
  6. :copyright: This stylesheet has been placed in the public domain.
  7. This stylesheet is for the use of ReStructuredText in a Boost context.
  8. It is basically an agglomeration of boost.css and the default.css that
  9. comes from docutils.
  10. */
  11. .first {
  12. margin-top: 0 }
  13. .last {
  14. margin-bottom: 0 }
  15. a.toc-backref {
  16. text-decoration: none ;
  17. color: black }
  18. dd {
  19. margin-bottom: 0.5em }
  20. div.abstract {
  21. margin: 2em 5em }
  22. div.abstract p.topic-title {
  23. font-weight: bold ;
  24. text-align: center }
  25. div.attention, div.caution, div.danger, div.error, div.hint,
  26. div.important, div.note, div.tip, div.warning, div.admonition {
  27. margin: 2em ;
  28. border: medium outset ;
  29. padding: 1em }
  30. div.attention p.admonition-title, div.caution p.admonition-title,
  31. div.danger p.admonition-title, div.error p.admonition-title,
  32. div.warning p.admonition-title {
  33. color: red ;
  34. font-weight: bold ;
  35. font-family: sans-serif }
  36. div.hint p.admonition-title, div.important p.admonition-title,
  37. div.note p.admonition-title, div.tip p.admonition-title,
  38. div.admonition p.admonition-title {
  39. font-weight: bold ;
  40. font-family: sans-serif }
  41. div.dedication {
  42. margin: 2em 5em ;
  43. text-align: center ;
  44. font-style: italic }
  45. div.dedication p.topic-title {
  46. font-weight: bold ;
  47. font-style: normal }
  48. div.figure {
  49. margin-left: 2em }
  50. div.footer, div.header {
  51. font-size: smaller }
  52. div.sidebar {
  53. margin-left: 1em ;
  54. border: medium outset ;
  55. padding: 0em 1em ;
  56. background-color: #ffffee ;
  57. width: 40% ;
  58. float: right ;
  59. clear: right }
  60. div.sidebar p.rubric {
  61. font-family: sans-serif ;
  62. font-size: medium }
  63. div.system-messages {
  64. margin: 5em }
  65. div.system-messages h1 {
  66. color: red }
  67. div.system-message {
  68. border: medium outset ;
  69. padding: 1em }
  70. div.system-message p.system-message-title {
  71. color: red ;
  72. font-weight: bold }
  73. div.topic {
  74. margin: 2em }
  75. H1.title
  76. {
  77. FONT-SIZE: 200%;
  78. COLOR: #00008B;
  79. text-align: center
  80. }
  81. H1
  82. {
  83. FONT-SIZE: 150%;
  84. }
  85. H2
  86. {
  87. FONT-SIZE: 125%;
  88. }
  89. h2.subtitle {
  90. text-align: center }
  91. H3
  92. {
  93. FONT-SIZE: 108%;
  94. }
  95. BODY
  96. {
  97. FONT-SIZE: 100%;
  98. BACKGROUND-COLOR: #ffffff;
  99. }
  100. PRE
  101. {
  102. MARGIN-LEFT: 2em;
  103. FONT-FAMILY: Courier;
  104. }
  105. CODE
  106. {
  107. FONT-FAMILY: Courier;
  108. white-space: pre;
  109. }
  110. .pre
  111. {
  112. FONT-FAMILY: Courier;
  113. white-space: pre;
  114. }
  115. .index
  116. {
  117. TEXT-ALIGN: left;
  118. }
  119. .page-index
  120. {
  121. TEXT-ALIGN: left;
  122. }
  123. .definition
  124. {
  125. TEXT-ALIGN: left;
  126. }
  127. .footnote
  128. {
  129. FONT-SIZE: 66%;
  130. VERTICAL-ALIGN: super;
  131. TEXT-DECORATION: none;
  132. }
  133. .function-semantics
  134. {
  135. CLEAR: left;
  136. }
  137. hr {
  138. width: 75% }
  139. ol.simple, ul.simple {
  140. margin-bottom: 1em }
  141. ol.arabic {
  142. list-style: decimal }
  143. ol.loweralpha {
  144. list-style: lower-alpha }
  145. ol.upperalpha {
  146. list-style: upper-alpha }
  147. ol.lowerroman {
  148. list-style: lower-roman }
  149. ol.upperroman {
  150. list-style: upper-roman }
  151. p.attribution {
  152. text-align: right ;
  153. margin-left: 50% }
  154. p.caption {
  155. font-style: italic }
  156. p.credits {
  157. font-style: italic ;
  158. font-size: smaller }
  159. p.label {
  160. white-space: nowrap }
  161. p.rubric {
  162. font-weight: bold ;
  163. font-size: larger ;
  164. color: maroon ;
  165. text-align: center }
  166. p.sidebar-title {
  167. font-family: sans-serif ;
  168. font-weight: bold ;
  169. font-size: larger }
  170. p.sidebar-subtitle {
  171. font-family: sans-serif ;
  172. font-weight: bold }
  173. p.topic-title {
  174. font-weight: bold }
  175. pre.address {
  176. margin-bottom: 0 ;
  177. margin-top: 0 ;
  178. font-family: serif ;
  179. font-size: 100% }
  180. pre.line-block {
  181. font-family: serif ;
  182. font-size: 100% }
  183. pre.literal-block, pre.doctest-block {
  184. margin-left: 2em ;
  185. margin-right: 2em ;
  186. background-color: #eeeeee }
  187. span.classifier {
  188. font-family: sans-serif ;
  189. font-style: oblique }
  190. span.classifier-delimiter {
  191. font-family: sans-serif ;
  192. font-weight: bold }
  193. span.interpreted {
  194. font-family: sans-serif }
  195. span.option {
  196. white-space: nowrap }
  197. span.option-argument {
  198. font-style: italic }
  199. span.pre {
  200. white-space: pre }
  201. span.problematic {
  202. color: red }
  203. table {
  204. margin-top: 0.5em ;
  205. margin-bottom: 0.5em }
  206. table.citation {
  207. border-left: solid thin gray ;
  208. padding-left: 0.5ex }
  209. table.docinfo {
  210. margin: 2em 4em }
  211. table.footnote {
  212. border-left: solid thin black ;
  213. padding-left: 0.5ex }
  214. td, th {
  215. padding-left: 0.5em ;
  216. padding-right: 0.5em ;
  217. vertical-align: top }
  218. th.docinfo-name, th.field-name {
  219. font-weight: bold ;
  220. text-align: left ;
  221. white-space: nowrap }
  222. /*
  223. dwa 2003/7/29 -- commented out so that it wouldn't override earlier
  224. styles from boost.css
  225. h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
  226. font-size: 100% }
  227. */
  228. ul.auto-toc {
  229. list-style-type: none }
  230. img.boost-logo {
  231. border: none;
  232. vertical-align: middle
  233. }
粤ICP备19079148号