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-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;
258 background-color: transparent
;
267 background-color: #fff;
274 /* new block formatting context,
275 * to clear background from floating content */
287 border: 1pt solid
#ddd;
293 /* Compare `table.wikitable` in shared.css */
298 border: 1pt solid
#aaa;
299 border-collapse: collapse
;
303 table
.wikitable
> caption
,
304 .mw_metadata caption {
309 table
.wikitable
> tr
> th
,
310 table
.wikitable
> tr
> td
,
311 table
.wikitable
> * > tr
> th
,
312 table
.wikitable
> * > tr
> td
,
315 /* Important is required to override any inline styles provided by editors */
316 background: #fff !important
; /* stylelint-disable-line declaration-no-important */
317 /* We need to also set color in case editors applied a light text color */
318 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
319 border: 1pt solid
#aaa;
320 padding: 0.4em 0.6em;
323 table
.wikitable
> tr
> th
,
324 table
.wikitable
> * > tr
> th
,
331 border: 1pt solid
#000;
332 border-collapse: collapse
;
341 list-style: none none
;
345 display: inline-block
;
348 border-left: 1pt solid
#aaa;
352 .catlinks li:first-child {
368 border-top: 1pt solid
#aaa;