boostbook.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /*=============================================================================
  2. Copyright (c) 2004 Joel de Guzman
  3. http://spirit.sourceforge.net/
  4. Use, modification and distribution is subject to the Boost Software
  5. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. /*=============================================================================
  9. Body defaults
  10. =============================================================================*/
  11. body
  12. {
  13. margin: 1em;
  14. font-family: sans-serif;
  15. }
  16. /*=============================================================================
  17. Paragraphs
  18. =============================================================================*/
  19. p
  20. {
  21. text-align: left;
  22. font-size: 10pt;
  23. line-height: 1.15;
  24. }
  25. /*=============================================================================
  26. Program listings
  27. =============================================================================*/
  28. /* Code on paragraphs */
  29. p tt.computeroutput
  30. {
  31. font-size: 10pt;
  32. }
  33. pre.synopsis
  34. {
  35. font-size: 10pt;
  36. margin: 1pc 4% 0pc 4%;
  37. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  38. }
  39. .programlisting,
  40. .screen
  41. {
  42. font-size: 10pt;
  43. display: block;
  44. margin: 1pc 4% 0pc 4%;
  45. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  46. }
  47. /* Program listings in tables don't get borders */
  48. td .programlisting,
  49. td .screen
  50. {
  51. margin: 0pc 0pc 0pc 0pc;
  52. padding: 0pc 0pc 0pc 0pc;
  53. }
  54. /*=============================================================================
  55. Headings
  56. =============================================================================*/
  57. h1, h2, h3, h4, h5, h6
  58. {
  59. text-align: left;
  60. margin: 1em 0em 0.5em 0em;
  61. font-weight: bold;
  62. }
  63. h1 { font: 140% }
  64. h2 { font: bold 140% }
  65. h3 { font: bold 130% }
  66. h4 { font: bold 120% }
  67. h5 { font: italic 110% }
  68. h6 { font: italic 100% }
  69. /* Top page titles */
  70. title,
  71. h1.title,
  72. h2.title
  73. h3.title,
  74. h4.title,
  75. h5.title,
  76. h6.title,
  77. .refentrytitle
  78. {
  79. font-weight: bold;
  80. margin-bottom: 1pc;
  81. }
  82. h1.title { font-size: 140% }
  83. h2.title { font-size: 140% }
  84. h3.title { font-size: 130% }
  85. h4.title { font-size: 120% }
  86. h5.title { font-size: 110% }
  87. h6.title { font-size: 100% }
  88. .section h1
  89. {
  90. margin: 0em 0em 0.5em 0em;
  91. font-size: 140%;
  92. }
  93. .section h2 { font-size: 140% }
  94. .section h3 { font-size: 130% }
  95. .section h4 { font-size: 120% }
  96. .section h5 { font-size: 110% }
  97. .section h6 { font-size: 100% }
  98. /* Code on titles */
  99. h1 tt.computeroutput { font-size: 140% }
  100. h2 tt.computeroutput { font-size: 140% }
  101. h3 tt.computeroutput { font-size: 130% }
  102. h4 tt.computeroutput { font-size: 120% }
  103. h5 tt.computeroutput { font-size: 110% }
  104. h6 tt.computeroutput { font-size: 100% }
  105. /*=============================================================================
  106. Author
  107. =============================================================================*/
  108. h3.author
  109. {
  110. font-size: 100%
  111. }
  112. /*=============================================================================
  113. Lists
  114. =============================================================================*/
  115. li
  116. {
  117. font-size: 10pt;
  118. line-height: 1.3;
  119. }
  120. /* Unordered lists */
  121. ul
  122. {
  123. text-align: left;
  124. }
  125. /* Ordered lists */
  126. ol
  127. {
  128. text-align: left;
  129. }
  130. /*=============================================================================
  131. Links
  132. =============================================================================*/
  133. a
  134. {
  135. text-decoration: none; /* no underline */
  136. }
  137. a:hover
  138. {
  139. text-decoration: underline;
  140. }
  141. /*=============================================================================
  142. Spirit style navigation
  143. =============================================================================*/
  144. .spirit-nav
  145. {
  146. text-align: right;
  147. }
  148. .spirit-nav a
  149. {
  150. color: white;
  151. padding-left: 0.5em;
  152. }
  153. .spirit-nav img
  154. {
  155. border-width: 0px;
  156. }
  157. /*=============================================================================
  158. Table of contents
  159. =============================================================================*/
  160. .toc
  161. {
  162. margin: 1pc 4% 0pc 4%;
  163. padding: 0.1pc 1pc 0.1pc 1pc;
  164. font-size: 10pt;
  165. line-height: 1.15;
  166. }
  167. .toc-main
  168. {
  169. text-align: center;
  170. margin: 3pc 16% 3pc 16%;
  171. padding: 3pc 1pc 3pc 1pc;
  172. line-height: 0.1;
  173. }
  174. .boost-toc
  175. {
  176. float: right;
  177. padding: 0.5pc;
  178. }
  179. /*=============================================================================
  180. Tables
  181. =============================================================================*/
  182. .table-title,
  183. div.table p.title
  184. {
  185. margin-left: 4%;
  186. padding-right: 0.5em;
  187. padding-left: 0.5em;
  188. }
  189. .informaltable table,
  190. .table table
  191. {
  192. width: 92%;
  193. margin-left: 4%;
  194. margin-right: 4%;
  195. }
  196. div.informaltable table,
  197. div.table table
  198. {
  199. padding: 4px;
  200. }
  201. /* Table Cells */
  202. div.informaltable table tr td,
  203. div.table table tr td
  204. {
  205. padding: 0.5em;
  206. text-align: left;
  207. }
  208. div.informaltable table tr th,
  209. div.table table tr th
  210. {
  211. padding: 0.5em 0.5em 0.5em 0.5em;
  212. border: 1pt solid white;
  213. font-size: 120%;
  214. }
  215. /*=============================================================================
  216. Blurbs
  217. =============================================================================*/
  218. div.note,
  219. div.tip,
  220. div.important,
  221. div.caution,
  222. div.warning,
  223. div.sidebar
  224. {
  225. font-size: 10pt;
  226. line-height: 1.2;
  227. display: block;
  228. margin: 1pc 4% 0pc 4%;
  229. padding: 0.5pc 0.5pc 0.5pc 0.5pc;
  230. }
  231. div.sidebar img
  232. {
  233. padding: 1pt;
  234. }
  235. /*=============================================================================
  236. Callouts
  237. =============================================================================*/
  238. .line_callout_bug img
  239. {
  240. float: left;
  241. position:relative;
  242. left: 4px;
  243. top: -12px;
  244. clear: left;
  245. margin-left:-22px;
  246. }
  247. .callout_bug img
  248. {
  249. }
  250. /*=============================================================================
  251. Variable Lists
  252. =============================================================================*/
  253. /* Make the terms in definition lists bold */
  254. div.variablelist dl dt,
  255. span.term
  256. {
  257. font-weight: bold;
  258. font-size: 10pt;
  259. }
  260. div.variablelist table tbody tr td
  261. {
  262. text-align: left;
  263. vertical-align: top;
  264. padding: 0em 2em 0em 0em;
  265. font-size: 10pt;
  266. margin: 0em 0em 0.5em 0em;
  267. line-height: 1;
  268. }
  269. /* Make the terms in definition lists bold */
  270. div.variablelist dl dt
  271. {
  272. margin-bottom: 0.2em;
  273. }
  274. div.variablelist dl dd
  275. {
  276. margin: 0em 0em 0.5em 2em;
  277. font-size: 10pt;
  278. }
  279. div.variablelist table tbody tr td p
  280. div.variablelist dl dd p
  281. {
  282. margin: 0em 0em 0.5em 0em;
  283. line-height: 1;
  284. }
  285. /*=============================================================================
  286. Misc
  287. =============================================================================*/
  288. /* Title of books and articles in bibliographies */
  289. span.title
  290. {
  291. font-style: italic;
  292. }
  293. span.underline
  294. {
  295. text-decoration: underline;
  296. }
  297. span.strikethrough
  298. {
  299. text-decoration: line-through;
  300. }
  301. /* Copyright, Legal Notice */
  302. div div.legalnotice p
  303. {
  304. text-align: left
  305. }
  306. /*=============================================================================
  307. Colors
  308. =============================================================================*/
  309. @media screen
  310. {
  311. /* Links */
  312. a
  313. {
  314. color: #0C7445;
  315. }
  316. a:visited
  317. {
  318. color: #663974;
  319. }
  320. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
  321. h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
  322. h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited
  323. {
  324. text-decoration: none; /* no underline */
  325. color: #000000;
  326. }
  327. /* Syntax Highlighting */
  328. .keyword { color: #0000AA; }
  329. .identifier { color: #000000; }
  330. .special { color: #707070; }
  331. .preprocessor { color: #402080; }
  332. .char { color: teal; }
  333. .comment { color: #800000; }
  334. .string { color: teal; }
  335. .number { color: teal; }
  336. .white_bkd { background-color: #E8FBE9; }
  337. .dk_grey_bkd { background-color: #A0DAAC; }
  338. /* Copyright, Legal Notice */
  339. .copyright
  340. {
  341. color: #666666;
  342. font-size: small;
  343. }
  344. div div.legalnotice p
  345. {
  346. color: #666666;
  347. }
  348. /* Program listing */
  349. pre.synopsis
  350. {
  351. border: 1px solid #DCDCDC;
  352. border-bottom: 3px solid #9D9D9D;
  353. border-right: 3px solid #9D9D9D;
  354. background-color: #FAFFFB;
  355. }
  356. .programlisting,
  357. .screen
  358. {
  359. border: 1px solid #DCDCDC;
  360. border-bottom: 3px solid #9D9D9D;
  361. border-right: 3px solid #9D9D9D;
  362. background-color: #FAFFFB;
  363. }
  364. td .programlisting,
  365. td .screen
  366. {
  367. border: 0px solid #DCDCDC;
  368. }
  369. /* Blurbs */
  370. div.note,
  371. div.tip,
  372. div.important,
  373. div.caution,
  374. div.warning,
  375. div.sidebar
  376. {
  377. border: 1px solid #DCDCDC;
  378. border-bottom: 3px solid #9D9D9D;
  379. border-right: 3px solid #9D9D9D;
  380. background-color: #FAFFFB;
  381. }
  382. /* Table of contents */
  383. .toc
  384. {
  385. border: 1px solid #DCDCDC;
  386. border-bottom: 3px solid #9D9D9D;
  387. border-right: 3px solid #9D9D9D;
  388. background-color: #FAFFFB;
  389. }
  390. /* Table of contents */
  391. .toc-main
  392. {
  393. border: 1px solid #DCDCDC;
  394. border-bottom: 3px solid #9D9D9D;
  395. border-right: 3px solid #9D9D9D;
  396. background-color: #FAFFFB;
  397. }
  398. /* Tables */
  399. div.informaltable table tr td,
  400. div.table table tr td
  401. {
  402. border: 1px solid #DCDCDC;
  403. background-color: #FAFFFB;
  404. }
  405. div.informaltable table tr th,
  406. div.table table tr th
  407. {
  408. background-color: #E3F9E4;
  409. border: 1px solid #DCDCDC;
  410. }
  411. /* Misc */
  412. span.highlight
  413. {
  414. color: #00A000;
  415. }
  416. }
  417. @media print
  418. {
  419. /* Links */
  420. a
  421. {
  422. color: black;
  423. }
  424. a:visited
  425. {
  426. color: black;
  427. }
  428. .spirit-nav
  429. {
  430. display: none;
  431. }
  432. /* Program listing */
  433. pre.synopsis
  434. {
  435. border: 1px solid gray;
  436. background-color: #FAFFFB;
  437. }
  438. .programlisting,
  439. .screen
  440. {
  441. border: 1px solid gray;
  442. background-color: #FAFFFB;
  443. }
  444. td .programlisting,
  445. td .screen
  446. {
  447. border: 0px solid #DCDCDC;
  448. }
  449. /* Table of contents */
  450. .toc
  451. {
  452. border: 1px solid #DCDCDC;
  453. border-bottom: 3px solid #9D9D9D;
  454. border-right: 3px solid #9D9D9D;
  455. background-color: #FAFFFB;
  456. }
  457. /* Table of contents */
  458. .toc-main
  459. {
  460. border: 1px solid #DCDCDC;
  461. border-bottom: 3px solid #9D9D9D;
  462. border-right: 3px solid #9D9D9D;
  463. background-color: #FAFFFB;
  464. }
  465. .informaltable table,
  466. .table table
  467. {
  468. border: 1px solid #DCDCDC;
  469. border-bottom: 3px solid #9D9D9D;
  470. border-right: 3px solid #9D9D9D;
  471. border-collapse: collapse;
  472. background-color: #FAFFFB;
  473. }
  474. /* Tables */
  475. div.informaltable table tr td,
  476. div.table table tr td
  477. {
  478. border: 1px solid #DCDCDC;
  479. background-color: #FAFFFB;
  480. }
  481. div.informaltable table tr th,
  482. div.table table tr th
  483. {
  484. border: 1px solid #DCDCDC;
  485. background-color: #FAFFFB;
  486. }
  487. /* Misc */
  488. span.highlight
  489. {
  490. font-weight: bold;
  491. }
  492. }