boostbook.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. /*=============================================================================
  2. Copyright (c) 2004 Joel de Guzman
  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. /*=============================================================================
  9. Body defaults
  10. =============================================================================*/
  11. body
  12. {
  13. margin: 1em;
  14. font-family: sans-serif;
  15. }
  16. /*=============================================================================
  17. Paragraphs
  18. =============================================================================*/
  19. p
  20. {
  21. text-align: left;
  22. font-size: 10pt;
  23. line-height: 1.15;
  24. }
  25. /*=============================================================================
  26. Program listings
  27. =============================================================================*/
  28. /* Code on paragraphs */
  29. p tt.computeroutput
  30. {
  31. font-size: 9pt;
  32. }
  33. pre.synopsis
  34. {
  35. font-size: 90%;
  36. margin: 1pc 4% 0pc 4%;
  37. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  38. }
  39. .programlisting,
  40. .screen
  41. {
  42. font-size: 9pt;
  43. display: block;
  44. margin: 1pc 4% 0pc 4%;
  45. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  46. }
  47. /*=============================================================================
  48. Headings
  49. =============================================================================*/
  50. h1, h2, h3, h4, h5, h6
  51. {
  52. text-align: left;
  53. margin: 1em 0em 0.5em 0em;
  54. font-weight: bold;
  55. }
  56. h1 { font: 140% }
  57. h2 { font: bold 140% }
  58. h3 { font: bold 130% }
  59. h4 { font: bold 120% }
  60. h5 { font: italic 110% }
  61. h6 { font: italic 100% }
  62. /* Top page titles */
  63. title,
  64. h1.title,
  65. h2.title
  66. h3.title,
  67. h4.title,
  68. h5.title,
  69. h6.title,
  70. .refentrytitle
  71. {
  72. font-weight: bold;
  73. margin-bottom: 1pc;
  74. }
  75. h1.title { font-size: 140% }
  76. h2.title { font-size: 140% }
  77. h3.title { font-size: 130% }
  78. h4.title { font-size: 120% }
  79. h5.title { font-size: 110% }
  80. h6.title { font-size: 100% }
  81. .section h1
  82. {
  83. margin: 0em 0em 0.5em 0em;
  84. font-size: 140%;
  85. }
  86. .section h2 { font-size: 140% }
  87. .section h3 { font-size: 130% }
  88. .section h4 { font-size: 120% }
  89. .section h5 { font-size: 110% }
  90. .section h6 { font-size: 100% }
  91. /* Code on titles */
  92. h1 tt.computeroutput { font-size: 140% }
  93. h2 tt.computeroutput { font-size: 140% }
  94. h3 tt.computeroutput { font-size: 130% }
  95. h4 tt.computeroutput { font-size: 120% }
  96. h5 tt.computeroutput { font-size: 110% }
  97. h6 tt.computeroutput { font-size: 100% }
  98. /*=============================================================================
  99. Author
  100. =============================================================================*/
  101. h3.author
  102. {
  103. font-size: 100%
  104. }
  105. /*=============================================================================
  106. Lists
  107. =============================================================================*/
  108. li
  109. {
  110. font-size: 10pt;
  111. line-height: 1.3;
  112. }
  113. /* Unordered lists */
  114. ul
  115. {
  116. text-align: left;
  117. }
  118. /* Ordered lists */
  119. ol
  120. {
  121. text-align: left;
  122. }
  123. /*=============================================================================
  124. Links
  125. =============================================================================*/
  126. a
  127. {
  128. text-decoration: none; /* no underline */
  129. }
  130. a:hover
  131. {
  132. text-decoration: underline;
  133. }
  134. /*=============================================================================
  135. Spirit style navigation
  136. =============================================================================*/
  137. .spirit-nav
  138. {
  139. text-align: right;
  140. }
  141. .spirit-nav a
  142. {
  143. color: white;
  144. padding-left: 0.5em;
  145. }
  146. .spirit-nav img
  147. {
  148. border-width: 0px;
  149. }
  150. /*=============================================================================
  151. Table of contents
  152. =============================================================================*/
  153. .toc
  154. {
  155. margin: 1pc 4% 0pc 4%;
  156. padding: 0.1pc 1pc 0.1pc 1pc;
  157. font-size: 80%;
  158. line-height: 1.15;
  159. }
  160. .boost-toc
  161. {
  162. float: right;
  163. padding: 0.5pc;
  164. }
  165. /*=============================================================================
  166. Tables
  167. =============================================================================*/
  168. .table-title,
  169. div.table p.title
  170. {
  171. margin-left: 4%;
  172. padding-right: 0.5em;
  173. padding-left: 0.5em;
  174. }
  175. .informaltable table,
  176. .table table
  177. {
  178. width: 92%;
  179. margin-left: 4%;
  180. margin-right: 4%;
  181. }
  182. div.informaltable table,
  183. div.table table
  184. {
  185. padding: 4px;
  186. }
  187. /* Table Cells */
  188. div.informaltable table tr td,
  189. div.table table tr td
  190. {
  191. padding: 0.5em;
  192. text-align: left;
  193. font-size: 9pt;
  194. }
  195. div.informaltable table tr th,
  196. div.table table tr th
  197. {
  198. padding: 0.5em 0.5em 0.5em 0.5em;
  199. border: 1pt solid white;
  200. font-size: 80%;
  201. }
  202. /*=============================================================================
  203. Blurbs
  204. =============================================================================*/
  205. div.note,
  206. div.tip,
  207. div.important,
  208. div.caution,
  209. div.warning,
  210. p.blurb
  211. {
  212. font-size: 9pt; /* A little bit smaller than the main text */
  213. line-height: 1.2;
  214. display: block;
  215. margin: 1pc 4% 0pc 4%;
  216. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  217. }
  218. p.blurb img
  219. {
  220. padding: 1pt;
  221. }
  222. /*=============================================================================
  223. Variable Lists
  224. =============================================================================*/
  225. span.term
  226. {
  227. font-weight: bold;
  228. font-size: 10pt;
  229. }
  230. div.variablelist table tbody tr td
  231. {
  232. text-align: left;
  233. vertical-align: top;
  234. padding: 0em 2em 0em 0em;
  235. font-size: 10pt;
  236. }
  237. div.variablelist table tbody tr td p
  238. {
  239. margin: 0em 0em 0.5em 0em;
  240. }
  241. /* Make the terms in definition lists bold */
  242. div.variablelist dl dt
  243. {
  244. font-weight: bold;
  245. font-size: 10pt;
  246. }
  247. div.variablelist dl dd
  248. {
  249. margin: 1em 0em 1em 2em;
  250. font-size: 10pt;
  251. }
  252. /*=============================================================================
  253. Misc
  254. =============================================================================*/
  255. /* Title of books and articles in bibliographies */
  256. span.title
  257. {
  258. font-style: italic;
  259. }
  260. span.underline
  261. {
  262. text-decoration: underline;
  263. }
  264. span.strikethrough
  265. {
  266. text-decoration: line-through;
  267. }
  268. /* Copyright, Legal Notice */
  269. div div.legalnotice p
  270. {
  271. text-align: left
  272. }
  273. /*=============================================================================
  274. Colors
  275. =============================================================================*/
  276. @media screen
  277. {
  278. /* Links */
  279. a
  280. {
  281. color: #005a9c;
  282. }
  283. a:visited
  284. {
  285. color: #9c5a9c;
  286. }
  287. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  288. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  289. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  290. {
  291. text-decoration: none; /* no underline */
  292. color: #000000;
  293. }
  294. /* Syntax Highlighting */
  295. .keyword { color: #0000AA; }
  296. .identifier { color: #000000; }
  297. .special { color: #707070; }
  298. .preprocessor { color: #402080; }
  299. .char { color: teal; }
  300. .comment { color: #800000; }
  301. .string { color: teal; }
  302. .number { color: teal; }
  303. .white_bkd { background-color: #FFFFFF; }
  304. .dk_grey_bkd { background-color: #999999; }
  305. /* Copyright, Legal Notice */
  306. .copyright
  307. {
  308. color: #666666;
  309. font-size: small;
  310. }
  311. div div.legalnotice p
  312. {
  313. color: #666666;
  314. }
  315. /* Program listing */
  316. pre.synopsis
  317. {
  318. border: 1px solid #DCDCDC;
  319. }
  320. .programlisting,
  321. .screen
  322. {
  323. border: 1px solid #DCDCDC;
  324. }
  325. /* Blurbs */
  326. div.note,
  327. div.tip,
  328. div.important,
  329. div.caution,
  330. div.warning,
  331. p.blurb
  332. {
  333. border: 1px solid #DCDCDC;
  334. }
  335. /* Table of contents */
  336. .toc
  337. {
  338. border: 1px solid #DCDCDC;
  339. }
  340. /* Tables */
  341. div.informaltable table tr td,
  342. div.table table tr td
  343. {
  344. border: 1px solid #DCDCDC;
  345. }
  346. div.informaltable table tr th,
  347. div.table table tr th
  348. {
  349. background-color: #F0F0F0;
  350. border: 1px solid #DCDCDC;
  351. }
  352. /* Misc */
  353. span.highlight
  354. {
  355. color: #00A000;
  356. }
  357. }
  358. @media print
  359. {
  360. /* Links */
  361. a
  362. {
  363. color: black;
  364. }
  365. a:visited
  366. {
  367. color: black;
  368. }
  369. .spirit-nav
  370. {
  371. display: none;
  372. }
  373. /* Program listing */
  374. pre.synopsis
  375. {
  376. border: 1px solid gray;
  377. }
  378. .programlisting,
  379. .screen
  380. {
  381. border: 1px solid gray;
  382. }
  383. /* Table of contents */
  384. .toc
  385. {
  386. border: 1px solid gray;
  387. }
  388. .informaltable table,
  389. .table table
  390. {
  391. border: 1px solid gray;
  392. border-collapse: collapse;
  393. }
  394. /* Tables */
  395. div.informaltable table tr td,
  396. div.table table tr td
  397. {
  398. border: 1px solid gray;
  399. }
  400. div.informaltable table tr th,
  401. div.table table tr th
  402. {
  403. border: 1px solid gray;
  404. }
  405. /* Misc */
  406. span.highlight
  407. {
  408. font-weight: bold;
  409. }
  410. }
粤ICP备19079148号