boostbook.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  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: 9pt;
  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-size: 140%; }
  63. h2 { font-weight: bold; font-size: 140%; }
  64. h3 { font-weight: bold; font-size: 130%; }
  65. h4 { font-weight: bold; font-size: 120%; }
  66. h5 { font-weight: normal; font-style: italic; font-size: 110%; }
  67. h6 { font-weight: normal; font-style: italic; font-size: 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: 130% }
  102. h5 tt.computeroutput { font-size: 130% }
  103. h6 tt.computeroutput { font-size: 130% }
  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. Copyright footer
  158. =============================================================================*/
  159. .copyright-footer
  160. {
  161. text-align: right;
  162. font-size: 70%;
  163. }
  164. .copyright-footer p
  165. {
  166. text-align: right;
  167. font-size: 80%;
  168. }
  169. /*=============================================================================
  170. Table of contents
  171. =============================================================================*/
  172. .toc
  173. {
  174. margin: 1pc 4% 0pc 4%;
  175. padding: 0.1pc 1pc 0.1pc 1pc;
  176. font-size: 80%;
  177. line-height: 1.15;
  178. }
  179. .boost-toc
  180. {
  181. float: right;
  182. padding: 0.5pc;
  183. }
  184. /* Code on toc */
  185. .toc .computeroutput { font-size: 120% }
  186. /* No margin on nested menus */
  187. .toc dl dl { margin: 0; }
  188. /*=============================================================================
  189. Tables
  190. =============================================================================*/
  191. .table-title,
  192. div.table p.title
  193. {
  194. margin-left: 4%;
  195. padding-right: 0.5em;
  196. padding-left: 0.5em;
  197. }
  198. .informaltable table,
  199. .table table
  200. {
  201. width: 92%;
  202. margin-left: 4%;
  203. margin-right: 4%;
  204. }
  205. div.informaltable table,
  206. div.table table
  207. {
  208. padding: 4px;
  209. }
  210. /* Table Cells */
  211. div.informaltable table tr td,
  212. div.table table tr td
  213. {
  214. padding: 0.5em;
  215. text-align: left;
  216. font-size: 9pt;
  217. }
  218. div.informaltable table tr th,
  219. div.table table tr th
  220. {
  221. padding: 0.5em 0.5em 0.5em 0.5em;
  222. border: 1pt solid white;
  223. font-size: 80%;
  224. }
  225. table.simplelist
  226. {
  227. width: auto !important;
  228. margin: 0em !important;
  229. padding: 0em !important;
  230. border: none !important;
  231. }
  232. table.simplelist td
  233. {
  234. margin: 0em !important;
  235. padding: 0em !important;
  236. text-align: left !important;
  237. font-size: 9pt !important;
  238. border: none !important;
  239. }
  240. /*=============================================================================
  241. Blurbs
  242. =============================================================================*/
  243. div.note,
  244. div.tip,
  245. div.important,
  246. div.caution,
  247. div.warning,
  248. p.blurb
  249. {
  250. font-size: 9pt; /* A little bit smaller than the main text */
  251. line-height: 1.2;
  252. display: block;
  253. margin: 1pc 4% 0pc 4%;
  254. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  255. }
  256. p.blurb img
  257. {
  258. padding: 1pt;
  259. }
  260. /*=============================================================================
  261. Variable Lists
  262. =============================================================================*/
  263. div.variablelist
  264. {
  265. margin: 1em 0;
  266. }
  267. /* Make the terms in definition lists bold */
  268. div.variablelist dl dt,
  269. span.term
  270. {
  271. font-weight: bold;
  272. font-size: 10pt;
  273. }
  274. div.variablelist table tbody tr td
  275. {
  276. text-align: left;
  277. vertical-align: top;
  278. padding: 0em 2em 0em 0em;
  279. font-size: 10pt;
  280. margin: 0em 0em 0.5em 0em;
  281. line-height: 1;
  282. }
  283. div.variablelist dl dt
  284. {
  285. margin-bottom: 0.2em;
  286. }
  287. div.variablelist dl dd
  288. {
  289. margin: 0em 0em 0.5em 2em;
  290. font-size: 10pt;
  291. }
  292. div.variablelist table tbody tr td p,
  293. div.variablelist dl dd p
  294. {
  295. margin: 0em 0em 0.5em 0em;
  296. line-height: 1;
  297. }
  298. /*=============================================================================
  299. Misc
  300. =============================================================================*/
  301. /* Title of books and articles in bibliographies */
  302. span.title
  303. {
  304. font-style: italic;
  305. }
  306. span.underline
  307. {
  308. text-decoration: underline;
  309. }
  310. span.strikethrough
  311. {
  312. text-decoration: line-through;
  313. }
  314. /* Copyright, Legal Notice */
  315. div div.legalnotice p
  316. {
  317. text-align: left
  318. }
  319. /*=============================================================================
  320. Colors
  321. =============================================================================*/
  322. @media screen
  323. {
  324. body {
  325. background-color: #FFFFFF;
  326. color: #000000;
  327. }
  328. /* Syntax Highlighting */
  329. .keyword { color: #0000AA; }
  330. .identifier { color: #000000; }
  331. .special { color: #707070; }
  332. .preprocessor { color: #402080; }
  333. .char { color: teal; }
  334. .comment { color: #800000; }
  335. .string { color: teal; }
  336. .number { color: teal; }
  337. .white_bkd { background-color: #FFFFFF; }
  338. .dk_grey_bkd { background-color: #999999; }
  339. /* Links */
  340. a, a .keyword, a .identifier, a .special, a .preprocessor
  341. a .char, a .comment, a .string, a .number
  342. {
  343. color: #005a9c;
  344. }
  345. a:visited, a:visited .keyword, a:visited .identifier,
  346. a:visited .special, a:visited .preprocessor a:visited .char,
  347. a:visited .comment, a:visited .string, a:visited .number
  348. {
  349. color: #9c5a9c;
  350. }
  351. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  352. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  353. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  354. {
  355. text-decoration: none; /* no underline */
  356. color: #000000;
  357. }
  358. /* Copyright, Legal Notice */
  359. .copyright
  360. {
  361. color: #666666;
  362. font-size: small;
  363. }
  364. div div.legalnotice p
  365. {
  366. color: #666666;
  367. }
  368. /* Program listing */
  369. pre.synopsis
  370. {
  371. border: 1px solid #DCDCDC;
  372. }
  373. .programlisting,
  374. .screen
  375. {
  376. border: 1px solid #DCDCDC;
  377. }
  378. td .programlisting,
  379. td .screen
  380. {
  381. border: 0px solid #DCDCDC;
  382. }
  383. /* Blurbs */
  384. div.note,
  385. div.tip,
  386. div.important,
  387. div.caution,
  388. div.warning,
  389. p.blurb
  390. {
  391. border: 1px solid #DCDCDC;
  392. }
  393. /* Table of contents */
  394. .toc
  395. {
  396. border: 1px solid #DCDCDC;
  397. }
  398. /* Tables */
  399. div.informaltable table tr td,
  400. div.table table tr td
  401. {
  402. border: 1px solid #DCDCDC;
  403. }
  404. div.informaltable table tr th,
  405. div.table table tr th
  406. {
  407. background-color: #F0F0F0;
  408. border: 1px solid #DCDCDC;
  409. }
  410. .copyright-footer
  411. {
  412. color: #8F8F8F;
  413. }
  414. /* Misc */
  415. span.highlight
  416. {
  417. color: #00A000;
  418. }
  419. }
  420. @media print
  421. {
  422. /* Links */
  423. a
  424. {
  425. color: black;
  426. }
  427. a:visited
  428. {
  429. color: black;
  430. }
  431. .spirit-nav
  432. {
  433. display: none;
  434. }
  435. /* Program listing */
  436. pre.synopsis
  437. {
  438. border: 1px solid gray;
  439. }
  440. .programlisting,
  441. .screen
  442. {
  443. border: 1px solid gray;
  444. }
  445. td .programlisting,
  446. td .screen
  447. {
  448. border: 0px solid #DCDCDC;
  449. }
  450. /* Table of contents */
  451. .toc
  452. {
  453. border: 1px solid gray;
  454. }
  455. .informaltable table,
  456. .table table
  457. {
  458. border: 1px solid gray;
  459. border-collapse: collapse;
  460. }
  461. /* Tables */
  462. div.informaltable table tr td,
  463. div.table table tr td
  464. {
  465. border: 1px solid gray;
  466. }
  467. div.informaltable table tr th,
  468. div.table table tr th
  469. {
  470. border: 1px solid gray;
  471. }
  472. table.simplelist tr td
  473. {
  474. border: none !important;
  475. }
  476. /* Misc */
  477. span.highlight
  478. {
  479. font-weight: bold;
  480. }
  481. }
  482. /*=============================================================================
  483. Images
  484. =============================================================================*/
  485. span.inlinemediaobject img
  486. {
  487. vertical-align: middle;
  488. }
  489. /*==============================================================================
  490. Super and Subscript: style so that line spacing isn't effected, see
  491. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341
  492. ==============================================================================*/
  493. sup,
  494. sub {
  495. height: 0;
  496. line-height: 1;
  497. vertical-align: baseline;
  498. position: relative;
  499. }
  500. /* For internet explorer: */
  501. * html sup,
  502. * html sub {
  503. vertical-align: bottom;
  504. }
  505. sup {
  506. bottom: 1ex;
  507. }
  508. sub {
  509. top: .5ex;
  510. }
  511. /*==============================================================================
  512. Indexes: pretty much the same as the TOC.
  513. ==============================================================================*/
  514. .index
  515. {
  516. font-size: 80%;
  517. padding-top: 0px;
  518. padding-bottom: 0px;
  519. margin-top: 0px;
  520. margin-bottom: 0px;
  521. margin-left: 0px;
  522. }
  523. .index ul
  524. {
  525. padding-left: 3em;
  526. }
  527. .index p
  528. {
  529. padding: 2px;
  530. margin: 2px;
  531. }
  532. .index-entry-level-0
  533. {
  534. font-weight: bold;
  535. }
  536. .index em
  537. {
  538. font-weight: bold;
  539. }
粤ICP备19079148号