rst.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. dt {
  76. font-weight: bold
  77. }
  78. H1.title
  79. {
  80. FONT-SIZE: 200%;
  81. COLOR: #00008B;
  82. text-align: center
  83. }
  84. H1
  85. {
  86. FONT-SIZE: 150%;
  87. }
  88. H2
  89. {
  90. FONT-SIZE: 125%;
  91. }
  92. h2.subtitle {
  93. text-align: center }
  94. H3
  95. {
  96. FONT-SIZE: 108%;
  97. }
  98. BODY
  99. {
  100. FONT-SIZE: 100%;
  101. BACKGROUND-COLOR: #ffffff;
  102. }
  103. PRE
  104. {
  105. MARGIN-LEFT: 2em;
  106. FONT-FAMILY: Courier;
  107. }
  108. CODE
  109. {
  110. FONT-FAMILY: Courier;
  111. white-space: pre;
  112. }
  113. .pre
  114. {
  115. FONT-FAMILY: Courier;
  116. white-space: pre;
  117. }
  118. .index
  119. {
  120. TEXT-ALIGN: left;
  121. }
  122. .page-index
  123. {
  124. TEXT-ALIGN: left;
  125. }
  126. .definition
  127. {
  128. TEXT-ALIGN: left;
  129. }
  130. .footnote
  131. {
  132. FONT-SIZE: 66%;
  133. VERTICAL-ALIGN: super;
  134. TEXT-DECORATION: none;
  135. }
  136. .function-semantics
  137. {
  138. CLEAR: left;
  139. }
  140. hr {
  141. width: 75% }
  142. ol.simple, ul.simple {
  143. margin-bottom: 1em }
  144. ol.arabic {
  145. list-style: decimal }
  146. ol.loweralpha {
  147. list-style: lower-alpha }
  148. ol.upperalpha {
  149. list-style: upper-alpha }
  150. ol.lowerroman {
  151. list-style: lower-roman }
  152. ol.upperroman {
  153. list-style: upper-roman }
  154. p.attribution {
  155. text-align: right ;
  156. margin-left: 50% }
  157. p.caption {
  158. font-style: italic }
  159. p.credits {
  160. font-style: italic ;
  161. font-size: smaller }
  162. p.label {
  163. white-space: nowrap }
  164. p.rubric {
  165. font-weight: bold ;
  166. font-size: larger ;
  167. color: maroon ;
  168. text-align: center }
  169. p.sidebar-title {
  170. font-family: sans-serif ;
  171. font-weight: bold ;
  172. font-size: larger }
  173. p.sidebar-subtitle {
  174. font-family: sans-serif ;
  175. font-weight: bold }
  176. p.topic-title {
  177. font-weight: bold }
  178. pre.address {
  179. margin-bottom: 0 ;
  180. margin-top: 0 ;
  181. font-family: serif ;
  182. font-size: 100% }
  183. pre.line-block {
  184. font-family: serif ;
  185. font-size: 100% }
  186. pre.literal-block, pre.doctest-block {
  187. margin-left: 2em ;
  188. margin-right: 2em ;
  189. background-color: #eeeeee }
  190. span.class {
  191. font-family: monospace;
  192. }
  193. span.classifier {
  194. font-family: sans-serif ;
  195. font-style: oblique }
  196. span.classifier-delimiter {
  197. font-family: sans-serif ;
  198. font-weight: bold }
  199. span.doublesize {
  200. font-size: 200%
  201. }
  202. span.interpreted {
  203. font-family: sans-serif }
  204. span.concept {
  205. font-family: sans-serif }
  206. span.function {
  207. font-family: monospace;
  208. }
  209. span.option {
  210. white-space: nowrap }
  211. span.option-argument {
  212. font-style: italic }
  213. span.pre {
  214. white-space: pre }
  215. span.problematic {
  216. color: red }
  217. /* Firefox, at least, seems to need some help lowering
  218. subscripts. Without the following, subscripts seem not to drop
  219. at all when in a preformatted block. -- DWA
  220. */
  221. sub {
  222. vertical-align: -20%
  223. }
  224. table {
  225. margin-top: 0.5em ;
  226. margin-bottom: 0.5em }
  227. table.citation {
  228. border-left: solid thin gray ;
  229. padding-left: 0.5ex }
  230. table.docinfo {
  231. margin: 2em 4em }
  232. table.footnote {
  233. border-left: solid thin black ;
  234. padding-left: 0.5ex }
  235. td, th {
  236. padding-left: 0.5em ;
  237. padding-right: 0.5em ;
  238. vertical-align: top }
  239. th.docinfo-name, th.field-name {
  240. font-weight: bold ;
  241. text-align: left ;
  242. white-space: nowrap }
  243. /*
  244. dwa 2003/7/29 -- commented out so that it wouldn't override earlier
  245. styles from boost.css
  246. h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
  247. font-size: 100% }
  248. */
  249. ul.auto-toc {
  250. list-style-type: none }
  251. img.boost-logo {
  252. border: none;
  253. vertical-align: middle
  254. }
  255. pre.literal-block span.concept {
  256. font-style: italic;
  257. }
粤ICP备19079148号