boostbook.css 17 KB

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