1
0

boostbook.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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. padding-left: 0.5em;
  150. }
  151. .spirit-nav img
  152. {
  153. border-width: 0px;
  154. }
  155. /*=============================================================================
  156. Table of contents
  157. =============================================================================*/
  158. .toc
  159. {
  160. margin: 1pc 4% 0pc 4%;
  161. padding: 0.1pc 1pc 0.1pc 1pc;
  162. font-size: 80%;
  163. line-height: 1.15;
  164. }
  165. .boost-toc
  166. {
  167. float: right;
  168. padding: 0.5pc;
  169. }
  170. /*=============================================================================
  171. Tables
  172. =============================================================================*/
  173. .table-title,
  174. div.table p.title
  175. {
  176. margin-left: 4%;
  177. padding-right: 0.5em;
  178. padding-left: 0.5em;
  179. }
  180. .informaltable table,
  181. .table table
  182. {
  183. width: 92%;
  184. margin-left: 4%;
  185. margin-right: 4%;
  186. }
  187. div.informaltable table,
  188. div.table table
  189. {
  190. padding: 4px;
  191. }
  192. /* Table Cells */
  193. div.informaltable table tr td,
  194. div.table table tr td
  195. {
  196. padding: 0.5em;
  197. text-align: left;
  198. font-size: 9pt;
  199. }
  200. div.informaltable table tr th,
  201. div.table table tr th
  202. {
  203. padding: 0.5em 0.5em 0.5em 0.5em;
  204. border: 1pt solid white;
  205. font-size: 80%;
  206. }
  207. table.simplelist
  208. {
  209. width: auto !important;
  210. margin: 0em !important;
  211. padding: 0em !important;
  212. }
  213. table.simplelist td
  214. {
  215. margin: 0em !important;
  216. padding: 0em !important;
  217. text-align: left !important;
  218. font-size: 9pt !important;
  219. }
  220. /*=============================================================================
  221. Blurbs
  222. =============================================================================*/
  223. div.note,
  224. div.tip,
  225. div.important,
  226. div.caution,
  227. div.warning,
  228. p.blurb
  229. {
  230. font-size: 9pt; /* A little bit smaller than the main text */
  231. line-height: 1.2;
  232. display: block;
  233. margin: 1pc 4% 0pc 4%;
  234. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  235. }
  236. p.blurb img
  237. {
  238. padding: 1pt;
  239. }
  240. /*=============================================================================
  241. Variable Lists
  242. =============================================================================*/
  243. /* Make the terms in definition lists bold */
  244. div.variablelist dl dt,
  245. span.term
  246. {
  247. font-weight: bold;
  248. font-size: 10pt;
  249. }
  250. div.variablelist table tbody tr td
  251. {
  252. text-align: left;
  253. vertical-align: top;
  254. padding: 0em 2em 0em 0em;
  255. font-size: 10pt;
  256. margin: 0em 0em 0.5em 0em;
  257. line-height: 1;
  258. }
  259. div.variablelist dl dt
  260. {
  261. margin-bottom: 0.2em;
  262. }
  263. div.variablelist dl dd
  264. {
  265. margin: 0em 0em 0.5em 2em;
  266. font-size: 10pt;
  267. }
  268. div.variablelist table tbody tr td p,
  269. div.variablelist dl dd p
  270. {
  271. margin: 0em 0em 0.5em 0em;
  272. line-height: 1;
  273. }
  274. /*=============================================================================
  275. Misc
  276. =============================================================================*/
  277. /* Title of books and articles in bibliographies */
  278. span.title
  279. {
  280. font-style: italic;
  281. }
  282. span.underline
  283. {
  284. text-decoration: underline;
  285. }
  286. span.strikethrough
  287. {
  288. text-decoration: line-through;
  289. }
  290. /* Copyright, Legal Notice */
  291. div div.legalnotice p
  292. {
  293. text-align: left
  294. }
  295. /*=============================================================================
  296. Colors
  297. =============================================================================*/
  298. @media screen
  299. {
  300. /* Links */
  301. a
  302. {
  303. color: #005a9c;
  304. }
  305. a:visited
  306. {
  307. color: #9c5a9c;
  308. }
  309. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  310. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  311. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  312. {
  313. text-decoration: none; /* no underline */
  314. color: #000000;
  315. }
  316. /* Syntax Highlighting */
  317. .keyword { color: #0000AA; }
  318. .identifier { color: #000000; }
  319. .special { color: #707070; }
  320. .preprocessor { color: #402080; }
  321. .char { color: teal; }
  322. .comment { color: #800000; }
  323. .string { color: teal; }
  324. .number { color: teal; }
  325. .white_bkd { background-color: #FFFFFF; }
  326. .dk_grey_bkd { background-color: #999999; }
  327. /* Copyright, Legal Notice */
  328. .copyright
  329. {
  330. color: #666666;
  331. font-size: small;
  332. }
  333. div div.legalnotice p
  334. {
  335. color: #666666;
  336. }
  337. /* Program listing */
  338. pre.synopsis
  339. {
  340. border: 1px solid #DCDCDC;
  341. }
  342. .programlisting,
  343. .screen
  344. {
  345. border: 1px solid #DCDCDC;
  346. }
  347. td .programlisting,
  348. td .screen
  349. {
  350. border: 0px solid #DCDCDC;
  351. }
  352. /* Blurbs */
  353. div.note,
  354. div.tip,
  355. div.important,
  356. div.caution,
  357. div.warning,
  358. p.blurb
  359. {
  360. border: 1px solid #DCDCDC;
  361. }
  362. /* Table of contents */
  363. .toc
  364. {
  365. border: 1px solid #DCDCDC;
  366. }
  367. /* Tables */
  368. div.informaltable table tr td,
  369. div.table table tr td
  370. {
  371. border: 1px solid #DCDCDC;
  372. }
  373. div.informaltable table tr th,
  374. div.table table tr th
  375. {
  376. background-color: #F0F0F0;
  377. border: 1px solid #DCDCDC;
  378. }
  379. table.simplelist tr td
  380. {
  381. border: none !important;
  382. }
  383. /* Misc */
  384. span.highlight
  385. {
  386. color: #00A000;
  387. }
  388. }
  389. @media print
  390. {
  391. /* Links */
  392. a
  393. {
  394. color: black;
  395. }
  396. a:visited
  397. {
  398. color: black;
  399. }
  400. .spirit-nav
  401. {
  402. display: none;
  403. }
  404. /* Program listing */
  405. pre.synopsis
  406. {
  407. border: 1px solid gray;
  408. }
  409. .programlisting,
  410. .screen
  411. {
  412. border: 1px solid gray;
  413. }
  414. td .programlisting,
  415. td .screen
  416. {
  417. border: 0px solid #DCDCDC;
  418. }
  419. /* Table of contents */
  420. .toc
  421. {
  422. border: 1px solid gray;
  423. }
  424. .informaltable table,
  425. .table table
  426. {
  427. border: 1px solid gray;
  428. border-collapse: collapse;
  429. }
  430. /* Tables */
  431. div.informaltable table tr td,
  432. div.table table tr td
  433. {
  434. border: 1px solid gray;
  435. }
  436. div.informaltable table tr th,
  437. div.table table tr th
  438. {
  439. border: 1px solid gray;
  440. }
  441. table.simplelist tr td
  442. {
  443. border: none !important;
  444. }
  445. /* Misc */
  446. span.highlight
  447. {
  448. font-weight: bold;
  449. }
  450. }
  451. /*=============================================================================
  452. Images
  453. =============================================================================*/
  454. span.inlinemediaobject img
  455. {
  456. vertical-align: middle;
  457. }
粤ICP备19079148号