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 | body { |
|
11 | body { | |
|
12 | margin: 0; | |||
|
13 | padding: 0; | |||
3 | font-family: sans-serif; |
|
14 | font-family: sans-serif; | |
4 | /* adjustment for tt padding */ |
|
15 | color: #111; | |
5 | line-height: 140%; |
|
|||
6 | } |
|
16 | } | |
7 |
|
17 | |||
8 | tt, pre { |
|
18 | .document { | |
9 | background-color: #EEE; |
|
19 | position: relative; /* be a top of absolute positioning */ | |
10 | border: thin solid #CCC; |
|
20 | margin: 1.5em 1.8em; | |
11 |
padding: |
|
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 { |
|
33 | /* layout: others to left */ | |
15 | padding: 0.25em; |
|
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 { |
|
58 | kbd, tt, pre { font-family: monospace; } | |
19 | background-color: inherit; |
|
59 | ||
20 | border: inherit; |
|
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 |
|
75 | div.admonition, div.attention, div.caution, | |
24 | public domain */ |
|
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 */ |
|
84 | ||
27 | .borderless, table.borderless td, table.borderless th { |
|
85 | /* | |
28 | border: 0; |
|
86 | * The following styles are from docutils'. | |
29 | } |
|
87 | * Please refine if necessary. | |
|
88 | */ | |||
30 |
|
89 | |||
31 | table.borderless td, table.borderless th { |
|
90 | table.borderless td, table.borderless th { | |
32 | /* Override padding for "table.docutils td" with "! important". |
|
91 | /* Override padding for "table.docutils td" with "! important". | |
33 | The right padding separates the table cells. */ |
|
92 | The right padding separates the table cells. */ | |
34 | padding: 0 0.5em 0 0 ! important; |
|
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 | .hidden { |
|
96 | .hidden { | |
47 | display: none; |
|
97 | display: none; | |
48 | } |
|
98 | } | |
49 |
|
99 | |||
50 | a.toc-backref { |
|
|||
51 | text-decoration: none; |
|
|||
52 | color: black; |
|
|||
53 | } |
|
|||
54 |
|
||||
55 | blockquote.epigraph { |
|
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 | div.abstract { |
|
104 | div.abstract { | |
70 | margin: 2em 5em; |
|
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 | div.dedication { |
|
108 | div.dedication { | |
112 | margin: 2em 5em; |
|
109 | margin: 2em 5em; | |
113 | text-align: center; |
|
110 | text-align: center; | |
114 | font-style: italic; |
|
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 | div.figure { |
|
114 | div.figure { | |
123 | margin-left: 2em; |
|
115 | margin-left: 2em; | |
124 | margin-right: 2em; |
|
116 | margin-right: 2em; | |
125 | } |
|
117 | } | |
126 |
|
118 | |||
127 | div.footer, div.header { |
|
119 | div.footer, div.header { | |
128 | clear: both; |
|
120 | clear: both; | |
129 | font-size: smaller; |
|
121 | font-size: smaller; | |
130 | } |
|
122 | } | |
131 |
|
123 | |||
132 | div.line-block { |
|
124 | div.line-block { | |
133 | display: block; |
|
125 | display: block; | |
134 | margin-top: 1em; |
|
126 | margin-top: 1em; | |
135 | margin-bottom: 1em; |
|
127 | margin-bottom: 1em; | |
136 | } |
|
128 | } | |
137 |
|
129 | |||
138 | div.line-block div.line-block { |
|
130 | div.line-block div.line-block { | |
139 | margin-top: 0; |
|
131 | margin-top: 0; | |
140 | margin-bottom: 0; |
|
132 | margin-bottom: 0; | |
141 | margin-left: 1.5em; |
|
133 | margin-left: 1.5em; | |
142 | } |
|
134 | } | |
143 |
|
135 | |||
144 | div.sidebar { |
|
136 | div.sidebar { | |
145 | margin: 0 0 0.5em 1em; |
|
137 | margin: 0 0 0.5em 1em; | |
146 | border: medium outset; |
|
138 | border: medium outset; | |
147 | padding: 1em; |
|
139 | padding: 1em; | |
148 | background-color: #ffffee; |
|
140 | background-color: #ffffee; | |
149 | width: 40%; |
|
141 | width: 40%; | |
150 | float: right; |
|
142 | float: right; | |
151 | clear: right; |
|
143 | clear: right; | |
152 | } |
|
144 | } | |
153 |
|
145 | |||
154 | div.sidebar p.rubric { |
|
146 | div.sidebar p.rubric { | |
155 | font-family: sans-serif; |
|
147 | font-family: sans-serif; | |
156 | font-size: medium; |
|
148 | font-size: medium; | |
157 | } |
|
149 | } | |
158 |
|
150 | |||
159 | div.system-messages { |
|
151 | div.system-messages { | |
160 | margin: 5em; |
|
152 | margin: 5em; | |
161 | } |
|
153 | } | |
162 |
|
154 | |||
163 | div.system-messages h1 { |
|
155 | div.system-messages h1 { | |
164 | color: red; |
|
156 | color: red; | |
165 | } |
|
157 | } | |
166 |
|
158 | |||
167 | div.system-message { |
|
159 | div.system-message { | |
168 | border: medium outset; |
|
160 | border: medium outset; | |
169 | padding: 1em; |
|
161 | padding: 1em; | |
170 | } |
|
162 | } | |
171 |
|
163 | |||
172 | div.system-message p.system-message-title { |
|
164 | div.system-message p.system-message-title { | |
173 | color: red; |
|
165 | color: red; | |
174 | font-weight: bold; |
|
166 | font-weight: bold; | |
175 | } |
|
167 | } | |
176 |
|
168 | |||
177 | div.topic { |
|
|||
178 | margin: 2em; |
|
|||
179 | } |
|
|||
180 |
|
||||
181 | h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|
169 | h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, | |
182 | h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|
170 | h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { | |
183 | margin-top: 0.4em; |
|
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 | hr.docutils { |
|
174 | hr.docutils { | |
195 | width: 75%; |
|
175 | width: 75%; | |
196 | } |
|
176 | } | |
197 |
|
177 | |||
198 | img.align-left { |
|
178 | img.align-left { | |
199 | clear: left; |
|
179 | clear: left; | |
200 | } |
|
180 | } | |
201 |
|
181 | |||
202 | img.align-right { |
|
182 | img.align-right { | |
203 | clear: right; |
|
183 | clear: right; | |
204 | } |
|
184 | } | |
205 |
|
185 | |||
206 | ol.simple, ul.simple { |
|
186 | ol.simple, ul.simple { | |
207 | margin-bottom: 1em; |
|
187 | margin-bottom: 1em; | |
208 | } |
|
188 | } | |
209 |
|
189 | |||
210 | ol.arabic { |
|
190 | ol.arabic { | |
211 | list-style: decimal; |
|
191 | list-style: decimal; | |
212 | } |
|
192 | } | |
213 |
|
193 | |||
214 | ol.loweralpha { |
|
194 | ol.loweralpha { | |
215 | list-style: lower-alpha; |
|
195 | list-style: lower-alpha; | |
216 | } |
|
196 | } | |
217 |
|
197 | |||
218 | ol.upperalpha { |
|
198 | ol.upperalpha { | |
219 | list-style: upper-alpha; |
|
199 | list-style: upper-alpha; | |
220 | } |
|
200 | } | |
221 |
|
201 | |||
222 | ol.lowerroman { |
|
202 | ol.lowerroman { | |
223 | list-style: lower-roman; |
|
203 | list-style: lower-roman; | |
224 | } |
|
204 | } | |
225 |
|
205 | |||
226 | ol.upperroman { |
|
206 | ol.upperroman { | |
227 | list-style: upper-roman; |
|
207 | list-style: upper-roman; | |
228 | } |
|
208 | } | |
229 |
|
209 | |||
230 | p.attribution { |
|
210 | p.attribution { | |
231 | text-align: right; |
|
211 | text-align: right; | |
232 | margin-left: 50%; |
|
212 | margin-left: 50%; | |
233 | } |
|
213 | } | |
234 |
|
214 | |||
235 | p.caption { |
|
215 | p.caption { | |
236 | font-style: italic; |
|
216 | font-style: italic; | |
237 | } |
|
217 | } | |
238 |
|
218 | |||
239 | p.credits { |
|
219 | p.credits { | |
240 | font-style: italic; |
|
220 | font-style: italic; | |
241 | font-size: smaller; |
|
221 | font-size: smaller; | |
242 | } |
|
222 | } | |
243 |
|
223 | |||
244 | p.label { |
|
224 | p.label { | |
245 | white-space: nowrap; |
|
225 | white-space: nowrap; | |
246 | } |
|
226 | } | |
247 |
|
227 | |||
248 | p.rubric { |
|
228 | p.rubric { | |
249 | font-weight: bold; |
|
229 | font-weight: bold; | |
250 | font-size: larger; |
|
230 | font-size: larger; | |
251 | color: maroon; |
|
231 | color: maroon; | |
252 | text-align: center; |
|
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 | pre.address { |
|
235 | pre.address { | |
271 | margin-bottom: 0; |
|
236 | margin-bottom: 0; | |
272 | margin-top: 0; |
|
237 | margin-top: 0; | |
273 | font-family: serif; |
|
238 | font-family: serif; | |
274 | font-size: 100%; |
|
239 | font-size: 100%; | |
275 | } |
|
240 | } | |
276 |
|
241 | |||
277 | pre.literal-block, pre.doctest-block { |
|
242 | pre.literal-block, pre.doctest-block { | |
278 | margin-left: 2em; |
|
243 | margin-left: 2em; | |
279 | margin-right: 2em; |
|
244 | margin-right: 2em; | |
280 | } |
|
245 | } | |
281 |
|
246 | |||
282 | span.classifier { |
|
247 | span.classifier { | |
283 | font-family: sans-serif; |
|
248 | font-family: sans-serif; | |
284 | font-style: oblique; |
|
249 | font-style: oblique; | |
285 | } |
|
250 | } | |
286 |
|
251 | |||
287 | span.classifier-delimiter { |
|
252 | span.classifier-delimiter { | |
288 | font-family: sans-serif; |
|
253 | font-family: sans-serif; | |
289 | font-weight: bold; |
|
254 | font-weight: bold; | |
290 | } |
|
255 | } | |
291 |
|
256 | |||
292 | span.interpreted { |
|
257 | span.interpreted { | |
293 | font-family: sans-serif; |
|
258 | font-family: sans-serif; | |
294 | } |
|
259 | } | |
295 |
|
260 | |||
296 | span.option { |
|
261 | span.option { | |
297 | white-space: nowrap; |
|
262 | white-space: nowrap; | |
298 | } |
|
263 | } | |
299 |
|
264 | |||
300 | span.pre { |
|
265 | span.pre { | |
301 | white-space: pre; |
|
266 | white-space: pre; | |
302 | } |
|
267 | } | |
303 |
|
268 | |||
304 | span.problematic { |
|
269 | span.problematic { | |
305 | color: red; |
|
270 | color: red; | |
306 | } |
|
271 | } | |
307 |
|
272 | |||
308 | span.section-subtitle { |
|
273 | span.section-subtitle { | |
309 | /* font-size relative to parent (h1..h6 element) */ |
|
274 | /* font-size relative to parent (h1..h6 element) */ | |
310 | font-size: 80%; |
|
275 | font-size: 80%; | |
311 | } |
|
276 | } | |
312 |
|
277 | |||
313 | table.citation { |
|
278 | table.citation { | |
314 | border-left: solid 1px gray; |
|
279 | border-left: solid 1px gray; | |
315 | margin-left: 1px; |
|
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 | table.footnote { |
|
283 | table.footnote { | |
328 | border-left: solid 1px black; |
|
284 | border-left: solid 1px black; | |
329 | margin-left: 1px; |
|
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 | h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|
288 | h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, | |
347 | h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|
289 | h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { | |
348 | font-size: 100%; |
|
290 | font-size: 100%; | |
349 | } |
|
291 | } | |
350 |
|
292 | |||
351 | ul.auto-toc { |
|
293 | ul.auto-toc { | |
352 | list-style-type: none; |
|
294 | list-style-type: none; | |
353 | } |
|
295 | } |
General Comments 0
You need to be logged in to leave comments.
Login now