boostbook.css 6.1 KB

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