Merge "Fix sessionfailure i18n message during authentication"
[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-parser-output a.external.text:after,
73 .mw-parser-output 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-parser-output a.external.text[ href^='//' ]:after,
81 .mw-parser-output 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-wrap;
130 word-wrap: break-word;
131 }
132
133 /* Prevent citations and subscripts from interfering with the line-height */
134 sup,
135 sub {
136 line-height: 1;
137 }
138
139 ul {
140 list-style-type: square;
141 }
142
143 /**
144 * MediaWiki-specific elements
145 */
146 #globalWrapper {
147 width: 100% !important; /* stylelint-disable-line declaration-no-important */
148 min-width: 0 !important; /* stylelint-disable-line declaration-no-important */
149 }
150
151 .mw-body {
152 background: #fff;
153 color: #000;
154 border: 0 !important; /* stylelint-disable-line declaration-no-important */
155 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
156 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
157 direction: ltr;
158 }
159
160 #column-content {
161 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
162 }
163
164 #column-content .mw-body {
165 padding: 1em;
166 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
167 }
168
169 #toc,
170 .toc {
171 background-color: #f9f9f9;
172 border: 1pt solid #aaa;
173 padding: 5px;
174 display: table;
175 }
176
177 /* Separate columns for `.tocnumber` and `.toctext` */
178 .tocnumber,
179 .toctext {
180 display: table-cell;
181 }
182
183 /* Space between those columns */
184 .tocnumber {
185 padding-left: 0;
186 padding-right: 0.5em;
187 }
188
189 /* @noflip */
190 .mw-content-ltr .tocnumber {
191 padding-left: 0;
192 padding-right: 0.5em;
193 }
194
195 /* @noflip */
196 .mw-content-rtl .tocnumber {
197 padding-left: 0.5em;
198 padding-right: 0;
199 }
200
201 /**
202 * Floating divs (and thumbnails)
203 */
204 /* @noflip */
205 table.floatright,
206 div.floatright,
207 div.tright {
208 float: right;
209 clear: right;
210 position: relative;
211 }
212
213 /* @noflip */
214 table.floatleft,
215 div.floatleft,
216 div.tleft {
217 float: left;
218 clear: left;
219 position: relative;
220 }
221
222 /* @noflip */
223 div.tleft {
224 margin: 0.5em 1.4em 1.3em 0;
225 }
226
227 /* @noflip */
228 div.tright {
229 margin: 0.5em 0 1.3em 1.4em;
230 }
231
232 /* @noflip */
233 table.floatright,
234 div.floatright {
235 margin: 0 0 0.5em 0.5em;
236 border: 0;
237 }
238
239 /* @noflip */
240 table.floatleft,
241 div.floatleft {
242 margin: 0 0.5em 0.5em 0;
243 border: 0;
244 }
245
246 div.floatleft p,
247 div.floatright p {
248 font-style: italic;
249 }
250
251 .center {
252 text-align: center;
253 }
254
255 /**
256 * Thumbnails
257 */
258 div.thumb {
259 background-color: transparent;
260 width: auto;
261 }
262
263 div.thumb a {
264 border-bottom: 0;
265 }
266
267 div.thumbinner {
268 background-color: #fff;
269 border: 0;
270 border-radius: 2px;
271 padding: 5px;
272 font-size: 10pt;
273 color: #666;
274 text-align: center;
275 /* new block formatting context,
276 * to clear background from floating content */
277 overflow: hidden;
278 min-width: 100px;
279 }
280
281 html .thumbcaption {
282 text-align: left;
283 line-height: 1.4;
284 padding: 3px;
285 }
286
287 img.thumbborder {
288 border: 1pt solid #ddd;
289 }
290
291 /**
292 * Table rendering
293 */
294 /* Compare `table.wikitable` in shared.css */
295 table.wikitable,
296 .mw_metadata {
297 background: #fff;
298 margin: 1em 0;
299 border: 1pt solid #aaa;
300 border-collapse: collapse;
301 font-size: 10pt;
302 }
303
304 table.wikitable > caption,
305 .mw_metadata caption {
306 padding: 5px;
307 font-size: 10pt;
308 }
309
310 table.wikitable > tr > th,
311 table.wikitable > tr > td,
312 table.wikitable > * > tr > th,
313 table.wikitable > * > tr > td,
314 .mw_metadata th,
315 .mw_metadata td {
316 /* Important is required to override any inline styles provided by editors */
317 background: #fff !important; /* stylelint-disable-line declaration-no-important */
318 /* We need to also set color in case editors applied a light text color */
319 color: #000 !important; /* stylelint-disable-line declaration-no-important */
320 border: 1pt solid #aaa;
321 padding: 0.4em 0.6em;
322 }
323
324 table.wikitable > tr > th,
325 table.wikitable > * > tr > th,
326 .mw_metadata th {
327 text-align: center;
328 }
329
330 table.listing,
331 table.listing td {
332 border: 1pt solid #000;
333 border-collapse: collapse;
334 }
335
336 /**
337 * Categories
338 */
339 .catlinks ul {
340 display: inline;
341 padding: 0;
342 list-style: none none;
343 }
344
345 .catlinks li {
346 display: inline-block;
347 line-height: 1.15;
348 margin: 0.1em 0;
349 border-left: 1pt solid #aaa;
350 padding: 0 0.4em;
351 }
352
353 .catlinks li:first-child {
354 border-left: 0;
355 padding-left: 0.2em;
356 }
357
358 /**
359 * Footer
360 */
361 .printfooter {
362 padding: 1em 0;
363 }
364
365 #footer {
366 background: #fff;
367 color: #000;
368 margin-top: 1em;
369 border-top: 1pt solid #aaa;
370 padding-top: 5px;
371 direction: ltr;
372 }