##// END OF EJS Templates
doc/style: fix typo in comment (by timeless)
Martin Geisler -
r9833:5e936f24 default
parent child Browse files
Show More
@@ -1,297 +1,297
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
86
87 /*
87 /*
88 * The following styles are from docutils'.
88 * The following styles are from Docutils.
89 * Please refine if necessary.
89 * Please refine if necessary.
90 */
90 */
91
91
92 table.borderless td, table.borderless th {
92 table.borderless td, table.borderless th {
93 /* Override padding for "table.docutils td" with "! important".
93 /* Override padding for "table.docutils td" with "! important".
94 The right padding separates the table cells. */
94 The right padding separates the table cells. */
95 padding: 0 0.5em 0 0 ! important;
95 padding: 0 0.5em 0 0 ! important;
96 }
96 }
97
97
98 .hidden {
98 .hidden {
99 display: none;
99 display: none;
100 }
100 }
101
101
102 blockquote.epigraph {
102 blockquote.epigraph {
103 margin: 2em 5em;
103 margin: 2em 5em;
104 }
104 }
105
105
106 div.abstract {
106 div.abstract {
107 margin: 2em 5em;
107 margin: 2em 5em;
108 }
108 }
109
109
110 div.dedication {
110 div.dedication {
111 margin: 2em 5em;
111 margin: 2em 5em;
112 text-align: center;
112 text-align: center;
113 font-style: italic;
113 font-style: italic;
114 }
114 }
115
115
116 div.figure {
116 div.figure {
117 margin-left: 2em;
117 margin-left: 2em;
118 margin-right: 2em;
118 margin-right: 2em;
119 }
119 }
120
120
121 div.footer, div.header {
121 div.footer, div.header {
122 clear: both;
122 clear: both;
123 font-size: smaller;
123 font-size: smaller;
124 }
124 }
125
125
126 div.line-block {
126 div.line-block {
127 display: block;
127 display: block;
128 margin-top: 1em;
128 margin-top: 1em;
129 margin-bottom: 1em;
129 margin-bottom: 1em;
130 }
130 }
131
131
132 div.line-block div.line-block {
132 div.line-block div.line-block {
133 margin-top: 0;
133 margin-top: 0;
134 margin-bottom: 0;
134 margin-bottom: 0;
135 margin-left: 1.5em;
135 margin-left: 1.5em;
136 }
136 }
137
137
138 div.sidebar {
138 div.sidebar {
139 margin: 0 0 0.5em 1em;
139 margin: 0 0 0.5em 1em;
140 border: medium outset;
140 border: medium outset;
141 padding: 1em;
141 padding: 1em;
142 background-color: #ffffee;
142 background-color: #ffffee;
143 width: 40%;
143 width: 40%;
144 float: right;
144 float: right;
145 clear: right;
145 clear: right;
146 }
146 }
147
147
148 div.sidebar p.rubric {
148 div.sidebar p.rubric {
149 font-family: sans-serif;
149 font-family: sans-serif;
150 font-size: medium;
150 font-size: medium;
151 }
151 }
152
152
153 div.system-messages {
153 div.system-messages {
154 margin: 5em;
154 margin: 5em;
155 }
155 }
156
156
157 div.system-messages h1 {
157 div.system-messages h1 {
158 color: red;
158 color: red;
159 }
159 }
160
160
161 div.system-message {
161 div.system-message {
162 border: medium outset;
162 border: medium outset;
163 padding: 1em;
163 padding: 1em;
164 }
164 }
165
165
166 div.system-message p.system-message-title {
166 div.system-message p.system-message-title {
167 color: red;
167 color: red;
168 font-weight: bold;
168 font-weight: bold;
169 }
169 }
170
170
171 h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
171 h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
172 h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
172 h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
173 margin-top: 0.4em;
173 margin-top: 0.4em;
174 }
174 }
175
175
176 hr.docutils {
176 hr.docutils {
177 width: 75%;
177 width: 75%;
178 }
178 }
179
179
180 img.align-left {
180 img.align-left {
181 clear: left;
181 clear: left;
182 }
182 }
183
183
184 img.align-right {
184 img.align-right {
185 clear: right;
185 clear: right;
186 }
186 }
187
187
188 ol.simple, ul.simple {
188 ol.simple, ul.simple {
189 margin-bottom: 1em;
189 margin-bottom: 1em;
190 }
190 }
191
191
192 ol.arabic {
192 ol.arabic {
193 list-style: decimal;
193 list-style: decimal;
194 }
194 }
195
195
196 ol.loweralpha {
196 ol.loweralpha {
197 list-style: lower-alpha;
197 list-style: lower-alpha;
198 }
198 }
199
199
200 ol.upperalpha {
200 ol.upperalpha {
201 list-style: upper-alpha;
201 list-style: upper-alpha;
202 }
202 }
203
203
204 ol.lowerroman {
204 ol.lowerroman {
205 list-style: lower-roman;
205 list-style: lower-roman;
206 }
206 }
207
207
208 ol.upperroman {
208 ol.upperroman {
209 list-style: upper-roman;
209 list-style: upper-roman;
210 }
210 }
211
211
212 p.attribution {
212 p.attribution {
213 text-align: right;
213 text-align: right;
214 margin-left: 50%;
214 margin-left: 50%;
215 }
215 }
216
216
217 p.caption {
217 p.caption {
218 font-style: italic;
218 font-style: italic;
219 }
219 }
220
220
221 p.credits {
221 p.credits {
222 font-style: italic;
222 font-style: italic;
223 font-size: smaller;
223 font-size: smaller;
224 }
224 }
225
225
226 p.label {
226 p.label {
227 white-space: nowrap;
227 white-space: nowrap;
228 }
228 }
229
229
230 p.rubric {
230 p.rubric {
231 font-weight: bold;
231 font-weight: bold;
232 font-size: larger;
232 font-size: larger;
233 color: maroon;
233 color: maroon;
234 text-align: center;
234 text-align: center;
235 }
235 }
236
236
237 pre.address {
237 pre.address {
238 margin-bottom: 0;
238 margin-bottom: 0;
239 margin-top: 0;
239 margin-top: 0;
240 font-family: serif;
240 font-family: serif;
241 font-size: 100%;
241 font-size: 100%;
242 }
242 }
243
243
244 pre.literal-block, pre.doctest-block {
244 pre.literal-block, pre.doctest-block {
245 margin-left: 2em;
245 margin-left: 2em;
246 margin-right: 2em;
246 margin-right: 2em;
247 }
247 }
248
248
249 span.classifier {
249 span.classifier {
250 font-family: sans-serif;
250 font-family: sans-serif;
251 font-style: oblique;
251 font-style: oblique;
252 }
252 }
253
253
254 span.classifier-delimiter {
254 span.classifier-delimiter {
255 font-family: sans-serif;
255 font-family: sans-serif;
256 font-weight: bold;
256 font-weight: bold;
257 }
257 }
258
258
259 span.interpreted {
259 span.interpreted {
260 font-family: sans-serif;
260 font-family: sans-serif;
261 }
261 }
262
262
263 span.option {
263 span.option {
264 white-space: nowrap;
264 white-space: nowrap;
265 }
265 }
266
266
267 span.pre {
267 span.pre {
268 white-space: pre;
268 white-space: pre;
269 }
269 }
270
270
271 span.problematic {
271 span.problematic {
272 color: red;
272 color: red;
273 }
273 }
274
274
275 span.section-subtitle {
275 span.section-subtitle {
276 /* font-size relative to parent (h1..h6 element) */
276 /* font-size relative to parent (h1..h6 element) */
277 font-size: 80%;
277 font-size: 80%;
278 }
278 }
279
279
280 table.citation {
280 table.citation {
281 border-left: solid 1px gray;
281 border-left: solid 1px gray;
282 margin-left: 1px;
282 margin-left: 1px;
283 }
283 }
284
284
285 table.footnote {
285 table.footnote {
286 border-left: solid 1px black;
286 border-left: solid 1px black;
287 margin-left: 1px;
287 margin-left: 1px;
288 }
288 }
289
289
290 h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
290 h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
291 h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
291 h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
292 font-size: 100%;
292 font-size: 100%;
293 }
293 }
294
294
295 ul.auto-toc {
295 ul.auto-toc {
296 list-style-type: none;
296 list-style-type: none;
297 }
297 }
General Comments 0
You need to be logged in to leave comments. Login now