boostbook.css 11 KB

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