Merge "Remove obsolete animation vendor prefix"
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / commonPrint.css
1 /**
2 * MediaWiki print style sheet
3 * Largely based on work by Gabriel Wicke
4 *
5 * Originally derived from Plone (https://plone.org/) styles
6 * Copyright Alexander Limi
7 */
8
9 /**
10 * Hide all the elements irrelevant for printing
11 * Skins however can and should override.
12 */
13 /* General hide-in-print class, please only use sparely */
14 .noprint,
15 /* Various content classes, in alphabetical order */
16 .catlinks,
17 .magnify,
18 .mw-cite-backlink,
19 .mw-jump,
20 .mw-editsection,
21 .mw-editsection-like,
22 .mw-hidden-catlinks,
23 .mw-indicators,
24 .mw-redirectedfrom,
25 .patrollink,
26 .usermessage,
27 /* Various content ids, in alphabetical order */
28 #column-one,
29 #footer-places,
30 #jump-to-nav,
31 #mw-navigation,
32 #siteNotice,
33 /* Deprecated, changed in core */
34 #f-poweredbyico,
35 #f-copyrightico,
36 li#about,
37 li#disclaimer,
38 li#mobileview,
39 li#privacy {
40 display: none;
41 }
42
43 /**
44 * Generic HTML elements
45 */
46 body {
47 background: #fff;
48 color: #000;
49 margin: 0;
50 padding: 0;
51 }
52
53 /* Links */
54 a {
55 background: none !important; /* stylelint-disable-line declaration-no-important */
56 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
57 }
58
59 a,
60 a.external,
61 a.new,
62 a.stub {
63 /* IE 6 & 7 don't understand `inherit` */
64 color: #000 !important; /* stylelint-disable-line declaration-no-important */
65 text-decoration: none !important; /* stylelint-disable-line declaration-no-important */
66 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
67 color: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
68 text-decoration: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
69 }
70
71 /* Expand URLs for printing */
72 .mw-body-content a.external.text:after,
73 .mw-body-content a.external.autonumber:after {
74 content: ' (' attr( href ) ')';
75 word-break: break-all;
76 word-wrap: break-word;
77 }
78
79 /* Expand protocol-relative URLs for printing */
80 .mw-body-content a.external.text[href^='//']:after,
81 .mw-body-content a.external.autonumber[href^='//']:after {
82 content: ' (https:' attr( href ) ')';
83 }
84
85 dt {
86 font-weight: bold;
87 }
88
89 h1,
90 h2,
91 h3,
92 h4,
93 h5,
94 h6 {
95 font-weight: bold;
96 /* Pagination */
97 page-break-after: avoid;
98 page-break-before: avoid;
99 }
100
101 p {
102 margin: 1em 0;
103 line-height: 1.2;
104 /* Pagination */
105 orphans: 3;
106 widows: 3;
107 }
108
109 img,
110 figure,
111 .wikitable,
112 .thumb {
113 /* Pagination */
114 page-break-inside: avoid;
115 }
116
117 img {
118 border: 0;
119 vertical-align: middle;
120 }
121
122 pre,
123 .mw-code {
124 background: #fff;
125 color: #000;
126 border: 1pt dashed #000;
127 padding: 1em 0;
128 font-size: 8pt;
129 white-space: pre;
130 word-wrap: break-word;
131 overflow: auto;
132 }
133
134 ul {
135 list-style-type: square;
136 }
137
138 /**
139 * MediaWiki-specific elements
140 */
141 #globalWrapper {
142 width: 100% !important; /* stylelint-disable-line declaration-no-important */
143 min-width: 0 !important; /* stylelint-disable-line declaration-no-important */
144 }
145
146 .mw-body {
147 background: #fff;
148 color: #000;
149 border: 0 !important; /* stylelint-disable-line declaration-no-important */
150 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
151 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
152 direction: ltr;
153 }
154
155 #column-content {
156 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
157 }
158
159 #column-content .mw-body {
160 padding: 1em;
161 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
162 }
163
164 #toc,
165 .toc {
166 background-color: #f9f9f9;
167 border: 1pt solid #aaa;
168 padding: 5px;
169 display: table;
170 }
171
172 /* Separate columns for `.tocnumber` and `.toctext` */
173 .tocnumber,
174 .toctext {
175 display: table-cell;
176 }
177
178 /* Space between those columns */
179 .tocnumber {
180 padding-left: 0;
181 padding-right: 0.5em;
182 }
183
184 /* @noflip */
185 .mw-content-ltr .tocnumber {
186 padding-left: 0;
187 padding-right: 0.5em;
188 }
189
190 /* @noflip */
191 .mw-content-rtl .tocnumber {
192 padding-left: 0.5em;
193 padding-right: 0;
194 }
195
196 /**
197 * Floating divs (and thumbnails)
198 */
199 /* @noflip */
200 table.floatright,
201 div.floatright,
202 div.tright {
203 float: right;
204 clear: right;
205 position: relative;
206 }
207
208 /* @noflip */
209 table.floatleft,
210 div.floatleft,
211 div.tleft {
212 float: left;
213 clear: left;
214 position: relative;
215 }
216
217 /* @noflip */
218 div.tleft {
219 margin: 0.5em 1.4em 1.3em 0;
220 }
221
222 /* @noflip */
223 div.tright {
224 margin: 0.5em 0 1.3em 1.4em;
225 }
226
227 /* @noflip */
228 table.floatright,
229 div.floatright {
230 margin: 0 0 0.5em 0.5em;
231 border: 0;
232 }
233
234 /* @noflip */
235 table.floatleft,
236 div.floatleft {
237 margin: 0 0.5em 0.5em 0;
238 border: 0;
239 }
240
241 div.floatleft p,
242 div.floatright p {
243 font-style: italic;
244 }
245
246 .center {
247 text-align: center;
248 }
249
250 /**
251 * Thumbnails
252 */
253 div.thumb {
254 background-color: transparent;
255 border: 0;
256 width: auto;
257 margin-top: 0.5em;
258 margin-bottom: 0.8em;
259 }
260
261 div.thumbinner {
262 background-color: #fff;
263 border: 1pt solid #ccc;
264 padding: 3px;
265 font-size: 94%;
266 text-align: center;
267 /* new block formatting context,
268 * to clear background from floating content */
269 overflow: hidden;
270 }
271
272 html .thumbimage {
273 border: 1pt solid #ccc;
274 }
275
276 html .thumbcaption {
277 border: 0;
278 text-align: left;
279 line-height: 1.4;
280 padding: 3px;
281 font-size: 94%;
282 }
283
284 img.thumbborder {
285 border: 1pt solid #ddd;
286 }
287
288 /**
289 * Table rendering
290 */
291 /* Compare `table.wikitable` in shared.css */
292 table.wikitable,
293 .mw_metadata {
294 background: #fff;
295 margin: 1em 0;
296 border: 1pt solid #aaa;
297 border-collapse: collapse;
298 font-size: 10pt;
299 }
300
301 table.wikitable > caption,
302 .mw_metadata caption {
303 padding: 5px;
304 font-size: 10pt;
305 }
306
307 table.wikitable > tr > th,
308 table.wikitable > tr > td,
309 table.wikitable > * > tr > th,
310 table.wikitable > * > tr > td,
311 .mw_metadata th,
312 .mw_metadata td {
313 /* Important is required to override any inline styles provided by editors */
314 background: #fff !important; /* stylelint-disable-line declaration-no-important */
315 /* We need to also set color in case editors applied a light text color */
316 color: #000 !important; /* stylelint-disable-line declaration-no-important */
317 border: 1pt solid #aaa;
318 padding: 0.4em 0.6em;
319 }
320
321 table.wikitable > tr > th,
322 table.wikitable > * > tr > th,
323 .mw_metadata th {
324 text-align: center;
325 }
326
327 table.listing,
328 table.listing td {
329 border: 1pt solid #000;
330 border-collapse: collapse;
331 }
332
333 /**
334 * Categories
335 */
336 .catlinks ul {
337 display: inline;
338 padding: 0;
339 list-style: none none;
340 }
341
342 .catlinks li {
343 display: inline-block;
344 line-height: 1.15;
345 margin: 0.1em 0;
346 border-left: 1pt solid #aaa;
347 padding: 0 0.4em;
348 }
349
350 .catlinks li:first-child {
351 border-left: 0;
352 padding-left: 0.2em;
353 }
354
355 /**
356 * Footer
357 */
358 .printfooter {
359 padding: 1em 0;
360 }
361
362 #footer {
363 background: #fff;
364 color: #000;
365 margin-top: 1em;
366 border-top: 1pt solid #aaa;
367 padding-top: 5px;
368 direction: ltr;
369 }