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
;
134 /* Prevent citations and subscripts from interfering with the line-height */
141 list-style-type: square
;
145 * MediaWiki-specific elements
148 width: 100% !important
; /* stylelint-disable-line declaration-no-important */
149 min-width: 0 !important
; /* stylelint-disable-line declaration-no-important */
155 border: 0 !important
; /* stylelint-disable-line declaration-no-important */
156 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
157 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
162 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
165 #column-content .mw-body
{
167 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
172 background-color: #f9f9f9;
173 border: 1pt solid
#aaa;
178 /* Separate columns for `.tocnumber` and `.toctext` */
184 /* Space between those columns */
187 padding-right: 0.5em;
191 .mw-content-ltr .tocnumber {
193 padding-right: 0.5em;
197 .mw-content-rtl .tocnumber {
203 * Floating divs (and thumbnails)
225 margin: 0.5em 1.4em 1.3em 0;
230 margin: 0.5em 0 1.3em 1.4em;
236 margin: 0 0 0.5em 0.5em;
243 margin: 0 0.5em 0.5em 0;
260 background-color: transparent
;
269 background-color: #fff;
276 /* new block formatting context,
277 * to clear background from floating content */
289 border: 1pt solid
#ddd;
295 /* Compare `table.wikitable` in shared.css */
300 border: 1pt solid
#aaa;
301 border-collapse: collapse
;
305 table
.wikitable
> caption
,
306 .mw_metadata caption {
311 table
.wikitable
> tr
> th
,
312 table
.wikitable
> tr
> td
,
313 table
.wikitable
> * > tr
> th
,
314 table
.wikitable
> * > tr
> td
,
317 /* Important is required to override any inline styles provided by editors */
318 background: #fff !important
; /* stylelint-disable-line declaration-no-important */
319 /* We need to also set color in case editors applied a light text color */
320 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
321 border: 1pt solid
#aaa;
322 padding: 0.4em 0.6em;
325 table
.wikitable
> tr
> th
,
326 table
.wikitable
> * > tr
> th
,
333 border: 1pt solid
#000;
334 border-collapse: collapse
;
343 list-style: none none
;
347 display: inline-block
;
350 border-left: 1pt solid
#aaa;
354 .catlinks li:first-child {
370 border-top: 1pt solid
#aaa;