Show More
@@ -1,32 +1,91 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". | |
@@ -34,91 +93,24 b' table.borderless td, table.borderless th' | |||||
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; | |
@@ -174,23 +166,11 b' div.system-message p.system-message-titl' | |||||
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 | } | |
@@ -252,21 +232,6 b' p.rubric {' | |||||
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; | |
@@ -315,34 +280,11 b' table.citation {' | |||||
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%; |
General Comments 0
You need to be logged in to leave comments.
Login now