Remove id #colophon from print styles
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / commonPrint.css
1 /**
2 * MediaWiki Print style sheet for CSS2-capable browsers.
3 * Copyright Gabriel Wicke, http://www.aulinx.de/
4 *
5 * Derived from the plone (http://plone.org/) styles
6 * Copyright Alexander Limi
7 */
8
9 /* Thanks to A List Apart (http://alistapart.com/) for useful extras */
10
11 /**
12 * Hide all the elements irrelevant for printing
13 */
14 .noprint,
15 div#jump-to-nav,
16 .mw-jump,
17 div.top,
18 div#column-one,
19 .mw-editsection,
20 .mw-editsection-like,
21 .toctoggle,
22 #toc.tochidden,
23 div#f-poweredbyico,
24 div#f-copyrightico,
25 li#about,
26 li#disclaimer,
27 li#mobileview,
28 li#privacy,
29 #footer-places,
30 .mw-hidden-catlinks,
31 tr.mw-metadata-show-hide-extended,
32 span.mw-filepage-other-resolutions,
33 #filetoc,
34 .usermessage,
35 .patrollink,
36 .ns-0 .mw-redirectedfrom,
37 #mw-navigation,
38 #siteNotice {
39 display: none;
40 }
41
42 /**
43 * Pagination
44 */
45 .wikitable, .thumb, img {
46 page-break-inside: avoid;
47 }
48
49 h2, h3, h4, h5, h6 {
50 page-break-after: avoid;
51 }
52
53 p {
54 widows: 3;
55 orphans: 3;
56 }
57
58 /**
59 * Generic HTML elements
60 */
61 body {
62 background: white;
63 color: black;
64 margin: 0;
65 padding: 0;
66 }
67
68 ul {
69 list-style-type: square;
70 }
71
72 h1, h2, h3, h4, h5, h6 {
73 font-weight: bold;
74 }
75
76 dt {
77 font-weight: bold;
78 }
79
80 p {
81 margin: 1em 0;
82 line-height: 1.2em;
83 }
84
85 pre, .mw-code {
86 border: 1pt dashed black;
87 white-space: pre;
88 font-size: 8pt;
89 overflow: auto;
90 padding: 1em 0;
91 background: white;
92 color: black;
93 }
94
95 /**
96 * MediaWiki-specific elements
97 */
98 #globalWrapper {
99 width: 100% !important;
100 min-width: 0 !important;
101 }
102
103 .mw-body {
104 background: white;
105 border: none !important;
106 padding: 0 !important;
107 margin: 0 !important;
108 direction: ltr;
109 color: black;
110 }
111
112 #column-content {
113 margin: 0 !important;
114 }
115
116 #column-content .mw-body {
117 padding: 1em;
118 margin: 0 !important;
119 }
120
121 #toc {
122 border: 1px solid #aaaaaa;
123 background-color: #f9f9f9;
124 padding: 5px;
125 display: inline-block;
126 display: table;
127 /* IE7 and earlier */
128 zoom: 1;
129 *display: inline;
130 }
131
132 #footer {
133 background: white;
134 color: black;
135 margin-top: 1em;
136 border-top: 1px solid #AAA;
137 direction: ltr;
138 }
139
140 img {
141 border: none;
142 vertical-align: middle;
143 }
144
145 /* math */
146 span.texhtml {
147 font-family: serif;
148 }
149
150 /**
151 * Links
152 */
153 a.stub,
154 a.new {
155 color: #ba0000;
156 text-decoration: none;
157 }
158
159 a {
160 color: black !important;
161 background: none !important;
162 padding: 0 !important;
163 }
164
165 a:link, a:visited {
166 color: #520;
167 background: transparent;
168 text-decoration: underline;
169 }
170
171 /* Expand URLs for printing */
172 .mw-body a.external.text:after,
173 .mw-body a.external.autonumber:after {
174 content: " (" attr(href) ")";
175 }
176
177 /* Expand protocol-relative URLs for printing */
178 .mw-body a.external.text[href^='//']:after,
179 .mw-body a.external.autonumber[href^='//']:after {
180 content: " (https:" attr(href) ")";
181 }
182
183 /* MSIE/Win doesn't understand 'inherit' */
184 a,
185 a.external,
186 a.new,
187 a.stub {
188 color: black !important;
189 text-decoration: none !important;
190 }
191
192 /* Continue ... */
193 a,
194 a.external,
195 a.new,
196 a.stub {
197 color: inherit !important;
198 text-decoration: inherit !important;
199 }
200
201 /**
202 * Floating divs
203 */
204 /* @noflip */
205 div.floatright {
206 float: right;
207 clear: right;
208 position: relative;
209 margin: 0.5em 0 0.8em 1.4em;
210 }
211
212 div.floatright p {
213 font-style: italic;
214 }
215
216 /* @noflip */
217 div.floatleft {
218 float: left;
219 clear: left;
220 position: relative;
221 margin: 0.5em 1.4em 0.8em 0;
222 }
223
224 div.floatleft p {
225 font-style: italic;
226 }
227
228 div.center {
229 text-align: center;
230 }
231
232 /**
233 * Thumbnails
234 */
235 div.thumb {
236 border: none;
237 width: auto;
238 margin-top: 0.5em;
239 margin-bottom: 0.8em;
240 background-color: transparent;
241 }
242
243 div.thumbinner {
244 border: 1px solid #cccccc;
245 padding: 3px !important;
246 background-color: White;
247 font-size: 94%;
248 text-align: center;
249 overflow: hidden;
250 }
251
252 html .thumbimage {
253 border: 1px solid #cccccc;
254 }
255
256 html .thumbcaption {
257 border: none;
258 text-align: left;
259 line-height: 1.4em;
260 padding: 3px !important;
261 font-size: 94%;
262 }
263
264 div.magnify {
265 display: none;
266 }
267
268 /* @noflip */
269 div.tright {
270 float: right;
271 clear: right;
272 margin: 0.5em 0 0.8em 1.4em;
273 }
274
275 /* @noflip */
276 div.tleft {
277 float: left;
278 clear: left;
279 margin: 0.5em 1.4em 0.8em 0;
280 }
281
282 img.thumbborder {
283 border: 1px solid #dddddd;
284 }
285
286 /**
287 * Table rendering
288 * As on shared.css but with white background.
289 */
290 table.wikitable,
291 table.mw_metadata {
292 margin: 1em 0;
293 border: 1px #aaa solid;
294 background: white;
295 border-collapse: collapse;
296 }
297
298 table.wikitable > tr > th, table.wikitable > tr > td,
299 table.wikitable > * > tr > th, table.wikitable > * > tr > td,
300 .mw_metadata th, .mw_metadata td {
301 border: 1px #aaa solid;
302 padding: 0.2em;
303 }
304
305 table.wikitable > tr > th,
306 table.wikitable > * > tr > th,
307 .mw_metadata th {
308 text-align: center;
309 background: white;
310 font-weight: bold;
311 }
312
313 table.wikitable > caption,
314 .mw_metadata caption {
315 font-weight: bold;
316 }
317
318 table.listing,
319 table.listing td {
320 border: 1pt solid black;
321 border-collapse: collapse;
322 }
323
324 a.sortheader {
325 margin: 0 0.3em;
326 }
327
328 /**
329 * Categories
330 */
331 .catlinks ul {
332 display: inline;
333 margin: 0;
334 padding: 0;
335 list-style: none;
336 list-style-type: none;
337 list-style-image: none;
338 vertical-align: middle !ie;
339 }
340
341 .catlinks li {
342 display: inline-block;
343 line-height: 1.15em;
344 padding: 0 .4em;
345 border-left: 1px solid #AAA;
346 margin: 0.1em 0;
347 zoom: 1;
348 display: inline !ie;
349 }
350
351 .catlinks li:first-child {
352 padding-left: .2em;
353 border-left: none;
354 }
355
356 .printfooter {
357 padding: 1em 0 1em 0;
358 }