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