boostbook.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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. /* screen & programlisting, when used in a table cell, do not
  120. need the extra padding and margin normally used */
  121. td .screen, td .programlisting
  122. {
  123. display: block;
  124. margin-left: 0%;
  125. margin-right: 0%;
  126. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  127. }
  128. /* inlined images */
  129. .inlinemediaobject
  130. {
  131. padding: 0.5em 0.5em 0.5em 0.5em;
  132. }
  133. /* tone down the title of Parameter lists */
  134. div.variablelist p.title
  135. {
  136. font-weight: bold;
  137. font-size: 100%;
  138. text-align: left;
  139. }
  140. /* tabularize parameter lists */
  141. div.variablelist dl dt
  142. {
  143. float: left;
  144. clear: left;
  145. display: block;
  146. font-style: italic;
  147. }
  148. div.variablelist dl dd
  149. {
  150. display: block;
  151. clear: right;
  152. padding-left: 8pc;
  153. }
  154. /* title of books and articles in bibliographies */
  155. span.title
  156. {
  157. font-style: italic;
  158. }
  159. /* tips, notes and warnings done in Spirit style */
  160. div.tip, div.note, div.warning
  161. {
  162. position: relative;
  163. padding: 0.5em;
  164. border: 0.5pt solid white;
  165. }
  166. div.tip .title, div.note .title, div.warning .title
  167. {
  168. display: block;
  169. font: bold xx-small sans-serif;
  170. margin: 0;
  171. padding: 0;
  172. position: absolute;
  173. left: -4em;
  174. top: 0em;
  175. height: 25px;
  176. width: 24px;
  177. text-indent: 32px;
  178. overflow: hidden;
  179. z-index: 2;
  180. }
  181. div.tip .title
  182. {
  183. background: url(images/tip.png);
  184. }
  185. div.note .title
  186. {
  187. background: url(images/note.png);
  188. }
  189. div.warning .title
  190. {
  191. background: url(images/caution.png);
  192. }
  193. @media screen
  194. {
  195. a
  196. {
  197. color: #005a9c;
  198. }
  199. a:visited
  200. {
  201. color: #9c5a9c;
  202. }
  203. /* Syntax Highlighting */
  204. .keyword { color: #0000AA; font-weight: bold; }
  205. .identifier {}
  206. .special { color: #707070; }
  207. .preprocessor { color: #402080; font-weight: bold; }
  208. .char { color: teal; }
  209. .comment { color: #800000; }
  210. .string { color: teal; }
  211. .number { color: teal; }
  212. .copyright { color: #666666; font-size: small; }
  213. .white_bkd { background-color: #FFFFFF; }
  214. .dk_grey_bkd { background-color: #999999; }
  215. pre.synopsis
  216. {
  217. background-color: #f3f3f3;
  218. }
  219. .programlisting, .screen
  220. {
  221. background-color: #f3f3f3;
  222. }
  223. /* Table of contents */
  224. .toc
  225. {
  226. background-color: #f3f3f3;
  227. }
  228. div.informaltable table tr td, div.table table tr td
  229. {
  230. background-color: #F3F3F3;
  231. border: 1pt solid white;
  232. }
  233. div.informaltable table tr th, div.table table tr th
  234. {
  235. background-color: #e4e4e4;
  236. }
  237. div.tip, div.note, div.warning
  238. {
  239. background-color: #F3F3F3;
  240. }
  241. span.highlight
  242. {
  243. color: #00A000;
  244. }
  245. }
  246. @media print
  247. {
  248. a
  249. {
  250. color: black;
  251. }
  252. a:visited
  253. {
  254. color: black;
  255. }
  256. .spirit-nav
  257. {
  258. display: none;
  259. }
  260. /* Syntax Highlighting */
  261. .keyword
  262. {
  263. font-weight: bold;
  264. }
  265. pre.synopsis
  266. {
  267. border: 1px solid gray;
  268. }
  269. .programlisting, .screen
  270. {
  271. border: 1px solid gray;
  272. }
  273. /* Table of contents */
  274. .toc
  275. {
  276. border: 1px solid gray;
  277. }
  278. .informaltable table, .table table
  279. {
  280. border: 1px solid gray;
  281. border-collapse: collapse;
  282. }
  283. div.informaltable table tr td, div.table table tr td
  284. {
  285. border: 1px solid gray;
  286. }
  287. div.informaltable table tr th, div.table table tr th
  288. {
  289. border: 1px solid gray;
  290. }
  291. div.tip, div.note, div.warning
  292. {
  293. border: 1px solid gray;
  294. }
  295. span.highlight
  296. {
  297. font-weight: bold;
  298. }
  299. }
粤ICP备19079148号