Debian Codegraph @

src/docbkx/css/base.css

raw
1 /*
2 * Copyright 2009-2013 Roland Huss
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * Basic layout
19 */
20
21 html {
22 margin: 0;
23 height: 100%;
24 min-height: 100%
25 }
26
27 body {
28 margin: 0 auto;
29 padding: 0;
30 background-color: white;
31 line-height: 150%;
32 max-width: 960px;
33 }
34
35 body, td, div {
36 font-family: 'DejaVu Sans', 'Lucida Grande', 'Verdana', sans-serif;
37 font-size: 11pt;
38 color: #444444;
39 }
40
41 div {
42 margin: 0;
43 padding: 0;
44 }
45
46 a {
47 color: #444444;
48 }
49
50 a:visited {
51 color: #444444;
52 }
53
54 h1, h2, h3, h4, h5 {
55 color: #444444;
56 line-height: 150%;
57 font-weight: bold;
58 font-family: 'DejaVu Sans', 'Lucida Grande', helvetica, sans-serif;
59 }
60
61 .heading {
62 font-family: 'DejaVu Sans', 'Lucida Grande', helvetica, sans-serif;
63 }
64
65 code, pre {
66 font-family: 'Lucida Console', 'DejaVu Sans Mono', Courier, monospace;
67 border: 1px #eee solid;
68 padding: 2px;
69 background: #f7f7f7;
70 }
71
72 /*
73 * Docbook content
74 */
75
76 /*
77 * Lists
78 */
79
80 .variablelist dt {
81 font-weight: bold;
82 }
83
84 .variablelist dt a {
85 font-weight: normal;
86 }
87
88 /*
89 * Examples, Figures
90 */
91
92 pre {
93 background-color: #f5f5f5;
94 padding-top: 1em;
95 padding-bottom: 1em;
96 padding-left: 1.2em;
97 padding-right: 1.2em;
98 margin-top: 0.6em;
99 margin-bottom: 0.6em;
100 line-height: 120%;
101 }
102
103 .programlisting, .informalexample, .synopsis {
104 border-left: solid #d0d0d0 0.5em;
105 /*overflow-x: auto;*/
106 }
107
108 .screen {
109 border-left: solid #d0d0d0 0.5em;
110 /*overflow-x: auto;*/
111 }
112
113 .example, .figure, .table {
114 margin-top: 0;
115 margin-bottom: 1.8em;
116 }
117
118 .example .title, .figure .title, .table .title {
119 white-space: nowrap;
120 /*overflow-x: hidden;*/
121 margin-top: 0;
122 margin-bottom: 0.6em;
123 }
124
125 .example pre, .figure pre {
126 margin: 0;
127 margin-bottom: 0.6em;
128 }
129
130 .example-contents > p {
131 display: block;
132 margin: 0;
133 margin-bottom: 0.2em;
134 }
135
136 .example-break, .figure-break {
137 display: none
138 }
139
140 .exampleLocation {
141 margin-top: 0.5em;
142 padding-left: 1.7em;
143 background: #FEFEDD;
144 color: #777744;
145 }
146
147 .exampleLocation p {
148 padding-top: 0.4em;
149 padding-bottom: 0.4em;
150 }
151
152 .exampleLocation .emphasis em {
153 font-style: normal;
154 font-weight: bold;
155 }
156
157 .cmdsynopsis {
158 font-family: Courier, monospace;
159 margin-left: 2em;
160 }
161
162 /*
163 * Tables
164 */
165
166 .table table {
167 border-collapse: collapse;
168 font-size: 100%;
169 min-width: 50%;
170 border: solid #d0d0d0 1px;
171 line-height: 150%;
172 }
173
174 .table table td {
175 text-align: left;
176 vertical-align: text-top;
177 padding-left: 0.8em;
178 padding-right: 0.8em;
179 padding-top: 0.3em;
180 padding-bottom: 0.3em;
181 }
182
183 .table table thead td {
184 font-weight: bold;
185 border-bottom: solid #d0d0d0 1px;
186 background-color: #f2f2f2;
187 }
188
189 /*
190 * Footnotes, notes, tips
191 */
192
193 .footnote sup {
194 vertical-align: baseline;
195 font-size: 100%;
196 }
197
198 .note, .tip {
199 padding-top: 0.7em;
200 padding-bottom: 0.7em;
201 padding-left: 1.2em;
202 padding-right: 1.2em;
203 margin-bottom: 1em;
204 margin-top: 1em;
205 }
206
207 .note {
208 background: #ecf3ea;
209 border: solid #ccd3ca 1px;
210 }
211
212 .note .title {
213 color: #5283a1;
214 }
215
216 .tip {
217 float: right;
218 clear: right;
219 margin-left: 2em;
220 margin-top: 1em;
221 margin-bottom: 1em;
222 max-width: 30%;
223 width: 30%;
224 }
225
226 .tip {
227 background: #FAF7F5;
228 border: solid #e2d2c9 1px;
229 }
230
231 .sidebar-border {
232 float: right;
233 clear: right;
234 background: #FFFFFF;
235 padding-left: 0em;
236 margin-bottom: 1em;
237 margin-top: 1em;
238 max-width: 32%;
239 width: 32%;
240 }
241 .sidebar {
242 background: #FAF7F5;
243 border: solid #e2d2c9 1px;
244 margin-left: 1.2em;
245 padding-left: 1.2em;
246 padding-top: 0.7em;
247 padding-bottom: 0.7em;
248 padding-right: 1.2em;
249 }
250
251 .tip .title {
252 color: #80614D;
253 }
254
255 .sidebar .title {
256 color: #80614D;
257 }
258
259 /* Remove top margins on headings inside notes and tips */
260 .tip h1, .note h1
261 .tip h2, .note h2,
262 .tip h3, .note h3,
263 .tip h4, .note h4,
264 .tip h5, .note h5,
265 .tip h6, .note h6
266 {
267 margin-top: 0;
268 }
269
270 /*
271 * Code highlighting
272 */
273 .hl-string, .hl-number, .hl-value { color: #51913f; }
274
275 .hl-keyword { font-weight: bold; }
276
277 .hl-comment, .hl-doccomment { color: #929292; }
278
279 .hl-annotation { color: #777744; }