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
10 * Hide all the elements irrelevant for printing
11 * Skins however can and should override.
13 /* General hide-in-print class, please only use sparely */
15 /* Various content classes, in alphabetical order */
27 /* Various content ids, in alphabetical order */
33 /* Deprecated, changed in core */
44 * Generic HTML elements
55 background: none
!important
; /* stylelint-disable-line declaration-no-important */
56 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
63 /* IE 6 & 7 don't understand `inherit` */
64 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
65 text-decoration: none
!important
; /* stylelint-disable-line declaration-no-important */
66 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
67 color: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
68 text-decoration: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
71 /* Expand URLs for printing */
72 .mw-body-content a
.external
.text:after
,
73 .mw-body-content a.external.autonumber:after {
74 content: ' (' attr
( href
) ')';
75 word-break: break-all
;
76 word-wrap: break-word
;
79 /* Expand protocol-relative URLs for printing */
80 .mw-body-content a
.external
.text
[href^
='//']:after
,
81 .mw-body-content a.external.autonumber[href^='//']:after {
82 content: ' (https:' attr
( href
) ')';
97 page-break-after: avoid
;
98 page-break-before: avoid
;
114 page-break-inside: avoid
;
119 vertical-align: middle
;
126 border: 1pt dashed
#000;
130 word-wrap: break-word
;
135 list-style-type: square
;
139 * MediaWiki-specific elements
142 width: 100% !important
; /* stylelint-disable-line declaration-no-important */
143 min-width: 0 !important
; /* stylelint-disable-line declaration-no-important */
149 border: 0 !important
; /* stylelint-disable-line declaration-no-important */
150 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
151 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
156 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
159 #column-content .mw-body
{
161 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
166 background-color: #f9f9f9;
167 border: 1pt solid
#aaa;
172 /* Separate columns for `.tocnumber` and `.toctext` */
178 /* Space between those columns */
181 padding-right: 0.5em;
185 .mw-content-ltr .tocnumber {
187 padding-right: 0.5em;
191 .mw-content-rtl .tocnumber {
197 * Floating divs (and thumbnails)
205 margin: 0.5em 0 0.8em 1.4em;
218 margin: 0.5em 1.4em 0.8em 0;
233 background-color: transparent
;
237 margin-bottom: 0.8em;
241 background-color: #fff;
242 border: 1pt solid
#ccc;
246 /* new block formatting context,
247 * to clear background from floating content */
252 border: 1pt solid
#ccc;
264 border: 1pt solid
#ddd;
270 /* Compare `table.wikitable` in shared.css */
275 border: 1pt solid
#aaa;
276 border-collapse: collapse
;
280 table
.wikitable
> caption
,
281 .mw_metadata caption {
286 table
.wikitable
> tr
> th
,
287 table
.wikitable
> tr
> td
,
288 table
.wikitable
> * > tr
> th
,
289 table
.wikitable
> * > tr
> td
,
292 /* Important is required to override any inline styles provided by editors */
293 background: #fff !important
; /* stylelint-disable-line declaration-no-important */
294 /* We need to also set color in case editors applied a light text color */
295 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
296 border: 1pt solid
#aaa;
297 padding: 0.4em 0.6em;
300 table
.wikitable
> tr
> th
,
301 table
.wikitable
> * > tr
> th
,
308 border: 1pt solid
#000;
309 border-collapse: collapse
;
318 list-style: none none
;
322 display: inline-block
;
325 border-left: 1pt solid
#aaa;
329 .catlinks li:first-child {
345 border-top: 1pt solid
#aaa;