(bug 56849) Deprecate dangerous edittime-based content update functions
[lhc/web/wiklou.git] / skins / common / 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 a.stub,
11 a.new {
12 color: #ba0000;
13 text-decoration: none;
14 }
15
16 #toc {
17 border: 1px solid #aaaaaa;
18 background-color: #f9f9f9;
19 padding: 5px;
20 display: -moz-inline-block;
21 display: inline-block;
22 display: table;
23 /* IE7 and earlier */
24 zoom: 1;
25 *display: inline;
26 }
27
28 /* images */
29 div.floatright {
30 float: right;
31 clear: right;
32 position: relative;
33 margin: 0.5em 0 0.8em 1.4em;
34 }
35
36 div.floatright p {
37 font-style: italic;
38 }
39
40 div.floatleft {
41 float: left;
42 clear: left;
43 position: relative;
44 margin: 0.5em 1.4em 0.8em 0;
45 }
46
47 div.floatleft p {
48 font-style: italic;
49 }
50
51 div.center {
52 text-align: center;
53 }
54
55 /* thumbnails */
56 div.thumb {
57 border: none;
58 width: auto;
59 margin-top: 0.5em;
60 margin-bottom: 0.8em;
61 background-color: transparent;
62 }
63
64 div.thumbinner {
65 border: 1px solid #cccccc;
66 padding: 3px !important;
67 background-color: White;
68 font-size: 94%;
69 text-align: center;
70 overflow: hidden;
71 }
72
73 html .thumbimage {
74 border: 1px solid #cccccc;
75 }
76
77 html .thumbcaption {
78 border: none;
79 text-align: left;
80 line-height: 1.4em;
81 padding: 3px !important;
82 font-size: 94%;
83 }
84
85 div.magnify {
86 display: none;
87 }
88
89 /* @noflip */
90 div.tright {
91 float: right;
92 clear: right;
93 margin: 0.5em 0 0.8em 1.4em;
94 }
95
96 /* @noflip */
97 div.tleft {
98 float: left;
99 clear: left;
100 margin: 0.5em 1.4em 0.8em 0;
101 }
102
103 img.thumbborder {
104 border: 1px solid #dddddd;
105 }
106
107 body {
108 background: white;
109 color: black;
110 margin: 0;
111 padding: 0;
112 }
113
114 .noprint,
115 div#jump-to-nav,
116 .mw-jump,
117 div.top,
118 div#column-one,
119 #colophon,
120 .mw-editsection,
121 .mw-editsection-like,
122 .toctoggle,
123 .tochidden,
124 div#f-poweredbyico,
125 div#f-copyrightico,
126 li#viewcount,
127 li#about,
128 li#disclaimer,
129 li#mobileview,
130 li#privacy,
131 #footer-places,
132 .mw-hidden-catlinks,
133 tr.mw-metadata-show-hide-extended,
134 span.mw-filepage-other-resolutions,
135 #filetoc,
136 .usermessage,
137 .patrollink,
138 #mw-navigation {
139 /* Hides all the elements irrelevant for printing */
140 display: none;
141 }
142
143 ul {
144 list-style-type: square;
145 }
146
147 #content {
148 background: none;
149 border: none !important;
150 padding: 0 !important;
151 margin: 0 !important;
152 direction: ltr;
153 }
154
155 #footer {
156 background: white;
157 color: black;
158 margin-top: 1em;
159 border-top: 1px solid #AAA;
160 direction: ltr;
161 }
162
163 h1, h2, h3, h4, h5, h6 {
164 font-weight: bold;
165 }
166
167 dt {
168 font-weight: bold;
169 }
170
171 p {
172 margin: 1em 0;
173 line-height: 1.2em;
174 }
175
176 pre, .mw-code {
177 border: 1pt dashed black;
178 white-space: pre;
179 font-size: 8pt;
180 overflow: auto;
181 padding: 1em 0;
182 background: white;
183 color: black;
184 }
185
186 table.listing,
187 table.listing td {
188 border: 1pt solid black;
189 border-collapse: collapse;
190 }
191
192 a {
193 color: black !important;
194 background: none !important;
195 padding: 0 !important;
196 }
197
198 a:link, a:visited {
199 color: #520;
200 background: transparent;
201 text-decoration: underline;
202 }
203
204 #content a.external.text:after,
205 #content a.external.autonumber:after {
206 /* Expand URLs for printing */
207 content: " (" attr(href) ")";
208 }
209
210 #content a.external.text[href^='//']:after,
211 #content a.external.autonumber[href^='//']:after {
212 /* Expand protocol-relative URLs for printing */
213 content: " (https:" attr(href) ")";
214 }
215
216 #globalWrapper {
217 width: 100% !important;
218 min-width: 0 !important;
219 }
220
221 #content {
222 background: white;
223 color: black;
224 }
225
226 #column-content {
227 margin: 0 !important;
228 }
229
230 #column-content #content {
231 padding: 1em;
232 margin: 0 !important;
233 }
234
235 /* MSIE/Win doesn't understand 'inherit' */
236 a,
237 a.external,
238 a.new,
239 a.stub {
240 color: black !important;
241 text-decoration: none !important;
242 }
243
244 /* Continue ... */
245 a,
246 a.external,
247 a.new,
248 a.stub {
249 color: inherit !important;
250 text-decoration: inherit !important;
251 }
252
253 img {
254 border: none;
255 vertical-align: middle;
256 }
257
258 /* math */
259 span.texhtml {
260 font-family: serif;
261 }
262
263 #siteNotice {
264 display: none;
265 }
266
267 /* Galleries (see shared.css for more info) */
268 li.gallerybox {
269 vertical-align: top;
270 display: inline-block;
271 }
272
273 ul.gallery, li.gallerybox {
274 zoom: 1;
275 *display: inline;
276 }
277
278 ul.gallery {
279 margin: 2px;
280 padding: 2px;
281 display: block;
282 }
283
284 li.gallerycaption {
285 font-weight: bold;
286 text-align: center;
287 display: block;
288 word-wrap: break-word;
289 }
290
291 li.gallerybox div.thumb {
292 text-align: center;
293 border: 1px solid #ccc;
294 margin: 2px;
295 }
296
297 div.gallerytext {
298 overflow: hidden;
299 font-size: 94%;
300 padding: 2px 4px;
301 word-wrap: break-word;
302 }
303
304 /**
305 * Diff rendering
306 */
307 table.diff {
308 background: white;
309 }
310
311 td.diff-otitle {
312 background: #ffffff;
313 }
314
315 td.diff-ntitle {
316 background: #ffffff;
317 }
318
319 td.diff-addedline {
320 background: #ccffcc;
321 font-size: smaller;
322 border: solid 2px black;
323 }
324
325 td.diff-deletedline {
326 background: #ffffaa;
327 font-size: smaller;
328 border: dotted 2px black;
329 }
330
331 td.diff-context {
332 background: #eeeeee;
333 font-size: smaller;
334 }
335
336 .diffchange {
337 color: silver;
338 font-weight: bold;
339 text-decoration: underline;
340 }
341
342 /**
343 * Table rendering
344 * As on shared.css but with white background.
345 */
346 table.wikitable,
347 table.mw_metadata {
348 margin: 1em 0;
349 border: 1px #aaa solid;
350 background: white;
351 border-collapse: collapse;
352 }
353
354 table.wikitable > tr > th, table.wikitable > tr > td,
355 table.wikitable > * > tr > th, table.wikitable > * > tr > td,
356 .mw_metadata th, .mw_metadata td {
357 border: 1px #aaa solid;
358 padding: 0.2em;
359 }
360
361 table.wikitable > tr > th,
362 table.wikitable > * > tr > th,
363 .mw_metadata th {
364 text-align: center;
365 background: white;
366 font-weight: bold;
367 }
368
369 table.wikitable > caption,
370 .mw_metadata caption {
371 font-weight: bold;
372 }
373
374 a.sortheader {
375 margin: 0 0.3em;
376 }
377
378 /* Some pagination options */
379 .wikitable, .thumb, img {
380 page-break-inside: avoid;
381 }
382
383 h2, h3, h4, h5, h6 {
384 page-break-after: avoid;
385 }
386
387 p {
388 widows: 3;
389 orphans: 3;
390 }
391
392 /**
393 * Categories
394 */
395 .catlinks ul {
396 display: inline;
397 margin: 0;
398 padding: 0;
399 list-style: none;
400 list-style-type: none;
401 list-style-image: none;
402 vertical-align: middle !ie;
403 }
404
405 .catlinks li {
406 display: inline-block;
407 line-height: 1.15em;
408 padding: 0 .4em;
409 border-left: 1px solid #AAA;
410 margin: 0.1em 0;
411 zoom: 1;
412 display: inline !ie;
413 }
414
415 .catlinks li:first-child {
416 padding-left: .2em;
417 border-left: none;
418 }