boostbook.css 13 KB

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