boostbook.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /*=============================================================================
  2. Copyright (c) 2002 2004 Joel de Guzman, Eric Niebler, Rene Rivera
  3. http://spirit.sourceforge.net/
  4. Use, modification and distribution is subject to the Boost Software
  5. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. /* CSS based on w3c documentation which I like a lot, and the classic Spirit
  9. documentation. */
  10. /* Body defaults */
  11. body
  12. {
  13. padding: 2em 1em 2em 1em;
  14. margin: 1em 1em 1em 1em;
  15. font-family: sans-serif;
  16. }
  17. /* Paragraphs */
  18. p
  19. {
  20. text-align: justify;
  21. }
  22. pre.synopsis
  23. {
  24. margin: 1pc 4% 0pc 4%;
  25. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  26. }
  27. /* Headings */
  28. h1, h2, h3, h4, h5, h6 { text-align: left; margin-top: 2pc; }
  29. h1 { font: 170% sans-serif }
  30. h2 { font: bold 140% sans-serif }
  31. h3 { font: 120% sans-serif }
  32. h4 { font: bold 100% sans-serif }
  33. h5 { font: italic 100% sans-serif }
  34. h6 { font: italic 100% sans-serif }
  35. /* Unordered lists */
  36. ul
  37. {
  38. text-align: justify;
  39. }
  40. /* Links */
  41. a
  42. {
  43. text-decoration: none; /* no underline */
  44. }
  45. a:hover
  46. {
  47. text-decoration: underline;
  48. }
  49. /* Top page title */
  50. title, h1.title, h2.title, h3.title,
  51. h4.title, h5.title, h6.title,
  52. .refentrytitle
  53. {
  54. font-weight: bold;
  55. font-size: 2pc;
  56. margin-bottom: 1pc;
  57. }
  58. /* Spirit style navigation */
  59. .spirit-nav
  60. {
  61. text-align: right;
  62. }
  63. .spirit-nav a
  64. {
  65. color: white;
  66. padding-left: 0.5em;
  67. }
  68. .spirit-nav img
  69. {
  70. border-width: 0px;
  71. }
  72. /* Program listing box */
  73. .programlisting, .screen
  74. {
  75. display: block;
  76. margin-left: 4%;
  77. margin-right: 4%;
  78. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  79. }
  80. /* Table of contents */
  81. .toc
  82. {
  83. margin: 1pc 4% 0pc 4%;
  84. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  85. }
  86. .boost-toc
  87. {
  88. float: right;
  89. padding: 0.5pc;
  90. }
  91. /* Tables */
  92. .table-title, div.table p.title
  93. {
  94. margin-left: 4%;
  95. padding-right: 0.5em;
  96. padding-left: 0.5em;
  97. font-size: 120%;
  98. }
  99. .informaltable table, .table table
  100. {
  101. width: 92%;
  102. margin-left: 4%;
  103. margin-right: 4%;
  104. }
  105. div.informaltable table, div.table table
  106. {
  107. padding: 4px 4px 4px 4px;
  108. }
  109. div.informaltable table tr td, div.table table tr td
  110. {
  111. padding: 0.5em 0.5em 0.5em 0.5em;
  112. text-align: justify;
  113. }
  114. div.informaltable table tr th, div.table table tr th
  115. {
  116. padding: 0.5em 0.5em 0.5em 0.5em;
  117. border: 1pt solid white;
  118. }
  119. /* inlined images */
  120. .inlinemediaobject
  121. {
  122. padding: 0.5em 0.5em 0.5em 0.5em;
  123. }
  124. /* tone down the title of Parameter lists */
  125. div.variablelist p.title
  126. {
  127. font-weight: bold;
  128. font-size: 100%;
  129. text-align: left;
  130. }
  131. /* tabularize parameter lists */
  132. div.variablelist dl dt
  133. {
  134. float: left;
  135. clear: left;
  136. display: block;
  137. font-style: italic;
  138. }
  139. div.variablelist dl dd
  140. {
  141. display: block;
  142. clear: right;
  143. padding-left: 8pc;
  144. }
  145. /* title of books and articles in bibliographies */
  146. span.title
  147. {
  148. font-style: italic;
  149. }
  150. /* tips, notes and warnings done in Spirit style */
  151. div.tip, div.note, div.warning
  152. {
  153. position: relative;
  154. padding: 0.5em;
  155. border: 0.5pt solid white;
  156. }
  157. div.tip .title, div.note .title, div.warning .title
  158. {
  159. display: block;
  160. font: bold xx-small sans-serif;
  161. margin: 0;
  162. padding: 0;
  163. position: absolute;
  164. left: -4em;
  165. top: 0em;
  166. height: 25px;
  167. width: 24px;
  168. text-indent: 32px;
  169. overflow: hidden;
  170. z-index: 2;
  171. }
  172. div.tip .title
  173. {
  174. background: url(images/tip.png);
  175. }
  176. div.note .title
  177. {
  178. background: url(images/note.png);
  179. }
  180. div.warning .title
  181. {
  182. background: url(images/caution.png);
  183. }
  184. @media screen
  185. {
  186. a
  187. {
  188. color: #005a9c;
  189. }
  190. a:visited
  191. {
  192. color: #9c5a9c;
  193. }
  194. /* Syntax Highlighting */
  195. .keyword { color: #0000AA; font-weight: bold; }
  196. .identifier {}
  197. .special { color: #707070; }
  198. .preprocessor { color: #402080; font-weight: bold; }
  199. .char { color: teal; }
  200. .comment { color: #800000; }
  201. .string { color: teal; }
  202. .number { color: teal; }
  203. .copyright { color: #666666; font-size: small; }
  204. .white_bkd { background-color: #FFFFFF; }
  205. .dk_grey_bkd { background-color: #999999; }
  206. pre.synopsis
  207. {
  208. background-color: #f3f3f3;
  209. }
  210. .programlisting, .screen
  211. {
  212. background-color: #f3f3f3;
  213. }
  214. /* Table of contents */
  215. .toc
  216. {
  217. background-color: #f3f3f3;
  218. }
  219. div.informaltable table tr td, div.table table tr td
  220. {
  221. background-color: #F3F3F3;
  222. border: 1pt solid white;
  223. }
  224. div.informaltable table tr th, div.table table tr th
  225. {
  226. background-color: #e4e4e4;
  227. }
  228. div.tip, div.note, div.warning
  229. {
  230. background-color: #F3F3F3;
  231. }
  232. span.highlight
  233. {
  234. color: #00A000;
  235. }
  236. }
  237. @media print
  238. {
  239. a
  240. {
  241. color: black;
  242. }
  243. a:visited
  244. {
  245. color: black;
  246. }
  247. .spirit-nav
  248. {
  249. display: none;
  250. }
  251. /* Syntax Highlighting */
  252. .keyword
  253. {
  254. font-weight: bold;
  255. }
  256. pre.synopsis
  257. {
  258. border: 1px solid gray;
  259. }
  260. .programlisting, .screen
  261. {
  262. border: 1px solid gray;
  263. }
  264. /* Table of contents */
  265. .toc
  266. {
  267. border: 1px solid gray;
  268. }
  269. .informaltable table, .table table
  270. {
  271. border: 1px solid gray;
  272. border-collapse: collapse;
  273. }
  274. div.informaltable table tr td, div.table table tr td
  275. {
  276. border: 1px solid gray;
  277. }
  278. div.informaltable table tr th, div.table table tr th
  279. {
  280. border: 1px solid gray;
  281. }
  282. div.tip, div.note, div.warning
  283. {
  284. border: 1px solid gray;
  285. }
  286. span.highlight
  287. {
  288. font-weight: bold;
  289. }
  290. }
粤ICP备19079148号