boostbook.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. /*=============================================================================
  2. Copyright (c) 2004 Joel de Guzman
  3. http://spirit.sourceforge.net/
  4. Copyright 2013 Niall Douglas additions for colors and alignment.
  5. Copyright 2013 Paul A. Bristow additions for more colors and alignments.
  6. Distributed under the Boost Software License, Version 1.0. (See accompany-
  7. ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================*/
  9. /*=============================================================================
  10. Body defaults
  11. =============================================================================*/
  12. body
  13. {
  14. margin: 1em;
  15. font-family: sans-serif;
  16. }
  17. /*=============================================================================
  18. Paragraphs
  19. =============================================================================*/
  20. p
  21. {
  22. text-align: left;
  23. font-size: 10pt;
  24. line-height: 1.15;
  25. }
  26. /*=============================================================================
  27. Program listings
  28. =============================================================================*/
  29. /* Code on paragraphs */
  30. p tt.computeroutput
  31. {
  32. font-size: 9pt;
  33. }
  34. pre.synopsis
  35. {
  36. font-size: 9pt;
  37. margin: 1pc 4% 0pc 4%;
  38. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  39. }
  40. .programlisting,
  41. .screen
  42. {
  43. font-size: 9pt;
  44. display: block;
  45. margin: 1pc 4% 0pc 4%;
  46. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  47. }
  48. /* Program listings in tables don't get borders */
  49. td .programlisting,
  50. td .screen
  51. {
  52. margin: 0pc 0pc 0pc 0pc;
  53. padding: 0pc 0pc 0pc 0pc;
  54. }
  55. /*=============================================================================
  56. Headings
  57. =============================================================================*/
  58. h1, h2, h3, h4, h5, h6
  59. {
  60. text-align: left;
  61. margin: 1em 0em 0.5em 0em;
  62. font-weight: bold;
  63. }
  64. h1 { font-size: 140%; }
  65. h2 { font-weight: bold; font-size: 140%; }
  66. h3 { font-weight: bold; font-size: 130%; }
  67. h4 { font-weight: bold; font-size: 120%; }
  68. h5 { font-weight: normal; font-style: italic; font-size: 110%; }
  69. h6 { font-weight: normal; font-style: italic; font-size: 100%; }
  70. /* Top page titles */
  71. title,
  72. h1.title,
  73. h2.title
  74. h3.title,
  75. h4.title,
  76. h5.title,
  77. h6.title,
  78. .refentrytitle
  79. {
  80. font-weight: bold;
  81. margin-bottom: 1pc;
  82. }
  83. h1.title { font-size: 140% }
  84. h2.title { font-size: 140% }
  85. h3.title { font-size: 130% }
  86. h4.title { font-size: 120% }
  87. h5.title { font-size: 110% }
  88. h6.title { font-size: 100% }
  89. .section h1
  90. {
  91. margin: 0em 0em 0.5em 0em;
  92. font-size: 140%;
  93. }
  94. .section h2 { font-size: 140% }
  95. .section h3 { font-size: 130% }
  96. .section h4 { font-size: 120% }
  97. .section h5 { font-size: 110% }
  98. .section h6 { font-size: 100% }
  99. /* Code on titles */
  100. h1 tt.computeroutput { font-size: 140% }
  101. h2 tt.computeroutput { font-size: 140% }
  102. h3 tt.computeroutput { font-size: 130% }
  103. h4 tt.computeroutput { font-size: 130% }
  104. h5 tt.computeroutput { font-size: 130% }
  105. h6 tt.computeroutput { font-size: 130% }
  106. /*=============================================================================
  107. Author
  108. =============================================================================*/
  109. h3.author
  110. {
  111. font-size: 100%
  112. }
  113. /*=============================================================================
  114. Lists
  115. =============================================================================*/
  116. li
  117. {
  118. font-size: 10pt;
  119. line-height: 1.3;
  120. }
  121. /* Unordered lists */
  122. ul
  123. {
  124. text-align: left;
  125. }
  126. /* Ordered lists */
  127. ol
  128. {
  129. text-align: left;
  130. }
  131. /*=============================================================================
  132. Links
  133. =============================================================================*/
  134. a
  135. {
  136. text-decoration: none; /* no underline */
  137. }
  138. a:hover
  139. {
  140. text-decoration: underline;
  141. }
  142. /*=============================================================================
  143. Spirit style navigation
  144. =============================================================================*/
  145. .spirit-nav
  146. {
  147. text-align: right;
  148. }
  149. .spirit-nav a
  150. {
  151. color: white;
  152. padding-left: 0.5em;
  153. }
  154. .spirit-nav img
  155. {
  156. border-width: 0px;
  157. }
  158. /*=============================================================================
  159. Copyright footer
  160. =============================================================================*/
  161. .copyright-footer
  162. {
  163. text-align: right;
  164. font-size: 70%;
  165. }
  166. .copyright-footer p
  167. {
  168. text-align: right;
  169. font-size: 80%;
  170. }
  171. /*=============================================================================
  172. Table of contents
  173. =============================================================================*/
  174. div.toc
  175. {
  176. margin: 1pc 4% 0pc 4%;
  177. padding: 0.1pc 1pc 0.1pc 1pc;
  178. font-size: 80%;
  179. line-height: 1.15;
  180. }
  181. .boost-toc
  182. {
  183. float: right;
  184. padding: 0.5pc;
  185. }
  186. /* Code on toc */
  187. .toc .computeroutput { font-size: 120% }
  188. /* No margin on nested menus */
  189. .toc dl dl { margin: 0; }
  190. /*=============================================================================
  191. Tables
  192. =============================================================================*/
  193. .table-title,
  194. div.table p.title
  195. {
  196. margin-left: 4%;
  197. padding-right: 0.5em;
  198. padding-left: 0.5em;
  199. }
  200. .informaltable table,
  201. .table table
  202. {
  203. width: 92%;
  204. margin-left: 4%;
  205. margin-right: 4%;
  206. }
  207. div.informaltable table,
  208. div.table table
  209. {
  210. padding: 4px;
  211. }
  212. /* Table Cells */
  213. div.informaltable table tr td,
  214. div.table table tr td
  215. {
  216. padding: 0.5em;
  217. text-align: left;
  218. font-size: 9pt;
  219. }
  220. div.informaltable table tr th,
  221. div.table table tr th
  222. {
  223. padding: 0.5em 0.5em 0.5em 0.5em;
  224. border: 1pt solid white;
  225. font-size: 80%;
  226. }
  227. table.simplelist
  228. {
  229. width: auto !important;
  230. margin: 0em !important;
  231. padding: 0em !important;
  232. border: none !important;
  233. }
  234. table.simplelist td
  235. {
  236. margin: 0em !important;
  237. padding: 0em !important;
  238. text-align: left !important;
  239. font-size: 9pt !important;
  240. border: none !important;
  241. }
  242. /*=============================================================================
  243. Blurbs
  244. =============================================================================*/
  245. div.note,
  246. div.tip,
  247. div.important,
  248. div.caution,
  249. div.warning,
  250. p.blurb
  251. {
  252. font-size: 9pt; /* A little bit smaller than the main text */
  253. line-height: 1.2;
  254. display: block;
  255. margin: 1pc 4% 0pc 4%;
  256. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  257. }
  258. p.blurb img
  259. {
  260. padding: 1pt;
  261. }
  262. /*=============================================================================
  263. Variable Lists
  264. =============================================================================*/
  265. div.variablelist
  266. {
  267. margin: 1em 0;
  268. }
  269. /* Make the terms in definition lists bold */
  270. div.variablelist dl dt,
  271. span.term
  272. {
  273. font-weight: bold;
  274. font-size: 10pt;
  275. }
  276. div.variablelist table tbody tr td
  277. {
  278. text-align: left;
  279. vertical-align: top;
  280. padding: 0em 2em 0em 0em;
  281. font-size: 10pt;
  282. margin: 0em 0em 0.5em 0em;
  283. line-height: 1;
  284. }
  285. div.variablelist dl dt
  286. {
  287. margin-bottom: 0.2em;
  288. }
  289. div.variablelist dl dd
  290. {
  291. margin: 0em 0em 0.5em 2em;
  292. font-size: 10pt;
  293. }
  294. div.variablelist table tbody tr td p,
  295. div.variablelist dl dd p
  296. {
  297. margin: 0em 0em 0.5em 0em;
  298. line-height: 1;
  299. }
  300. /*=============================================================================
  301. Misc
  302. =============================================================================*/
  303. /* Title of books and articles in bibliographies */
  304. span.title
  305. {
  306. font-style: italic;
  307. }
  308. span.underline
  309. {
  310. text-decoration: underline;
  311. }
  312. span.strikethrough
  313. {
  314. text-decoration: line-through;
  315. }
  316. /* Copyright, Legal Notice */
  317. div div.legalnotice p
  318. {
  319. text-align: left
  320. }
  321. /*=============================================================================
  322. Colors
  323. =============================================================================*/
  324. @media screen
  325. {
  326. body {
  327. background-color: #FFFFFF;
  328. color: #000000;
  329. }
  330. /* Syntax Highlighting */
  331. .keyword { color: #0000AA; }
  332. .identifier { color: #000000; }
  333. .special { color: #707070; }
  334. .preprocessor { color: #402080; }
  335. .char { color: teal; }
  336. .comment { color: #800000; }
  337. .string { color: teal; }
  338. .number { color: teal; }
  339. .white_bkd { background-color: #FFFFFF; }
  340. .dk_grey_bkd { background-color: #999999; }
  341. /* Links */
  342. a, a .keyword, a .identifier, a .special, a .preprocessor
  343. a .char, a .comment, a .string, a .number
  344. {
  345. color: #005a9c;
  346. }
  347. a:visited, a:visited .keyword, a:visited .identifier,
  348. a:visited .special, a:visited .preprocessor a:visited .char,
  349. a:visited .comment, a:visited .string, a:visited .number
  350. {
  351. color: #9c5a9c;
  352. }
  353. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  354. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  355. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  356. {
  357. text-decoration: none; /* no underline */
  358. color: #000000;
  359. }
  360. /* Copyright, Legal Notice */
  361. .copyright
  362. {
  363. color: #666666;
  364. font-size: small;
  365. }
  366. div div.legalnotice p
  367. {
  368. color: #666666;
  369. }
  370. /* Program listing */
  371. pre.synopsis
  372. {
  373. border: 1px solid #DCDCDC;
  374. }
  375. .programlisting,
  376. .screen
  377. {
  378. border: 1px solid #DCDCDC;
  379. }
  380. td .programlisting,
  381. td .screen
  382. {
  383. border: 0px solid #DCDCDC;
  384. }
  385. /* Blurbs */
  386. div.note,
  387. div.tip,
  388. div.important,
  389. div.caution,
  390. div.warning,
  391. p.blurb
  392. {
  393. border: 1px solid #DCDCDC;
  394. }
  395. /* Table of contents */
  396. div.toc
  397. {
  398. border: 1px solid #DCDCDC;
  399. }
  400. /* Tables */
  401. div.informaltable table tr td,
  402. div.table table tr td
  403. {
  404. border: 1px solid #DCDCDC;
  405. }
  406. div.informaltable table tr th,
  407. div.table table tr th
  408. {
  409. background-color: #F0F0F0;
  410. border: 1px solid #DCDCDC;
  411. }
  412. .copyright-footer
  413. {
  414. color: #8F8F8F;
  415. }
  416. /* Misc */
  417. span.highlight
  418. {
  419. color: #00A000;
  420. }
  421. }
  422. @media print
  423. {
  424. /* Links */
  425. a
  426. {
  427. color: black;
  428. }
  429. a:visited
  430. {
  431. color: black;
  432. }
  433. .spirit-nav
  434. {
  435. display: none;
  436. }
  437. /* Program listing */
  438. pre.synopsis
  439. {
  440. border: 1px solid gray;
  441. }
  442. .programlisting,
  443. .screen
  444. {
  445. border: 1px solid gray;
  446. }
  447. td .programlisting,
  448. td .screen
  449. {
  450. border: 0px solid #DCDCDC;
  451. }
  452. /* Table of contents */
  453. div.toc
  454. {
  455. border: 1px solid gray;
  456. }
  457. .informaltable table,
  458. .table table
  459. {
  460. border: 1px solid gray;
  461. border-collapse: collapse;
  462. }
  463. /* Tables */
  464. div.informaltable table tr td,
  465. div.table table tr td
  466. {
  467. border: 1px solid gray;
  468. }
  469. div.informaltable table tr th,
  470. div.table table tr th
  471. {
  472. border: 1px solid gray;
  473. }
  474. table.simplelist tr td
  475. {
  476. border: none !important;
  477. }
  478. /* Misc */
  479. span.highlight
  480. {
  481. font-weight: bold;
  482. }
  483. }
  484. /*=============================================================================
  485. Images
  486. =============================================================================*/
  487. span.inlinemediaobject img
  488. {
  489. vertical-align: middle;
  490. }
  491. /*==============================================================================
  492. Super and Subscript: style so that line spacing isn't effected, see
  493. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341
  494. ==============================================================================*/
  495. sup,
  496. sub {
  497. height: 0;
  498. line-height: 1;
  499. vertical-align: baseline;
  500. position: relative;
  501. }
  502. /* For internet explorer: */
  503. * html sup,
  504. * html sub {
  505. vertical-align: bottom;
  506. }
  507. sup {
  508. bottom: 1ex;
  509. }
  510. sub {
  511. top: .5ex;
  512. }
  513. /*==============================================================================
  514. Indexes: pretty much the same as the TOC.
  515. ==============================================================================*/
  516. .index
  517. {
  518. font-size: 80%;
  519. padding-top: 0px;
  520. padding-bottom: 0px;
  521. margin-top: 0px;
  522. margin-bottom: 0px;
  523. margin-left: 0px;
  524. }
  525. .index ul
  526. {
  527. padding-left: 3em;
  528. }
  529. .index p
  530. {
  531. padding: 2px;
  532. margin: 2px;
  533. }
  534. .index-entry-level-0
  535. {
  536. font-weight: bold;
  537. }
  538. .index em
  539. {
  540. font-weight: bold;
  541. }
  542. /*==============================================================================
  543. Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
  544. Added from Niall Douglas for role color and alignment.
  545. http://article.gmane.org/gmane.comp.lib.boost.devel/243318
  546. */
  547. /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
  548. span.aligncenter
  549. {
  550. display: inline-block; width: 100%; text-align: center;
  551. }
  552. span.alignright
  553. {
  554. display: inline-block; width: 100%; text-align: right;
  555. }
  556. /* alignleft is the default. */
  557. span.alignleft
  558. {
  559. display: inline-block; width: 100%; text-align: left;
  560. }
  561. /* alignjustify stretches the word spacing so that each line has equal width
  562. within a chosen fraction of page width (here arbitrarily 20%).
  563. *Not* useful inside table items as the column width remains the total string width.
  564. Nor very useful, except to temporarily restrict the width.
  565. */
  566. span.alignjustify
  567. {
  568. display: inline-block; width: 20%; text-align: justify;
  569. }
  570. /* Text colors.
  571. Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
  572. Quickbook Usage: [role red Some red text]
  573. */
  574. span.red { inline-block; color: red; }
  575. span.green { color: green; }
  576. span.lime { color: #00FF00; }
  577. span.blue { color: blue; }
  578. span.navy { color: navy; }
  579. span.yellow { color: yellow; }
  580. span.magenta { color: magenta; }
  581. span.indigo { color: #4B0082; }
  582. span.cyan { color: cyan; }
  583. span.purple { color: purple; }
  584. span.gold { color: gold; }
  585. span.silver { color: silver; } /* lighter gray */
  586. span.gray { color: #808080; } /* light gray */