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