boostbook.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  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. pre > code,
  43. div.codehilite
  44. {
  45. font-size: 9pt;
  46. display: block;
  47. margin: 1pc 4% 0pc 4%;
  48. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  49. }
  50. /* Program listings in tables don't get borders */
  51. td .programlisting,
  52. td .screen
  53. {
  54. margin: 0pc 0pc 0pc 0pc;
  55. padding: 0pc 0pc 0pc 0pc;
  56. }
  57. /*=============================================================================
  58. Headings
  59. =============================================================================*/
  60. h1, h2, h3, h4, h5, h6
  61. {
  62. text-align: left;
  63. margin: 1em 0em 0.5em 0em;
  64. font-weight: bold;
  65. }
  66. h1 { font-size: 150%; padding-top: 0.5em; }
  67. h2 { font-weight: bold; font-size: 130%; }
  68. h3 { font-weight: bold; font-size: 120%; }
  69. h4 { font-weight: bold; font-size: 110%; }
  70. h5 { font-weight: normal; font-style: italic; font-size: 100%; }
  71. h6 { font-weight: normal; font-style: italic; font-size: 100%; }
  72. /* Top page titles */
  73. title,
  74. h1.title,
  75. h2.title
  76. h3.title,
  77. h4.title,
  78. h5.title,
  79. h6.title,
  80. .refentrytitle
  81. {
  82. font-weight: bold;
  83. margin-bottom: 1pc;
  84. }
  85. h1.title { font-size: 150% }
  86. h2.title { font-size: 130% }
  87. h3.title { font-size: 120% }
  88. h4.title { font-size: 110% }
  89. h5.title { font-size: 100% }
  90. h6.title { font-size: 100% }
  91. .section h1
  92. {
  93. margin: 0em 0em 0.5em 0em;
  94. font-size: 150%;
  95. }
  96. .section h2 { font-size: 130% }
  97. .section h3 { font-size: 120% }
  98. .section h4 { font-size: 110% }
  99. .section h5 { font-size: 100% }
  100. .section h6 { font-size: 100% }
  101. /* Code on titles */
  102. h1 tt.computeroutput { font-size: 140% }
  103. h2 tt.computeroutput { font-size: 140% }
  104. h3 tt.computeroutput { font-size: 130% }
  105. h4 tt.computeroutput { font-size: 130% }
  106. h5 tt.computeroutput { font-size: 130% }
  107. h6 tt.computeroutput { font-size: 130% }
  108. /*=============================================================================
  109. Author
  110. =============================================================================*/
  111. h3.author
  112. {
  113. font-size: 100%
  114. }
  115. /*=============================================================================
  116. Lists
  117. =============================================================================*/
  118. li
  119. {
  120. font-size: 10pt;
  121. line-height: 1.3;
  122. }
  123. /* Unordered lists */
  124. ul
  125. {
  126. text-align: left;
  127. }
  128. /* Ordered lists */
  129. ol
  130. {
  131. text-align: left;
  132. }
  133. /*=============================================================================
  134. Links
  135. =============================================================================*/
  136. a
  137. {
  138. text-decoration: none; /* no underline */
  139. }
  140. a:hover
  141. {
  142. text-decoration: underline;
  143. }
  144. /*=============================================================================
  145. Spirit style navigation
  146. =============================================================================*/
  147. .spirit-nav
  148. {
  149. text-align: right;
  150. }
  151. .spirit-nav a
  152. {
  153. color: white;
  154. padding-left: 0.5em;
  155. }
  156. .spirit-nav img
  157. {
  158. border-width: 0px;
  159. }
  160. /*=============================================================================
  161. Copyright footer
  162. =============================================================================*/
  163. .copyright-footer
  164. {
  165. text-align: right;
  166. font-size: 70%;
  167. }
  168. .copyright-footer p
  169. {
  170. text-align: right;
  171. font-size: 80%;
  172. }
  173. /*=============================================================================
  174. Table of contents
  175. =============================================================================*/
  176. div.toc
  177. {
  178. margin: 1pc 4% 0pc 4%;
  179. padding: 0.1pc 1pc 0.1pc 1pc;
  180. font-size: 80%;
  181. line-height: 1.15;
  182. }
  183. .boost-toc
  184. {
  185. float: right;
  186. padding: 0.5pc;
  187. }
  188. /* Code on toc */
  189. .toc .computeroutput { font-size: 120% }
  190. /* No margin on nested menus */
  191. .toc dl dl { margin: 0; }
  192. /*=============================================================================
  193. Tables
  194. =============================================================================*/
  195. .table-title,
  196. div.table p.title
  197. {
  198. margin-left: 4%;
  199. padding-right: 0.5em;
  200. padding-left: 0.5em;
  201. }
  202. .informaltable table,
  203. .table table
  204. {
  205. width: 92%;
  206. margin-left: 4%;
  207. margin-right: 4%;
  208. }
  209. div.informaltable table,
  210. div.table table
  211. {
  212. padding: 4px;
  213. }
  214. /* Table Cells */
  215. div.informaltable table tr td,
  216. div.table table tr td
  217. {
  218. padding: 0.5em;
  219. text-align: left;
  220. font-size: 9pt;
  221. }
  222. div.informaltable table tr th,
  223. div.table table tr th
  224. {
  225. padding: 0.5em 0.5em 0.5em 0.5em;
  226. border: 1pt solid white;
  227. font-size: 80%;
  228. }
  229. table.simplelist
  230. {
  231. width: auto !important;
  232. margin: 0em !important;
  233. padding: 0em !important;
  234. border: none !important;
  235. }
  236. table.simplelist td
  237. {
  238. margin: 0em !important;
  239. padding: 0em !important;
  240. text-align: left !important;
  241. font-size: 9pt !important;
  242. border: none !important;
  243. }
  244. /*=============================================================================
  245. Suppress margins in tables
  246. =============================================================================*/
  247. table th > *:first-child,
  248. table td > *:first-child
  249. {
  250. margin-top: 0;
  251. }
  252. table th > *:last-child,
  253. table td > *:last-child
  254. {
  255. margin-bottom: 0;
  256. }
  257. /*=============================================================================
  258. Blurbs
  259. =============================================================================*/
  260. div.note,
  261. div.tip,
  262. div.important,
  263. div.caution,
  264. div.warning,
  265. p.blurb
  266. {
  267. font-size: 9pt; /* A little bit smaller than the main text */
  268. line-height: 1.2;
  269. display: block;
  270. margin: 1pc 4% 0pc 4%;
  271. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  272. }
  273. p.blurb img
  274. {
  275. padding: 1pt;
  276. }
  277. /*=============================================================================
  278. Variable Lists
  279. =============================================================================*/
  280. div.variablelist
  281. {
  282. margin: 1em 0;
  283. }
  284. /* Make the terms in definition lists bold */
  285. div.variablelist dl dt,
  286. span.term
  287. {
  288. font-weight: bold;
  289. font-size: 10pt;
  290. }
  291. div.variablelist table tbody tr td
  292. {
  293. text-align: left;
  294. vertical-align: top;
  295. padding: 0em 2em 0em 0em;
  296. font-size: 10pt;
  297. margin: 0em 0em 0.5em 0em;
  298. line-height: 1;
  299. }
  300. div.variablelist dl dt
  301. {
  302. margin-bottom: 0.2em;
  303. }
  304. div.variablelist dl dd
  305. {
  306. margin: 0em 0em 0.5em 2em;
  307. font-size: 10pt;
  308. }
  309. div.variablelist table tbody tr td p,
  310. div.variablelist dl dd p
  311. {
  312. margin: 0em 0em 0.5em 0em;
  313. line-height: 1;
  314. }
  315. /*=============================================================================
  316. Misc
  317. =============================================================================*/
  318. /* Title of books and articles in bibliographies */
  319. span.title
  320. {
  321. font-style: italic;
  322. }
  323. span.underline
  324. {
  325. text-decoration: underline;
  326. }
  327. span.strikethrough
  328. {
  329. text-decoration: line-through;
  330. }
  331. /* Copyright, Legal Notice */
  332. div div.legalnotice p
  333. {
  334. text-align: left
  335. }
  336. /*=============================================================================
  337. Colors
  338. =============================================================================*/
  339. @media screen
  340. {
  341. body {
  342. background-color: #FFFFFF;
  343. color: #000000;
  344. }
  345. /* Syntax Highlighting */
  346. .keyword,
  347. .codehilite .k,
  348. .codehilite .kc,
  349. .codehilite .kd,
  350. .codehilite .kn,
  351. .codehilite .kp,
  352. .codehilite .kr,
  353. .codehilite .kt
  354. { color: #0000AA; }
  355. .identifier,
  356. .codehilite .n,
  357. .codehilite .na,
  358. .codehilite .nb,
  359. .codehilite .bp,
  360. .codehilite .nc,
  361. .codehilite .no,
  362. .codehilite .nd,
  363. .codehilite .ni,
  364. .codehilite .ne,
  365. .codehilite .nf,
  366. .codehilite .py,
  367. .codehilite .nl,
  368. .codehilite .nn,
  369. .codehilite .nx,
  370. .codehilite .nt,
  371. .codehilite .nv,
  372. .codehilite .vc,
  373. .codehilite .vg,
  374. .codehilite .vi
  375. { color: #000000; }
  376. .special
  377. { color: #707070; }
  378. .preprocessor,
  379. .codehilite .cp
  380. { color: #402080; }
  381. .char,
  382. .codehilite .sc
  383. { color: teal; }
  384. .comment,
  385. .codehilite .cm,
  386. .codehilite .c1,
  387. .codehilite .cs
  388. { color: #800000; }
  389. .string,
  390. .codehilite .s,
  391. .codehilite .s2,
  392. .codehilite .se,
  393. .codehilite .sh,
  394. .codehilite .si,
  395. .codehilite .sx,
  396. .codehilite .sr,
  397. .codehilite .s1,
  398. .codehilite .ss
  399. { color: teal; }
  400. .number,
  401. .codehilite .m,
  402. .codehilite .mf,
  403. .codehilite .mh,
  404. .codehilite .mi,
  405. .codehilite .mo
  406. { color: teal; }
  407. .white_bkd { background-color: #FFFFFF; }
  408. .dk_grey_bkd { background-color: #999999; }
  409. /* Links */
  410. a, a .keyword, a .identifier, a .special, a .preprocessor
  411. a .char, a .comment, a .string, a .number
  412. {
  413. color: #005a9c;
  414. }
  415. a:visited, a:visited .keyword, a:visited .identifier,
  416. a:visited .special, a:visited .preprocessor a:visited .char,
  417. a:visited .comment, a:visited .string, a:visited .number
  418. {
  419. color: #9c5a9c;
  420. }
  421. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  422. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  423. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  424. {
  425. text-decoration: none; /* no underline */
  426. color: #000000;
  427. }
  428. /* Copyright, Legal Notice */
  429. .copyright
  430. {
  431. color: #666666;
  432. font-size: small;
  433. }
  434. div div.legalnotice p
  435. {
  436. color: #666666;
  437. }
  438. /* Program listing */
  439. pre.synopsis
  440. {
  441. border: 1px solid #DCDCDC;
  442. }
  443. .programlisting,
  444. .screen,
  445. pre > code,
  446. div.codehilite
  447. {
  448. border: 1px solid #DCDCDC;
  449. }
  450. td .programlisting,
  451. td .screen
  452. {
  453. border: 0px solid #DCDCDC;
  454. }
  455. /* Blurbs */
  456. div.note,
  457. div.tip,
  458. div.important,
  459. div.caution,
  460. div.warning,
  461. p.blurb
  462. {
  463. border: 1px solid #DCDCDC;
  464. }
  465. /* Table of contents */
  466. div.toc
  467. {
  468. border: 1px solid #DCDCDC;
  469. }
  470. /* Tables */
  471. div.informaltable table tr td,
  472. div.table table tr td
  473. {
  474. border: 1px solid #DCDCDC;
  475. }
  476. div.informaltable table tr th,
  477. div.table table tr th
  478. {
  479. background-color: #F0F0F0;
  480. border: 1px solid #DCDCDC;
  481. }
  482. .copyright-footer
  483. {
  484. color: #8F8F8F;
  485. }
  486. /* Misc */
  487. span.highlight
  488. {
  489. color: #00A000;
  490. }
  491. }
  492. @media print
  493. {
  494. /* Links */
  495. a
  496. {
  497. color: black;
  498. }
  499. a:visited
  500. {
  501. color: black;
  502. }
  503. .spirit-nav
  504. {
  505. display: none;
  506. }
  507. /* Program listing */
  508. pre.synopsis
  509. {
  510. border: 1px solid gray;
  511. }
  512. .programlisting,
  513. .screen
  514. {
  515. border: 1px solid gray;
  516. }
  517. td .programlisting,
  518. td .screen
  519. {
  520. border: 0px solid #DCDCDC;
  521. }
  522. /* Table of contents */
  523. div.toc
  524. {
  525. border: 1px solid gray;
  526. }
  527. .informaltable table,
  528. .table table
  529. {
  530. border: 1px solid gray;
  531. border-collapse: collapse;
  532. }
  533. /* Tables */
  534. div.informaltable table tr td,
  535. div.table table tr td
  536. {
  537. border: 1px solid gray;
  538. }
  539. div.informaltable table tr th,
  540. div.table table tr th
  541. {
  542. border: 1px solid gray;
  543. }
  544. table.simplelist tr td
  545. {
  546. border: none !important;
  547. }
  548. /* Misc */
  549. span.highlight
  550. {
  551. font-weight: bold;
  552. }
  553. }
  554. /*=============================================================================
  555. Images
  556. =============================================================================*/
  557. span.inlinemediaobject img
  558. {
  559. vertical-align: middle;
  560. }
  561. /*==============================================================================
  562. Super and Subscript: style so that line spacing isn't effected, see
  563. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=5341
  564. ==============================================================================*/
  565. sup,
  566. sub {
  567. height: 0;
  568. line-height: 1;
  569. vertical-align: baseline;
  570. position: relative;
  571. }
  572. /* For internet explorer: */
  573. * html sup,
  574. * html sub {
  575. vertical-align: bottom;
  576. }
  577. sup {
  578. bottom: 1ex;
  579. }
  580. sub {
  581. top: .5ex;
  582. }
  583. /*==============================================================================
  584. Indexes: pretty much the same as the TOC.
  585. ==============================================================================*/
  586. .index
  587. {
  588. font-size: 80%;
  589. padding-top: 0px;
  590. padding-bottom: 0px;
  591. margin-top: 0px;
  592. margin-bottom: 0px;
  593. margin-left: 0px;
  594. }
  595. .index ul
  596. {
  597. padding-left: 3em;
  598. }
  599. .index p
  600. {
  601. padding: 2px;
  602. margin: 2px;
  603. }
  604. .index-entry-level-0
  605. {
  606. font-weight: bold;
  607. }
  608. .index em
  609. {
  610. font-weight: bold;
  611. }
  612. /*==============================================================================
  613. Alignment and coloring use 'role' feature, available from Quickbook 1.6 up.
  614. Added from Niall Douglas for role color and alignment.
  615. http://article.gmane.org/gmane.comp.lib.boost.devel/243318
  616. */
  617. /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */
  618. span.aligncenter
  619. {
  620. display: inline-block; width: 100%; text-align: center;
  621. }
  622. span.alignright
  623. {
  624. display: inline-block; width: 100%; text-align: right;
  625. }
  626. /* alignleft is the default. */
  627. span.alignleft
  628. {
  629. display: inline-block; width: 100%; text-align: left;
  630. }
  631. /* alignjustify stretches the word spacing so that each line has equal width
  632. within a chosen fraction of page width (here arbitrarily 20%).
  633. *Not* useful inside table items as the column width remains the total string width.
  634. Nor very useful, except to temporarily restrict the width.
  635. */
  636. span.alignjustify
  637. {
  638. display: inline-block; width: 20%; text-align: justify;
  639. }
  640. /* Text colors.
  641. Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
  642. Quickbook Usage: [role red Some red text]
  643. */
  644. span.red { inline-block; color: red; }
  645. span.green { color: green; }
  646. span.lime { color: #00FF00; }
  647. span.blue { color: blue; }
  648. span.navy { color: navy; }
  649. span.yellow { color: yellow; }
  650. span.magenta { color: magenta; }
  651. span.indigo { color: #4B0082; }
  652. span.cyan { color: cyan; }
  653. span.purple { color: purple; }
  654. span.gold { color: gold; }
  655. span.silver { color: silver; } /* lighter gray */
  656. span.gray { color: #808080; } /* light gray */
  657. span.warning {
  658. display: inline-block;
  659. border:1px solid #C0C0C0;
  660. border-collapse:collapse;
  661. margin-bottom: 20px;
  662. padding:5px;
  663. }
  664. /*=============================================================================
  665. Sphinx Styles Adjustments
  666. =============================================================================*/
  667. div.toctree-wrapper
  668. {
  669. margin: 1pc 4% 0pc 4%;
  670. padding: 0.1pc 1pc 0.1pc 1pc;
  671. font-size: 80%;
  672. line-height: 1.15;
  673. border: 1px solid #DCDCDC;
  674. padding-top: 1em;
  675. }
  676. div.toctree-wrapper:before
  677. {
  678. content: "Table of Contents";
  679. font-weight: bold;
  680. font-size: 10pt;
  681. line-height: 1.15;
  682. }
  683. .boost-toc
  684. {
  685. float: right;
  686. padding: 0.5pc;
  687. }
  688. /* Code on toc */
  689. .toctree-wrapper .computeroutput { font-size: 120% }
  690. .toctree-wrapper ul ul { margin: 0; }
  691. .toctree-wrapper ul, .toctree-wrapper li
  692. {
  693. font-size: inherit;
  694. line-height: inherit;
  695. list-style-type:none;
  696. }
  697. .toctree-wrapper ul
  698. {
  699. padding-left: 0;
  700. }
  701. li.toctree-l2,
  702. li.toctree-l3,
  703. li.toctree-l4,
  704. li.toctree-l5
  705. {
  706. padding-left: 3em;
  707. }
  708. a.headerlink:visited,
  709. a.headerlink
  710. {
  711. color: white;
  712. background: white;
  713. padding: 0 4px;
  714. text-decoration: none;
  715. }
  716. a.headerlink:hover
  717. {
  718. color: lightgray;
  719. background: white;
  720. }
  721. div.highlight
  722. {
  723. border: 1px solid #DCDCDC;
  724. font-size: 9pt;
  725. display: block;
  726. margin: 1pc 4% 0pc 4%;
  727. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  728. }
  729. /* Tables */
  730. table.docutils
  731. {
  732. width: 92%;
  733. margin-left: 4%;
  734. margin-right: 4%;
  735. border: none;
  736. padding: 4px;
  737. }
  738. /* Table Cells */
  739. table.docutils tr td
  740. {
  741. padding: 0.5em;
  742. text-align: left;
  743. font-size: 9pt;
  744. }
  745. table.docutils tr th
  746. {
  747. padding: 0.5em 0.5em 0.5em 0.5em;
  748. border: 1pt solid white;
  749. font-size: 80%;
  750. }
  751. table.docutils tr td
  752. {
  753. border: 1px solid #DCDCDC;
  754. }
  755. table.docutils tr th
  756. {
  757. background-color: #F0F0F0;
  758. border: 1px solid #DCDCDC;
  759. }