Merge "Improve sorting on SpecialWanted*-Pages"
[mediawiki.git] / resources / src / mediawiki.legacy / commonPrint.css
blobe3e80d858c7ce849b29b41455171e28096838794
1 /**
2 * MediaWiki print style sheet
3 * Largely based on work by Gabriel Wicke
5 * Originally derived from Plone (https://plone.org/) styles
6 * Copyright Alexander Limi
7 */
9 /**
10 * Hide all the elements irrelevant for printing
12 .noprint,
13 #jump-to-nav,
14 .mw-jump,
15 #column-one,
16 .mw-editsection,
17 .mw-editsection-like,
18 #footer-places,
19 .mw-hidden-catlinks,
20 .usermessage,
21 .patrollink,
22 .ns-0 .mw-redirectedfrom,
23 .magnify,
24 #mw-navigation,
25 #siteNotice,
26 /* Deprecated, changed in core */
27 #f-poweredbyico,
28 #f-copyrightico,
29 li#about,
30 li#disclaimer,
31 li#mobileview,
32 li#privacy {
33 display: none;
36 /**
37 * Generic HTML elements
39 body {
40 background: #fff;
41 color: #000;
42 margin: 0;
43 padding: 0;
46 h1,
47 h2,
48 h3,
49 h4,
50 h5,
51 h6 {
52 font-weight: bold;
53 /* Pagination */
54 page-break-after: avoid;
57 dt {
58 font-weight: bold;
61 ul {
62 list-style-type: square;
65 p {
66 margin: 1em 0;
67 line-height: 1.2em;
68 /* Pagination */
69 orphans: 3;
70 widows: 3;
73 pre,
74 .mw-code {
75 background: #fff;
76 color: #000;
77 border: 1pt dashed #000;
78 padding: 1em 0;
79 font-size: 8pt;
80 white-space: pre;
81 word-wrap: break-word;
82 overflow: auto;
85 img,
86 figure,
87 .wikitable,
88 .thumb {
89 /* Pagination */
90 page-break-inside: avoid;
93 img {
94 border: 0;
95 vertical-align: middle;
98 /**
99 * MediaWiki-specific elements
101 #globalWrapper {
102 width: 100% !important; /* stylelint-disable-line declaration-no-important */
103 min-width: 0 !important; /* stylelint-disable-line declaration-no-important */
106 .mw-body {
107 background: #fff;
108 color: #000;
109 border: 0 !important; /* stylelint-disable-line declaration-no-important */
110 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
111 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
112 direction: ltr;
115 #column-content {
116 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
119 #column-content .mw-body {
120 padding: 1em;
121 margin: 0 !important; /* stylelint-disable-line declaration-no-important */
124 #toc {
125 background-color: #f9f9f9;
126 border: 1pt solid #aaa;
127 padding: 5px;
128 display: table;
131 /* Separate columns for tocnumber and toctext */
132 .tocnumber,
133 .toctext {
134 display: table-cell;
137 /* Space between the columns for tocnumber and toctext */
138 .tocnumber {
139 padding-left: 0;
140 padding-right: 0.5em;
143 /* @noflip */
144 .mw-content-ltr .tocnumber {
145 padding-left: 0;
146 padding-right: 0.5em;
149 /* @noflip */
150 .mw-content-rtl .tocnumber {
151 padding-left: 0.5em;
152 padding-right: 0;
155 #footer {
156 background: #fff;
157 color: #000;
158 margin-top: 1em;
159 border-top: 1pt solid #aaa;
160 direction: ltr;
164 * Links
167 background: none !important; /* stylelint-disable-line declaration-no-important */
168 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
171 /* Expand URLs for printing */
172 .mw-body-content a.external.text:after,
173 .mw-body-content a.external.autonumber:after {
174 content: ' (' attr( href ) ')';
175 word-break: break-all;
176 word-wrap: break-word;
179 /* Expand protocol-relative URLs for printing */
180 .mw-body-content a.external.text[href^='//']:after,
181 .mw-body-content a.external.autonumber[href^='//']:after {
182 content: ' (https:' attr( href ) ')';
186 a.external,
187 a.new,
188 a.stub {
189 /* IE 6 & 7 don't understand `inherit` */
190 color: #000 !important; /* stylelint-disable-line declaration-no-important */
191 text-decoration: none !important; /* stylelint-disable-line declaration-no-important */
192 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
193 color: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
194 text-decoration: inherit !important; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
198 * Floating divs
200 /* @noflip */
201 div.floatright {
202 float: right;
203 clear: right;
204 position: relative;
205 margin: 0.5em 0 0.8em 1.4em;
208 div.floatright p {
209 font-style: italic;
212 /* @noflip */
213 div.floatleft {
214 float: left;
215 clear: left;
216 position: relative;
217 margin: 0.5em 1.4em 0.8em 0;
220 div.floatleft p {
221 font-style: italic;
224 .center {
225 text-align: center;
229 * Thumbnails
231 div.thumb {
232 background-color: transparent;
233 border: 0;
234 width: auto;
235 margin-top: 0.5em;
236 margin-bottom: 0.8em;
239 div.thumbinner {
240 background-color: #fff;
241 border: 1pt solid #ccc;
242 padding: 3px;
243 font-size: 94%;
244 text-align: center;
245 /* new block formatting context,
246 * to clear background from floating content */
247 overflow: hidden;
250 html .thumbimage {
251 border: 1pt solid #ccc;
254 html .thumbcaption {
255 border: 0;
256 text-align: left;
257 line-height: 1.4em;
258 padding: 3px;
259 font-size: 94%;
262 /* @noflip */
263 div.tright {
264 float: right;
265 clear: right;
266 margin: 0.5em 0 0.8em 1.4em;
269 /* @noflip */
270 div.tleft {
271 float: left;
272 clear: left;
273 margin: 0.5em 1.4em 0.8em 0;
276 img.thumbborder {
277 border: 1pt solid #ddd;
281 * Table rendering
282 * As on shared.css but with white background.
284 table.wikitable,
285 table.mw_metadata {
286 background: #fff;
287 margin: 1em 0;
288 border: 1pt solid #aaa;
289 border-collapse: collapse;
292 table.wikitable > tr > th,
293 table.wikitable > tr > td,
294 table.wikitable > * > tr > th,
295 table.wikitable > * > tr > td,
296 .mw_metadata th,
297 .mw_metadata td {
298 border: 1pt solid #aaa;
299 padding: 0.2em;
302 table.wikitable > tr > th,
303 table.wikitable > * > tr > th,
304 .mw_metadata th {
305 background: #fff;
306 font-weight: bold;
307 text-align: center;
310 table.wikitable > caption,
311 .mw_metadata caption {
312 font-weight: bold;
315 table.listing,
316 table.listing td {
317 border: 1pt solid #000;
318 border-collapse: collapse;
322 * Categories
324 .catlinks ul {
325 display: inline;
326 padding: 0;
327 list-style: none none;
330 .catlinks li {
331 display: inline-block;
332 line-height: 1.15em;
333 padding: 0 0.4em;
334 border-left: 1pt solid #aaa;
335 margin: 0.1em 0;
338 .catlinks li:first-child {
339 padding-left: 0.2em;
340 border-left: 0;
343 .printfooter {
344 padding: 1em 0;