Debian Codegraph @

doc/style.css

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