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