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