boostbook.css 11 KB

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