Merge "Make line breaks in <blockquote> behave like <div> (bug 6200)."
[mediawiki.git] / skins / common / commonPrint.css
blob4bb99ae9eaa830036310f1ceb5668e67e598f8b3
1 /**
2 * MediaWiki Print style sheet for CSS2-capable browsers.
3 * Copyright Gabriel Wicke, http://www.aulinx.de/
5 * Derived from the plone (http://plone.org/) styles
6 * Copyright Alexander Limi
7 */
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;
16 #toc {
17 border: 1px solid #aaaaaa;
18 background-color: #f9f9f9;
19 padding: 5px;
22 /* images */
23 div.floatright {
24 float: right;
25 clear: right;
26 position: relative;
27 margin: 0.5em 0 0.8em 1.4em;
29 div.floatright p {
30 font-style: italic;
32 div.floatleft {
33 float: left;
34 clear: left;
35 position: relative;
36 margin: 0.5em 1.4em 0.8em 0;
38 div.floatleft p {
39 font-style: italic;
41 div.center {
42 text-align: center;
45 /* thumbnails */
46 div.thumb {
47 border: none;
48 width: auto;
49 margin-top: 0.5em;
50 margin-bottom: 0.8em;
51 background-color: transparent;
53 div.thumbinner {
54 border:1px solid #cccccc;
55 padding: 3px !important;
56 background-color: White;
57 font-size: 94%;
58 text-align: center;
59 overflow: hidden;
61 html .thumbimage {
62 border: 1px solid #cccccc;
64 html .thumbcaption {
65 border: none;
66 text-align: left;
67 line-height: 1.4em;
68 padding: 3px !important;
69 font-size: 94%;
72 div.magnify {
73 display: none;
75 /* @noflip */
76 div.tright {
77 float: right;
78 clear: right;
79 margin: 0.5em 0 0.8em 1.4em;
81 /* @noflip */
82 div.tleft {
83 float: left;
84 clear: left;
85 margin: 0.5em 1.4em 0.8em 0;
87 img.thumbborder {
88 border: 1px solid #dddddd;
91 /* table standards */
92 table.rimage {
93 float: right;
94 width: 1pt;
95 position: relative;
96 margin-left: 1em;
97 margin-bottom: 1em;
98 text-align: center;
101 body {
102 background: white;
103 color: black;
104 margin: 0;
105 padding: 0;
108 .noprint,
109 div#jump-to-nav,
110 .mw-jump,
111 div.top,
112 div#column-one,
113 #colophon,
114 .mw-editsection,
115 .toctoggle,
116 .tochidden,
117 div#f-poweredbyico,
118 div#f-copyrightico,
119 li#viewcount,
120 li#about,
121 li#disclaimer,
122 li#mobileview,
123 li#privacy,
124 #footer-places,
125 .mw-hidden-catlinks,
126 tr.mw-metadata-show-hide-extended,
127 span.mw-filepage-other-resolutions,
128 #filetoc,
129 .usermessage,
130 #mw-navigation {
131 /* Hides all the elements irrelevant for printing */
132 display: none;
135 ul {
136 list-style-type: square;
139 #content {
140 background: none;
141 border: none !important;
142 padding: 0 !important;
143 margin: 0 !important;
144 direction: ltr;
146 #footer {
147 background : white;
148 color : black;
149 margin-top: 1em;
150 border-top: 1px solid #AAA;
151 direction: ltr;
154 h1, h2, h3, h4, h5, h6 {
155 font-weight: bold;
159 margin: 1em 0;
160 line-height: 1.2em;
163 pre, .mw-code {
164 border: 1pt dashed black;
165 white-space: pre;
166 font-size: 8pt;
167 overflow: auto;
168 padding: 1em 0;
169 background: white;
170 color: black;
173 table.listing,
174 table.listing td {
175 border: 1pt solid black;
176 border-collapse: collapse;
180 color: black !important;
181 background: none !important;
182 padding: 0 !important;
185 a:link, a:visited {
186 color: #520;
187 background: transparent;
188 text-decoration: underline;
191 #content a.external.text:after,
192 #content a.external.autonumber:after {
193 /* Expand URLs for printing */
194 content: " (" attr(href) ")";
197 #globalWrapper {
198 width: 100% !important;
199 min-width: 0 !important;
202 #content {
203 background: white;
204 color: black;
207 #column-content {
208 margin: 0 !important;
211 #column-content #content {
212 padding: 1em;
213 margin: 0 !important;
216 /* MSIE/Win doesn't understand 'inherit' */
218 a.external,
219 a.new,
220 a.stub {
221 color: black !important;
222 text-decoration: none !important;
225 /* Continue ... */
227 a.external,
228 a.new,
229 a.stub {
230 color: inherit !important;
231 text-decoration: inherit !important;
234 img {
235 border: none;
236 vertical-align: middle;
239 /* math */
240 span.texhtml {
241 font-family: serif;
244 #siteNotice {
245 display: none;
248 /* Galleries (see shared.css for more info) */
249 li.gallerybox {
250 vertical-align: top;
251 display: -moz-inline-box;
252 display: inline-block;
255 ul.gallery, li.gallerybox {
256 zoom: 1;
257 *display: inline;
260 ul.gallery {
261 margin: 2px;
262 padding: 2px;
263 display: block;
266 li.gallerycaption {
267 font-weight: bold;
268 text-align: center;
269 display: block;
270 word-wrap: break-word;
273 li.gallerybox div.thumb {
274 text-align: center;
275 border: 1px solid #ccc;
276 margin: 2px;
279 div.gallerytext {
280 overflow: hidden;
281 font-size: 94%;
282 padding: 2px 4px;
283 word-wrap: break-word;
287 * Diff rendering
289 table.diff {
290 background: white;
292 td.diff-otitle {
293 background: #ffffff;
295 td.diff-ntitle {
296 background: #ffffff;
298 td.diff-addedline {
299 background: #ccffcc;
300 font-size: smaller;
301 border: solid 2px black;
303 td.diff-deletedline {
304 background: #ffffaa;
305 font-size: smaller;
306 border: dotted 2px black;
308 td.diff-context {
309 background: #eeeeee;
310 font-size: smaller;
312 .diffchange {
313 color: silver;
314 font-weight: bold;
315 text-decoration: underline;
319 * Table rendering
320 * As on shared.css but with white background.
322 table.wikitable,
323 table.mw_metadata {
324 margin: 1em 0;
325 border: 1px #aaa solid;
326 background: white;
327 border-collapse: collapse;
329 table.wikitable > tr > th, table.wikitable > tr > td,
330 table.wikitable > * > tr > th, table.wikitable > * > tr > td,
331 .mw_metadata th, .mw_metadata td {
332 border: 1px #aaa solid;
333 padding: 0.2em;
335 table.wikitable > tr > th,
336 table.wikitable > * > tr > th,
337 .mw_metadata th {
338 text-align: center;
339 background: white;
340 font-weight: bold;
342 table.wikitable > caption,
343 .mw_metadata caption {
344 font-weight: bold;
347 a.sortheader {
348 margin: 0 0.3em;
351 /* Some pagination options */
352 .wikitable, .thumb, img {
353 page-break-inside: avoid;
355 h2, h3, h4, h5, h6 {
356 page-break-after: avoid;
359 widows: 3;
360 orphans: 3;
364 * Categories
366 .catlinks ul {
367 display: inline;
368 margin: 0;
369 padding: 0;
370 list-style: none;
371 list-style-type: none;
372 list-style-image: none;
373 vertical-align: middle !ie;
376 .catlinks li {
377 display: inline-block;
378 line-height: 1.15em;
379 padding: 0 .4em;
380 border-left: 1px solid #AAA;
381 margin: 0.1em 0;
382 zoom: 1;
383 display: inline !ie;
386 .catlinks li:first-child {
387 padding-left: .2em;
388 border-left: none;