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
9 /* stylelint-disable selector-class-pattern */
12 * Hide all the elements irrelevant for printing
13 * Skins however can and should override.
15 /* General hide-in-print class, please only use sparely */
17 /* Various content classes, in alphabetical order */
28 /* 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-parser-output a
.external
.text:after
,
73 .mw-parser-output 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-parser-output a
.external
.text
[ href^
='//' ]:after
,
81 .mw-parser-output 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;
129 white-space: pre-wrap
;
130 word-wrap: break-word
;
133 /* Prevent citations and subscripts from interfering with the line-height */
140 list-style-type: square
;
144 * MediaWiki-specific elements
147 width: 100% !important
; /* stylelint-disable-line declaration-no-important */
148 min-width: 0 !important
; /* stylelint-disable-line declaration-no-important */
154 border: 0 !important
; /* stylelint-disable-line declaration-no-important */
155 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
156 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
161 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
164 #column-content .mw-body
{
166 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
170 background-color: #f9f9f9;
171 border: 1pt solid
#aaa;
176 /* Separate columns for `.tocnumber` and `.toctext` */
182 /* Space between those columns */
185 padding-right: 0.5em;
189 .mw-content-ltr .tocnumber {
191 padding-right: 0.5em;
195 .mw-content-rtl .tocnumber {
201 * Floating divs (and thumbnails)
223 margin: 0.5em 1.4em 1.3em 0;
228 margin: 0.5em 0 1.3em 1.4em;
234 margin: 0 0 0.5em 0.5em;
241 margin: 0 0.5em 0.5em 0;
253 background-color: transparent
;
262 background-color: #fff;
269 /* new block formatting context,
270 * to clear background from floating content */
282 border: 1pt solid
#ddd;
288 /* Compare `.wikitable` in shared.css */
293 border: 1pt solid
#aaa;
294 border-collapse: collapse
;
298 .wikitable
> caption
,
299 .mw_metadata caption {
304 .wikitable
> tr
> th
,
305 .wikitable
> tr
> td
,
306 .wikitable
> * > tr
> th
,
307 .wikitable
> * > tr
> td
,
310 /* Important is required to override any inline styles provided by editors */
311 background: #fff !important
; /* stylelint-disable-line declaration-no-important */
312 /* We need to also set color in case editors applied a light text color */
313 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
314 border: 1pt solid
#aaa;
315 padding: 0.4em 0.6em;
318 .wikitable
> tr
> th
,
319 .wikitable
> * > tr
> th
,
326 border: 1pt solid
#000;
327 border-collapse: collapse
;
336 list-style: none none
;
340 display: inline-block
;
343 border-left: 1pt solid
#aaa;
347 .catlinks li:first-child {
363 border-top: 1pt solid
#aaa;