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 */
26 /* Various content ids, in alphabetical order */
31 /* Deprecated, changed in core */
42 * Generic HTML elements
53 background: none
!important
; /* stylelint-disable-line declaration-no-important */
54 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
61 /* IE 6 & 7 don't understand `inherit` */
62 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
63 text-decoration: none
!important
; /* stylelint-disable-line declaration-no-important */
64 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
65 color: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
66 text-decoration: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
69 /* Expand URLs for printing */
70 .mw-parser-output a
.external
.text:after
,
71 .mw-parser-output a.external.autonumber:after {
72 content: ' (' attr
( href
) ')';
73 word-break: break-all
;
74 word-wrap: break-word
;
77 /* Expand protocol-relative URLs for printing */
78 .mw-parser-output a
.external
.text
[ href^
='//' ]:after
,
79 .mw-parser-output a.external.autonumber[ href^='//' ]:after {
80 content: ' (https:' attr
( href
) ')';
95 page-break-after: avoid
;
96 page-break-before: avoid
;
112 page-break-inside: avoid
;
117 vertical-align: middle
;
124 border: 1pt dashed
#000;
127 white-space: pre-wrap
;
128 word-wrap: break-word
;
131 /* Prevent citations and subscripts from interfering with the line-height */
138 list-style-type: square
;
142 * MediaWiki-specific elements
145 width: 100% !important
; /* stylelint-disable-line declaration-no-important */
146 min-width: 0 !important
; /* stylelint-disable-line declaration-no-important */
152 border: 0 !important
; /* stylelint-disable-line declaration-no-important */
153 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
154 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
159 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
162 #column-content .mw-body
{
164 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
168 background-color: #f9f9f9;
169 border: 1pt solid
#aaa;
174 /* Separate columns for `.tocnumber` and `.toctext` */
180 /* Space between those columns */
183 padding-right: 0.5em;
187 .mw-content-ltr .tocnumber {
189 padding-right: 0.5em;
193 .mw-content-rtl .tocnumber {
199 * Floating divs (and thumbnails)
221 margin: 0.5em 1.4em 1.3em 0;
226 margin: 0.5em 0 1.3em 1.4em;
232 margin: 0 0 0.5em 0.5em;
239 margin: 0 0.5em 0.5em 0;
251 background-color: transparent
;
260 background-color: #fff;
267 /* new block formatting context,
268 * to clear background from floating content */
280 border: 1pt solid
#ddd;
286 /* Compare `.wikitable` in shared.css */
291 border: 1pt solid
#aaa;
292 border-collapse: collapse
;
296 .wikitable
> caption
,
297 .mw_metadata caption {
302 .wikitable
> tr
> th
,
303 .wikitable
> tr
> td
,
304 .wikitable
> * > tr
> th
,
305 .wikitable
> * > tr
> td
,
308 /* Important is required to override any inline styles provided by editors */
309 background: #fff !important
; /* stylelint-disable-line declaration-no-important */
310 /* We need to also set color in case editors applied a light text color */
311 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
312 border: 1pt solid
#aaa;
313 padding: 0.4em 0.6em;
316 .wikitable
> tr
> th
,
317 .wikitable
> * > tr
> th
,
324 border: 1pt solid
#000;
325 border-collapse: collapse
;
334 list-style: none none
;
338 display: inline-block
;
341 border-left: 1pt solid
#aaa;
345 .catlinks li:first-child {
361 border-top: 1pt solid
#aaa;