]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | @import url('../../../../doc/src/boostbook.css'); |
2 | ||
3 | /*============================================================================= | |
4 | Copyright (c) 2004 Joel de Guzman | |
5 | Copyright (c) 2014 John Maddock | |
6 | http://spirit.sourceforge.net/ | |
7 | ||
8 | Copyright 2013 Niall Douglas additions for colors and alignment. | |
9 | Copyright 2013 Paul A. Bristow additions for more colors and alignments. | |
10 | ||
11 | Distributed under the Boost Software License, Version 1.0. (See accompany- | |
12 | ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
13 | =============================================================================*/ | |
14 | ||
15 | /*============================================================================= | |
16 | Program listings | |
17 | =============================================================================*/ | |
18 | ||
19 | /* Code on paragraphs */ | |
20 | p tt.computeroutput | |
21 | { | |
22 | font-size: 10pt; | |
23 | } | |
24 | ||
25 | pre.synopsis | |
26 | { | |
27 | font-size: 10pt; | |
28 | margin: 1pc 4% 0pc 4%; | |
29 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
30 | } | |
31 | ||
32 | .programlisting, | |
33 | .screen | |
34 | { | |
35 | font-size: 10pt; | |
36 | display: block; | |
37 | margin: 1pc 4% 0pc 4%; | |
38 | padding: 0.5pc 0.5pc 0.5pc 0.5pc; | |
39 | ||
40 | } | |
41 | @media screen | |
42 | { | |
43 | /* Syntax Highlighting */ | |
44 | .comment { color: green; } | |
45 | /* .comment { color: #008000; } */ | |
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 | /*============================================================================= | |
56 | Table of contents | |
57 | =============================================================================*/ | |
58 | ||
59 | div.toc | |
60 | { | |
61 | margin: 1pc 4% 0pc 4%; | |
62 | padding: 0.1pc 1pc 0.1pc 1pc; | |
63 | font-size: 100%; | |
64 | line-height: 1.15; | |
65 | } | |
66 | ||
67 | .boost-toc | |
68 | { | |
69 | float: right; | |
70 | padding: 0.5pc; | |
71 | } | |
72 | ||
73 | /* Code on toc */ | |
74 | .toc .computeroutput { font-size: 120% } | |
75 | ||
76 | /* No margin on nested menus */ | |
77 | ||
78 | .toc dl dl { margin: 0; } | |
79 | ||
80 | ||
81 | /*============================================================================== | |
82 | Alignment and coloring use 'role' feature, available from Quickbook 1.6 up. | |
83 | Added from Niall Douglas for role color and alignment. | |
84 | http://article.gmane.org/gmane.comp.lib.boost.devel/243318 | |
85 | */ | |
86 | ||
87 | /* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */ | |
88 | span.aligncenter | |
89 | { | |
90 | display: inline-block; width: 100%; text-align: center; | |
91 | } | |
92 | span.alignright | |
93 | { | |
94 | display: inline-block; width: 100%; text-align: right; | |
95 | } | |
96 | /* alignleft is the default. */ | |
97 | span.alignleft | |
98 | { | |
99 | display: inline-block; width: 100%; text-align: left; | |
100 | } | |
101 | ||
102 | /* alignjustify stretches the word spacing so that each line has equal width | |
103 | within a chosen fraction of page width (here arbitrarily 20%). | |
104 | *Not* useful inside table items as the column width remains the total string width. | |
105 | Nor very useful, except to temporarily restrict the width. | |
106 | */ | |
107 | span.alignjustify | |
108 | { | |
109 | display: inline-block; width: 20%; text-align: justify; | |
110 | } | |
111 | ||
112 | /* Text colors. | |
113 | Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords. | |
114 | Quickbook Usage: [role red Some red text] | |
115 | ||
116 | */ | |
117 | span.red { inline-block; color: red; } | |
118 | span.green { color: green; } | |
119 | span.lime { color: #00FF00; } | |
120 | span.blue { color: blue; } | |
121 | span.navy { color: navy; } | |
122 | span.yellow { color: yellow; } | |
123 | span.magenta { color: magenta; } | |
124 | span.indigo { color: #4B0082; } | |
125 | span.cyan { color: cyan; } | |
126 | span.purple { color: purple; } | |
127 | span.gold { color: gold; } | |
128 | span.silver { color: silver; } /* lighter gray */ | |
129 | span.gray { color: #808080; } /* light gray */ | |
130 |