boostbook.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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. /* Make the terms in definition lists bold */
  226. div.variablelist dl dt,
  227. span.term
  228. {
  229. font-weight: bold;
  230. font-size: 10pt;
  231. }
  232. div.variablelist table tbody tr td
  233. {
  234. text-align: left;
  235. vertical-align: top;
  236. padding: 0em 2em 0em 0em;
  237. font-size: 10pt;
  238. margin: 0em 0em 0.5em 0em;
  239. line-height: 1;
  240. }
  241. div.variablelist dl dt
  242. {
  243. margin-bottom: 0.2em;
  244. }
  245. div.variablelist dl dd
  246. {
  247. margin: 0em 0em 0.5em 2em;
  248. font-size: 10pt;
  249. }
  250. div.variablelist table tbody tr td p,
  251. div.variablelist dl dd p
  252. {
  253. margin: 0em 0em 0.5em 0em;
  254. line-height: 1;
  255. }
  256. /*=============================================================================
  257. Misc
  258. =============================================================================*/
  259. /* Title of books and articles in bibliographies */
  260. span.title
  261. {
  262. font-style: italic;
  263. }
  264. span.underline
  265. {
  266. text-decoration: underline;
  267. }
  268. span.strikethrough
  269. {
  270. text-decoration: line-through;
  271. }
  272. /* Copyright, Legal Notice */
  273. div div.legalnotice p
  274. {
  275. text-align: left
  276. }
  277. /*=============================================================================
  278. Colors
  279. =============================================================================*/
  280. @media screen
  281. {
  282. /* Links */
  283. a
  284. {
  285. color: #005a9c;
  286. }
  287. a:visited
  288. {
  289. color: #9c5a9c;
  290. }
  291. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  292. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  293. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  294. {
  295. text-decoration: none; /* no underline */
  296. color: #000000;
  297. }
  298. /* Syntax Highlighting */
  299. .keyword { color: #0000AA; }
  300. .identifier { color: #000000; }
  301. .special { color: #707070; }
  302. .preprocessor { color: #402080; }
  303. .char { color: teal; }
  304. .comment { color: #800000; }
  305. .string { color: teal; }
  306. .number { color: teal; }
  307. .white_bkd { background-color: #FFFFFF; }
  308. .dk_grey_bkd { background-color: #999999; }
  309. /* Copyright, Legal Notice */
  310. .copyright
  311. {
  312. color: #666666;
  313. font-size: small;
  314. }
  315. div div.legalnotice p
  316. {
  317. color: #666666;
  318. }
  319. /* Program listing */
  320. pre.synopsis
  321. {
  322. border: 1px solid #DCDCDC;
  323. }
  324. .programlisting,
  325. .screen
  326. {
  327. border: 1px solid #DCDCDC;
  328. }
  329. /* Blurbs */
  330. div.note,
  331. div.tip,
  332. div.important,
  333. div.caution,
  334. div.warning,
  335. p.blurb
  336. {
  337. border: 1px solid #DCDCDC;
  338. }
  339. /* Table of contents */
  340. .toc
  341. {
  342. border: 1px solid #DCDCDC;
  343. }
  344. /* Tables */
  345. div.informaltable table tr td,
  346. div.table table tr td
  347. {
  348. border: 1px solid #DCDCDC;
  349. }
  350. div.informaltable table tr th,
  351. div.table table tr th
  352. {
  353. background-color: #F0F0F0;
  354. border: 1px solid #DCDCDC;
  355. }
  356. /* Misc */
  357. span.highlight
  358. {
  359. color: #00A000;
  360. }
  361. }
  362. @media print
  363. {
  364. /* Links */
  365. a
  366. {
  367. color: black;
  368. }
  369. a:visited
  370. {
  371. color: black;
  372. }
  373. .spirit-nav
  374. {
  375. display: none;
  376. }
  377. /* Program listing */
  378. pre.synopsis
  379. {
  380. border: 1px solid gray;
  381. }
  382. .programlisting,
  383. .screen
  384. {
  385. border: 1px solid gray;
  386. }
  387. /* Table of contents */
  388. .toc
  389. {
  390. border: 1px solid gray;
  391. }
  392. .informaltable table,
  393. .table table
  394. {
  395. border: 1px solid gray;
  396. border-collapse: collapse;
  397. }
  398. /* Tables */
  399. div.informaltable table tr td,
  400. div.table table tr td
  401. {
  402. border: 1px solid gray;
  403. }
  404. div.informaltable table tr th,
  405. div.table table tr th
  406. {
  407. border: 1px solid gray;
  408. }
  409. /* Misc */
  410. span.highlight
  411. {
  412. font-weight: bold;
  413. }
  414. }
粤ICP备19079148号