Show More
@@ -1,353 +1,295 b'' | |||
|
1 | /* | |
|
2 | * Styles for man pages, which suit with http://mercurial.selenic.com/ | |
|
3 | * | |
|
4 | * Color scheme & layout are borrowed from | |
|
5 | * http://mercurial.selenic.com/css/styles.css | |
|
6 | * | |
|
7 | * Some styles are from html4css1.css from Docutils, which is in the | |
|
8 | * public domain. | |
|
9 | */ | |
|
1 | 10 | |
|
2 | 11 | body { |
|
12 | margin: 0; | |
|
13 | padding: 0; | |
|
3 | 14 | font-family: sans-serif; |
|
4 | /* adjustment for tt padding */ | |
|
5 | line-height: 140%; | |
|
15 | color: #111; | |
|
6 | 16 | } |
|
7 | 17 | |
|
8 | tt, pre { | |
|
9 | background-color: #EEE; | |
|
10 | border: thin solid #CCC; | |
|
11 |
padding: |
|
|
18 | .document { | |
|
19 | position: relative; /* be a top of absolute positioning */ | |
|
20 | margin: 1.5em 1.8em; | |
|
21 | padding: 0; | |
|
22 | line-height: 1.3; | |
|
23 | } | |
|
24 | ||
|
25 | /* layout: toc to right */ | |
|
26 | #contents { | |
|
27 | position: absolute; | |
|
28 | right: 0; | |
|
29 | top: 0; | |
|
30 | width: 26%; | |
|
12 | 31 | } |
|
13 | 32 | |
|
14 | pre { | |
|
15 | padding: 0.25em; | |
|
33 | /* layout: others to left */ | |
|
34 | h1.title, h2.subtitle, .section { width: 72%; } | |
|
35 | .section .section { width: auto; } | |
|
36 | table.docinfo { max-width: 72%; } | |
|
37 | ||
|
38 | /* headings */ | |
|
39 | h1, h2, .topic-title, .admonition-title { | |
|
40 | font-family: "MgOpen Cosmetica", "Lucida Sans Unicode", sans-serif; | |
|
41 | font-weight: normal; | |
|
42 | } | |
|
43 | h1, h2, .topic-title, .admonition-title { | |
|
44 | margin: 1em 0 0.5em; | |
|
45 | } | |
|
46 | h1.title { font-size: 300%; } | |
|
47 | h2.subtitle, h1 { font-size: 200%; } | |
|
48 | h2, .topic-title, .admonition-title { font-size: 140%; } | |
|
49 | ||
|
50 | /* override first/last margin */ | |
|
51 | .first, h1.title, h2.subtitle { margin-top: 0 !important; } | |
|
52 | .last, .with-subtitle { margin-bottom: 0 !important; } | |
|
53 | ||
|
54 | blockquote, pre, dd .option-list, .field-list { | |
|
55 | margin: 0.2em 0 1em 2em; | |
|
16 | 56 | } |
|
17 | 57 | |
|
18 | #contents tt, h2 tt { | |
|
19 | background-color: inherit; | |
|
20 | border: inherit; | |
|
58 | kbd, tt, pre { font-family: monospace; } | |
|
59 | ||
|
60 | dt { font-weight: bold; } | |
|
61 | dd { margin-bottom: 0.5em; } | |
|
62 | ||
|
63 | th, td { padding: 0.1em 0.2em; border: 0 none; } | |
|
64 | th { font-weight: bold; text-align: left; } | |
|
65 | ||
|
66 | a:link, a:visited { text-decoration: underline; } | |
|
67 | a:hover, a:focus { text-decoration: none; } | |
|
68 | a:link { color: #00b5f1; } | |
|
69 | a:visited { color: #5c9caf; } | |
|
70 | a:link.toc-backref, a:visited.toc-backref { | |
|
71 | text-decoration: none; | |
|
72 | color: #111; /* `inherit' not supported by IE6 */ | |
|
21 | 73 | } |
|
22 | 74 | |
|
23 | /* styles taken from html4css1.css from Docutils, which is in the | |
|
24 | public domain */ | |
|
75 | div.admonition, div.attention, div.caution, | |
|
76 | div.danger, div.error, div.hint, div.important, | |
|
77 | div.note, div.tip, div.warning { | |
|
78 | border-top: 1px #ccc solid; | |
|
79 | border-bottom: 1px #ccc solid; | |
|
80 | padding: 0.3em 1em; | |
|
81 | margin: 1em; | |
|
82 | } | |
|
25 | 83 | |
|
26 | /* used to remove borders from tables and images */ | |
|
27 | .borderless, table.borderless td, table.borderless th { | |
|
28 | border: 0; | |
|
29 | } | |
|
84 | ||
|
85 | /* | |
|
86 | * The following styles are from docutils'. | |
|
87 | * Please refine if necessary. | |
|
88 | */ | |
|
30 | 89 | |
|
31 | 90 | table.borderless td, table.borderless th { |
|
32 | 91 | /* Override padding for "table.docutils td" with "! important". |
|
33 | 92 | The right padding separates the table cells. */ |
|
34 | 93 | padding: 0 0.5em 0 0 ! important; |
|
35 | 94 | } |
|
36 | 95 | |
|
37 | .first { | |
|
38 | /* Override more specific margin styles with "! important". */ | |
|
39 | margin-top: 0 ! important; | |
|
40 | } | |
|
41 | ||
|
42 | .last, .with-subtitle { | |
|
43 | margin-bottom: 0 ! important; | |
|
44 | } | |
|
45 | ||
|
46 | 96 | .hidden { |
|
47 | 97 | display: none; |
|
48 | 98 | } |
|
49 | 99 | |
|
50 | a.toc-backref { | |
|
51 | text-decoration: none; | |
|
52 | color: black; | |
|
53 | } | |
|
54 | ||
|
55 | 100 | blockquote.epigraph { |
|
56 |
margin: 2em 5em; |
|
|
101 | margin: 2em 5em; | |
|
57 | 102 | } |
|
58 | 103 | |
|
59 | dl.docutils dd { | |
|
60 | margin-bottom: 0.5em; | |
|
61 | } | |
|
62 | ||
|
63 | /* Uncomment (and remove this text!) to get bold-faced definition list terms | |
|
64 | dl.docutils dt { | |
|
65 | font-weight: bold; | |
|
66 | } | |
|
67 | */ | |
|
68 | ||
|
69 | 104 | div.abstract { |
|
70 | 105 | margin: 2em 5em; |
|
71 | 106 | } |
|
72 | 107 | |
|
73 | div.abstract p.topic-title { | |
|
74 | font-weight: bold; | |
|
75 | text-align: center; | |
|
76 | } | |
|
77 | ||
|
78 | div.admonition, div.attention, div.caution, div.danger, div.error, | |
|
79 | div.hint, div.important, div.note, div.tip, div.warning { | |
|
80 | margin: 2em; | |
|
81 | border: medium outset; | |
|
82 | padding: 1em; | |
|
83 | } | |
|
84 | ||
|
85 | div.admonition p.admonition-title, div.hint p.admonition-title, | |
|
86 | div.important p.admonition-title, div.note p.admonition-title, | |
|
87 | div.tip p.admonition-title { | |
|
88 | font-weight: bold; | |
|
89 | font-family: sans-serif; | |
|
90 | } | |
|
91 | ||
|
92 | div.attention p.admonition-title, div.caution p.admonition-title, | |
|
93 | div.danger p.admonition-title, div.error p.admonition-title, | |
|
94 | div.warning p.admonition-title { | |
|
95 | color: red; | |
|
96 | font-weight: bold; | |
|
97 | font-family: sans-serif; | |
|
98 | } | |
|
99 | ||
|
100 | /* Uncomment (and remove this text!) to get reduced vertical space in | |
|
101 | compound paragraphs. | |
|
102 | div.compound .compound-first, div.compound .compound-middle { | |
|
103 | margin-bottom: 0.5em; | |
|
104 | } | |
|
105 | ||
|
106 | div.compound .compound-last, div.compound .compound-middle { | |
|
107 | margin-top: 0.5em; | |
|
108 | } | |
|
109 | */ | |
|
110 | ||
|
111 | 108 | div.dedication { |
|
112 | 109 | margin: 2em 5em; |
|
113 | 110 | text-align: center; |
|
114 | 111 | font-style: italic; |
|
115 | 112 | } |
|
116 | 113 | |
|
117 | div.dedication p.topic-title { | |
|
118 | font-weight: bold; | |
|
119 | font-style: normal; | |
|
120 | } | |
|
121 | ||
|
122 | 114 | div.figure { |
|
123 | 115 | margin-left: 2em; |
|
124 | 116 | margin-right: 2em; |
|
125 | 117 | } |
|
126 | 118 | |
|
127 | 119 | div.footer, div.header { |
|
128 | 120 | clear: both; |
|
129 | 121 | font-size: smaller; |
|
130 | 122 | } |
|
131 | 123 | |
|
132 | 124 | div.line-block { |
|
133 | 125 | display: block; |
|
134 | 126 | margin-top: 1em; |
|
135 | 127 | margin-bottom: 1em; |
|
136 | 128 | } |
|
137 | 129 | |
|
138 | 130 | div.line-block div.line-block { |
|
139 | 131 | margin-top: 0; |
|
140 | 132 | margin-bottom: 0; |
|
141 | 133 | margin-left: 1.5em; |
|
142 | 134 | } |
|
143 | 135 | |
|
144 | 136 | div.sidebar { |
|
145 | 137 | margin: 0 0 0.5em 1em; |
|
146 | 138 | border: medium outset; |
|
147 | 139 | padding: 1em; |
|
148 | 140 | background-color: #ffffee; |
|
149 | 141 | width: 40%; |
|
150 | 142 | float: right; |
|
151 | 143 | clear: right; |
|
152 | 144 | } |
|
153 | 145 | |
|
154 | 146 | div.sidebar p.rubric { |
|
155 | 147 | font-family: sans-serif; |
|
156 | 148 | font-size: medium; |
|
157 | 149 | } |
|
158 | 150 | |
|
159 | 151 | div.system-messages { |
|
160 | 152 | margin: 5em; |
|
161 | 153 | } |
|
162 | 154 | |
|
163 | 155 | div.system-messages h1 { |
|
164 | 156 | color: red; |
|
165 | 157 | } |
|
166 | 158 | |
|
167 | 159 | div.system-message { |
|
168 | 160 | border: medium outset; |
|
169 | 161 | padding: 1em; |
|
170 | 162 | } |
|
171 | 163 | |
|
172 | 164 | div.system-message p.system-message-title { |
|
173 | 165 | color: red; |
|
174 | 166 | font-weight: bold; |
|
175 | 167 | } |
|
176 | 168 | |
|
177 | div.topic { | |
|
178 | margin: 2em; | |
|
179 | } | |
|
180 | ||
|
181 | 169 | h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|
182 | 170 | h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|
183 | 171 | margin-top: 0.4em; |
|
184 | 172 | } |
|
185 | 173 | |
|
186 | h1.title { | |
|
187 | text-align: center; | |
|
188 | } | |
|
189 | ||
|
190 | h2.subtitle { | |
|
191 | text-align: center; | |
|
192 | } | |
|
193 | ||
|
194 | 174 | hr.docutils { |
|
195 | 175 | width: 75%; |
|
196 | 176 | } |
|
197 | 177 | |
|
198 | 178 | img.align-left { |
|
199 | 179 | clear: left; |
|
200 | 180 | } |
|
201 | 181 | |
|
202 | 182 | img.align-right { |
|
203 | 183 | clear: right; |
|
204 | 184 | } |
|
205 | 185 | |
|
206 | 186 | ol.simple, ul.simple { |
|
207 | 187 | margin-bottom: 1em; |
|
208 | 188 | } |
|
209 | 189 | |
|
210 | 190 | ol.arabic { |
|
211 | 191 | list-style: decimal; |
|
212 | 192 | } |
|
213 | 193 | |
|
214 | 194 | ol.loweralpha { |
|
215 | 195 | list-style: lower-alpha; |
|
216 | 196 | } |
|
217 | 197 | |
|
218 | 198 | ol.upperalpha { |
|
219 | 199 | list-style: upper-alpha; |
|
220 | 200 | } |
|
221 | 201 | |
|
222 | 202 | ol.lowerroman { |
|
223 | 203 | list-style: lower-roman; |
|
224 | 204 | } |
|
225 | 205 | |
|
226 | 206 | ol.upperroman { |
|
227 | 207 | list-style: upper-roman; |
|
228 | 208 | } |
|
229 | 209 | |
|
230 | 210 | p.attribution { |
|
231 | 211 | text-align: right; |
|
232 | 212 | margin-left: 50%; |
|
233 | 213 | } |
|
234 | 214 | |
|
235 | 215 | p.caption { |
|
236 | 216 | font-style: italic; |
|
237 | 217 | } |
|
238 | 218 | |
|
239 | 219 | p.credits { |
|
240 | 220 | font-style: italic; |
|
241 | 221 | font-size: smaller; |
|
242 | 222 | } |
|
243 | 223 | |
|
244 | 224 | p.label { |
|
245 | 225 | white-space: nowrap; |
|
246 | 226 | } |
|
247 | 227 | |
|
248 | 228 | p.rubric { |
|
249 | 229 | font-weight: bold; |
|
250 | 230 | font-size: larger; |
|
251 | 231 | color: maroon; |
|
252 | 232 | text-align: center; |
|
253 | 233 | } |
|
254 | 234 | |
|
255 | p.sidebar-title { | |
|
256 | font-family: sans-serif; | |
|
257 | font-weight: bold; | |
|
258 | font-size: larger; | |
|
259 | } | |
|
260 | ||
|
261 | p.sidebar-subtitle { | |
|
262 | font-family: sans-serif; | |
|
263 | font-weight: bold; | |
|
264 | } | |
|
265 | ||
|
266 | p.topic-title { | |
|
267 | font-weight: bold; | |
|
268 | } | |
|
269 | ||
|
270 | 235 | pre.address { |
|
271 | 236 | margin-bottom: 0; |
|
272 | 237 | margin-top: 0; |
|
273 | 238 | font-family: serif; |
|
274 | 239 | font-size: 100%; |
|
275 | 240 | } |
|
276 | 241 | |
|
277 | 242 | pre.literal-block, pre.doctest-block { |
|
278 | 243 | margin-left: 2em; |
|
279 | 244 | margin-right: 2em; |
|
280 | 245 | } |
|
281 | 246 | |
|
282 | 247 | span.classifier { |
|
283 | 248 | font-family: sans-serif; |
|
284 | 249 | font-style: oblique; |
|
285 | 250 | } |
|
286 | 251 | |
|
287 | 252 | span.classifier-delimiter { |
|
288 | 253 | font-family: sans-serif; |
|
289 | 254 | font-weight: bold; |
|
290 | 255 | } |
|
291 | 256 | |
|
292 | 257 | span.interpreted { |
|
293 | 258 | font-family: sans-serif; |
|
294 | 259 | } |
|
295 | 260 | |
|
296 | 261 | span.option { |
|
297 | 262 | white-space: nowrap; |
|
298 | 263 | } |
|
299 | 264 | |
|
300 | 265 | span.pre { |
|
301 | 266 | white-space: pre; |
|
302 | 267 | } |
|
303 | 268 | |
|
304 | 269 | span.problematic { |
|
305 | 270 | color: red; |
|
306 | 271 | } |
|
307 | 272 | |
|
308 | 273 | span.section-subtitle { |
|
309 | 274 | /* font-size relative to parent (h1..h6 element) */ |
|
310 | 275 | font-size: 80%; |
|
311 | 276 | } |
|
312 | 277 | |
|
313 | 278 | table.citation { |
|
314 | 279 | border-left: solid 1px gray; |
|
315 | 280 | margin-left: 1px; |
|
316 | 281 | } |
|
317 | 282 | |
|
318 | table.docinfo { | |
|
319 | margin: 2em 4em; | |
|
320 | } | |
|
321 | ||
|
322 | table.docutils { | |
|
323 | margin-top: 0.5em; | |
|
324 | margin-bottom: 0.5em; | |
|
325 | } | |
|
326 | ||
|
327 | 283 | table.footnote { |
|
328 | 284 | border-left: solid 1px black; |
|
329 | 285 | margin-left: 1px; |
|
330 | 286 | } |
|
331 | 287 | |
|
332 | table.docutils td, table.docutils th, | |
|
333 | table.docinfo td, table.docinfo th { | |
|
334 | padding-left: 0.5em; | |
|
335 | padding-right: 0.5em; | |
|
336 | vertical-align: top; | |
|
337 | } | |
|
338 | ||
|
339 | table.docutils th.field-name, table.docinfo th.docinfo-name { | |
|
340 | font-weight: bold; | |
|
341 | text-align: left; | |
|
342 | white-space: nowrap; | |
|
343 | padding-left: 0; | |
|
344 | } | |
|
345 | ||
|
346 | 288 | h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|
347 | 289 | h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|
348 | 290 | font-size: 100%; |
|
349 | 291 | } |
|
350 | 292 | |
|
351 | 293 | ul.auto-toc { |
|
352 | 294 | list-style-type: none; |
|
353 | 295 | } |
General Comments 0
You need to be logged in to leave comments.
Login now