boostbook.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  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. Suppress margins in tables
  244. =============================================================================*/
  245. table th > *:first-child,
  246. table td > *:first-child
  247. {
  248. margin-top: 0;
  249. }
  250. table th > *:last-child,
  251. table td > *:last-child
  252. {
  253. margin-bottom: 0;
  254. }
  255. /*=============================================================================
  256. Blurbs
  257. =============================================================================*/
  258. div.note,
  259. div.tip,
  260. div.important,
  261. div.caution,
  262. div.warning,
  263. p.blurb
  264. {
  265. font-size: 9pt; /* A little bit smaller than the main text */
  266. line-height: 1.2;
  267. display: block;
  268. margin: 1pc 4% 0pc 4%;
  269. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  270. }
  271. p.blurb img
  272. {
  273. padding: 1pt;
  274. }
  275. /*=============================================================================
  276. Variable Lists
  277. =============================================================================*/
  278. div.variablelist
  279. {
  280. margin: 1em 0;
  281. }
  282. /* Make the terms in definition lists bold */
  283. div.variablelist dl dt,
  284. span.term
  285. {
  286. font-weight: bold;
  287. font-size: 10pt;
  288. }
  289. div.variablelist table tbody tr td
  290. {
  291. text-align: left;
  292. vertical-align: top;
  293. padding: 0em 2em 0em 0em;
  294. font-size: 10pt;
  295. margin: 0em 0em 0.5em 0em;
  296. line-height: 1;
  297. }
  298. div.variablelist dl dt
  299. {
  300. margin-bottom: 0.2em;
  301. }
  302. div.variablelist dl dd
  303. {
  304. margin: 0em 0em 0.5em 2em;
  305. font-size: 10pt;
  306. }
  307. div.variablelist table tbody tr td p,
  308. div.variablelist dl dd p
  309. {
  310. margin: 0em 0em 0.5em 0em;
  311. line-height: 1;
  312. }
  313. /*=============================================================================
  314. Misc
  315. =============================================================================*/
  316. /* Title of books and articles in bibliographies */
  317. span.title
  318. {
  319. font-style: italic;
  320. }
  321. span.underline
  322. {
  323. text-decoration: underline;
  324. }
  325. span.strikethrough
  326. {
  327. text-decoration: line-through;
  328. }
  329. /* Copyright, Legal Notice */
  330. div div.legalnotice p
  331. {
  332. text-align: left
  333. }
  334. /*=============================================================================
  335. Colors
  336. =============================================================================*/
  337. @media screen
  338. {
  339. body {
  340. background-color: #FFFFFF;
  341. color: #000000;
  342. }
  343. /* Syntax Highlighting */
  344. .keyword { color: #0000AA; }
  345. .identifier { color: #000000; }
  346. .special { color: #707070; }
  347. .preprocessor { color: #402080; }
  348. .char { color: teal; }
  349. .comment { color: #800000; }
  350. .string { color: teal; }
  351. .number { color: teal; }
  352. .white_bkd { background-color: #FFFFFF; }
  353. .dk_grey_bkd { background-color: #999999; }
  354. /* Links */
  355. a, a .keyword, a .identifier, a .special, a .preprocessor
  356. a .char, a .comment, a .string, a .number
  357. {
  358. color: #005a9c;
  359. }
  360. a:visited, a:visited .keyword, a:visited .identifier,
  361. a:visited .special, a:visited .preprocessor a:visited .char,
  362. a:visited .comment, a:visited .string, a:visited .number
  363. {
  364. color: #9c5a9c;
  365. }
  366. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  367. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  368. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  369. {
  370. text-decoration: none; /* no underline */
  371. color: #000000;
  372. }
  373. /* Copyright, Legal Notice */
  374. .copyright
  375. {
  376. color: #666666;
  377. font-size: small;
  378. }
  379. div div.legalnotice p
  380. {
  381. color: #666666;
  382. }
  383. /* Program listing */
  384. pre.synopsis
  385. {
  386. border: 1px solid #DCDCDC;
  387. }
  388. .programlisting,
  389. .screen
  390. {
  391. border: 1px solid #DCDCDC;
  392. }
  393. td .programlisting,
  394. td .screen
  395. {
  396. border: 0px solid #DCDCDC;
  397. }
  398. /* Blurbs */
  399. div.note,
  400. div.tip,
  401. div.important,
  402. div.caution,
  403. div.warning,
  404. p.blurb
  405. {
  406. border: 1px solid #DCDCDC;
  407. }
  408. /* Table of contents */
  409. div.toc
  410. {
  411. border: 1px solid #DCDCDC;
  412. }
  413. /* Tables */
  414. div.informaltable table tr td,
  415. div.table table tr td
  416. {
  417. border: 1px solid #DCDCDC;
  418. }
  419. div.informaltable table tr th,
  420. div.table table tr th
  421. {
  422. background-color: #F0F0F0;
  423. border: 1px solid #DCDCDC;
  424. }
  425. .copyright-footer
  426. {
  427. color: #8F8F8F;
  428. }
  429. /* Misc */
  430. span.highlight
  431. {
  432. color: #00A000;
  433. }
  434. }
  435. @media print
  436. {
  437. /* Links */
  438. a
  439. {
  440. color: black;
  441. }
  442. a:visited
  443. {
  444. color: black;
  445. }
  446. .spirit-nav
  447. {
  448. display: none;
  449. }
  450. /* Program listing */
  451. pre.synopsis
  452. {
  453. border: 1px solid gray;
  454. }
  455. .programlisting,
  456. .screen
  457. {
  458. border: 1px solid gray;
  459. }
  460. td .programlisting,
  461. td .screen
  462. {
  463. border: 0px solid #DCDCDC;
  464. }
  465. /* Table of contents */
  466. div.toc
  467. {
  468. border: 1px solid gray;
  469. }
  470. .informaltable table,
  471. .table table
  472. {
  473. border: 1px solid gray;
  474. border-collapse: collapse;
  475. }
  476. /* Tables */
  477. div.informaltable table tr td,
  478. div.table table tr td
  479. {
  480. border: 1px solid gray;
  481. }
  482. div.informaltable table tr th,
  483. div.table table tr th
  484. {
  485. border: 1px solid gray;
  486. }
  487. table.simplelist tr td
  488. {
  489. border: none !important;
  490. }
  491. /* Misc */
  492. span.highlight
  493. {
  494. font-weight: bold;
  495. }
  496. }
  497. /*=============================================================================
  498. Images
  499. =============================================================================*/
  500. span.inlinemediaobject img
  501. {
  502. vertical-align: middle;
  503. }
  504. /*==============================================================================
  505. Super and Subscript: style so that line spacing isn't effected, see
  506. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341
  507. ==============================================================================*/
  508. sup,
  509. sub {
  510. height: 0;
  511. line-height: 1;
  512. vertical-align: baseline;
  513. position: relative;
  514. }
  515. /* For internet explorer: */
  516. * html sup,
  517. * html sub {
  518. vertical-align: bottom;
  519. }
  520. sup {
  521. bottom: 1ex;
  522. }
  523. sub {
  524. top: .5ex;
  525. }
  526. /*==============================================================================
  527. Indexes: pretty much the same as the TOC.
  528. ==============================================================================*/
  529. .index
  530. {
  531. font-size: 80%;
  532. padding-top: 0px;
  533. padding-bottom: 0px;
  534. margin-top: 0px;
  535. margin-bottom: 0px;
  536. margin-left: 0px;
  537. }
  538. .index ul
  539. {
  540. padding-left: 3em;
  541. }
  542. .index p
  543. {
  544. padding: 2px;
  545. margin: 2px;
  546. }
  547. .index-entry-level-0
  548. {
  549. font-weight: bold;
  550. }
  551. .index em
  552. {
  553. font-weight: bold;
  554. }
  555. /*==============================================================================
  556. Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
  557. Added from Niall Douglas for role color and alignment.
  558. http://article.gmane.org/gmane.comp.lib.boost.devel/243318
  559. */
  560. /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
  561. span.aligncenter
  562. {
  563. display: inline-block; width: 100%; text-align: center;
  564. }
  565. span.alignright
  566. {
  567. display: inline-block; width: 100%; text-align: right;
  568. }
  569. /* alignleft is the default. */
  570. span.alignleft
  571. {
  572. display: inline-block; width: 100%; text-align: left;
  573. }
  574. /* alignjustify stretches the word spacing so that each line has equal width
  575. within a chosen fraction of page width (here arbitrarily 20%).
  576. *Not* useful inside table items as the column width remains the total string width.
  577. Nor very useful, except to temporarily restrict the width.
  578. */
  579. span.alignjustify
  580. {
  581. display: inline-block; width: 20%; text-align: justify;
  582. }
  583. /* Text colors.
  584. Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
  585. Quickbook Usage: [role red Some red text]
  586. */
  587. span.red { inline-block; color: red; }
  588. span.green { color: green; }
  589. span.lime { color: #00FF00; }
  590. span.blue { color: blue; }
  591. span.navy { color: navy; }
  592. span.yellow { color: yellow; }
  593. span.magenta { color: magenta; }
  594. span.indigo { color: #4B0082; }
  595. span.cyan { color: cyan; }
  596. span.purple { color: purple; }
  597. span.gold { color: gold; }
  598. span.silver { color: silver; } /* lighter gray */
  599. span.gray { color: #808080; } /* light gray */