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