Implement extension registration from an extension.json file
[mediawiki.git] / resources / src / mediawiki.legacy / commonPrint.css
blob9a8d3918b1288de6c92b3afeae661c79131740f8
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 */
11 /**
12 * Hide all the elements irrelevant for printing
14 .noprint,
15 div#jump-to-nav,
16 .mw-jump,
17 div.top,
18 div#column-one,
19 #colophon,
20 .mw-editsection,
21 .mw-editsection-like,
22 .toctoggle,
23 #toc.tochidden,
24 div#f-poweredbyico,
25 div#f-copyrightico,
26 li#about,
27 li#disclaimer,
28 li#mobileview,
29 li#privacy,
30 #footer-places,
31 .mw-hidden-catlinks,
32 tr.mw-metadata-show-hide-extended,
33 span.mw-filepage-other-resolutions,
34 #filetoc,
35 .usermessage,
36 .patrollink,
37 .ns-0 .mw-redirectedfrom,
38 #mw-navigation,
39 #siteNotice {
40 display: none;
43 /**
44 * Pagination
46 .wikitable, .thumb, img {
47 page-break-inside: avoid;
50 h2, h3, h4, h5, h6 {
51 page-break-after: avoid;
54 p {
55 widows: 3;
56 orphans: 3;
59 /**
60 * Generic HTML elements
62 body {
63 background: white;
64 color: black;
65 margin: 0;
66 padding: 0;
69 ul {
70 list-style-type: square;
73 h1, h2, h3, h4, h5, h6 {
74 font-weight: bold;
77 dt {
78 font-weight: bold;
81 p {
82 margin: 1em 0;
83 line-height: 1.2em;
86 pre, .mw-code {
87 border: 1pt dashed black;
88 white-space: pre;
89 font-size: 8pt;
90 overflow: auto;
91 padding: 1em 0;
92 background: white;
93 color: black;
96 /**
97 * MediaWiki-specific elements
99 #globalWrapper {
100 width: 100% !important;
101 min-width: 0 !important;
104 .mw-body {
105 background: white;
106 border: none !important;
107 padding: 0 !important;
108 margin: 0 !important;
109 direction: ltr;
110 color: black;
113 #column-content {
114 margin: 0 !important;
117 #column-content .mw-body {
118 padding: 1em;
119 margin: 0 !important;
122 #toc {
123 border: 1px solid #aaaaaa;
124 background-color: #f9f9f9;
125 padding: 5px;
126 display: -moz-inline-block;
127 display: inline-block;
128 display: table;
129 /* IE7 and earlier */
130 zoom: 1;
131 *display: inline;
134 #footer {
135 background: white;
136 color: black;
137 margin-top: 1em;
138 border-top: 1px solid #AAA;
139 direction: ltr;
142 img {
143 border: none;
144 vertical-align: middle;
147 /* math */
148 span.texhtml {
149 font-family: serif;
153 * Links
155 a.stub,
156 a.new {
157 color: #ba0000;
158 text-decoration: none;
162 color: black !important;
163 background: none !important;
164 padding: 0 !important;
167 a:link, a:visited {
168 color: #520;
169 background: transparent;
170 text-decoration: underline;
173 /* Expand URLs for printing */
174 .mw-body a.external.text:after,
175 .mw-body a.external.autonumber:after {
176 content: " (" attr(href) ")";
179 /* Expand protocol-relative URLs for printing */
180 .mw-body a.external.text[href^='//']:after,
181 .mw-body a.external.autonumber[href^='//']:after {
182 content: " (https:" attr(href) ")";
185 /* MSIE/Win doesn't understand 'inherit' */
187 a.external,
188 a.new,
189 a.stub {
190 color: black !important;
191 text-decoration: none !important;
194 /* Continue ... */
196 a.external,
197 a.new,
198 a.stub {
199 color: inherit !important;
200 text-decoration: inherit !important;
204 * Floating divs
206 /* @noflip */
207 div.floatright {
208 float: right;
209 clear: right;
210 position: relative;
211 margin: 0.5em 0 0.8em 1.4em;
214 div.floatright p {
215 font-style: italic;
218 /* @noflip */
219 div.floatleft {
220 float: left;
221 clear: left;
222 position: relative;
223 margin: 0.5em 1.4em 0.8em 0;
226 div.floatleft p {
227 font-style: italic;
230 div.center {
231 text-align: center;
235 * Thumbnails
237 div.thumb {
238 border: none;
239 width: auto;
240 margin-top: 0.5em;
241 margin-bottom: 0.8em;
242 background-color: transparent;
245 div.thumbinner {
246 border: 1px solid #cccccc;
247 padding: 3px !important;
248 background-color: White;
249 font-size: 94%;
250 text-align: center;
251 overflow: hidden;
254 html .thumbimage {
255 border: 1px solid #cccccc;
258 html .thumbcaption {
259 border: none;
260 text-align: left;
261 line-height: 1.4em;
262 padding: 3px !important;
263 font-size: 94%;
266 div.magnify {
267 display: none;
270 /* @noflip */
271 div.tright {
272 float: right;
273 clear: right;
274 margin: 0.5em 0 0.8em 1.4em;
277 /* @noflip */
278 div.tleft {
279 float: left;
280 clear: left;
281 margin: 0.5em 1.4em 0.8em 0;
284 img.thumbborder {
285 border: 1px solid #dddddd;
289 * Galleries (see shared.css for more info)
291 li.gallerybox {
292 vertical-align: top;
293 display: inline-block;
296 ul.gallery, li.gallerybox {
297 zoom: 1;
298 *display: inline;
301 ul.gallery {
302 margin: 2px;
303 padding: 2px;
304 display: block;
307 li.gallerycaption {
308 font-weight: bold;
309 text-align: center;
310 display: block;
311 word-wrap: break-word;
314 li.gallerybox div.thumb {
315 text-align: center;
316 border: 1px solid #ccc;
317 margin: 2px;
320 div.gallerytext {
321 overflow: hidden;
322 font-size: 94%;
323 padding: 2px 4px;
324 word-wrap: break-word;
328 * Table rendering
329 * As on shared.css but with white background.
331 table.wikitable,
332 table.mw_metadata {
333 margin: 1em 0;
334 border: 1px #aaa solid;
335 background: white;
336 border-collapse: collapse;
339 table.wikitable > tr > th, table.wikitable > tr > td,
340 table.wikitable > * > tr > th, table.wikitable > * > tr > td,
341 .mw_metadata th, .mw_metadata td {
342 border: 1px #aaa solid;
343 padding: 0.2em;
346 table.wikitable > tr > th,
347 table.wikitable > * > tr > th,
348 .mw_metadata th {
349 text-align: center;
350 background: white;
351 font-weight: bold;
354 table.wikitable > caption,
355 .mw_metadata caption {
356 font-weight: bold;
359 table.listing,
360 table.listing td {
361 border: 1pt solid black;
362 border-collapse: collapse;
365 a.sortheader {
366 margin: 0 0.3em;
370 * Categories
372 .catlinks ul {
373 display: inline;
374 margin: 0;
375 padding: 0;
376 list-style: none;
377 list-style-type: none;
378 list-style-image: none;
379 vertical-align: middle !ie;
382 .catlinks li {
383 display: inline-block;
384 line-height: 1.15em;
385 padding: 0 .4em;
386 border-left: 1px solid #AAA;
387 margin: 0.1em 0;
388 zoom: 1;
389 display: inline !ie;
392 .catlinks li:first-child {
393 padding-left: .2em;
394 border-left: none;
397 .printfooter {
398 padding: 1em 0 1em 0;