rst.css 5.2 KB

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