boostbook.css 6.4 KB

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