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
22 .ns-0
.mw-redirectedfrom
,
26 /* Deprecated, changed in core */
37 * Generic HTML elements
54 page-break-after: avoid
;
62 list-style-type: square
;
77 border: 1pt dashed
#000;
81 word-wrap: break-word
;
90 page-break-inside: avoid
;
95 vertical-align: middle
;
99 * MediaWiki-specific elements
102 width: 100% !important
; /* stylelint-disable-line declaration-no-important */
103 min-width: 0 !important
; /* stylelint-disable-line declaration-no-important */
109 border: 0 !important
; /* stylelint-disable-line declaration-no-important */
110 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
111 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
116 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
119 #column-content .mw-body
{
121 margin: 0 !important
; /* stylelint-disable-line declaration-no-important */
126 background-color: #f9f9f9;
127 border: 1pt solid
#aaa;
132 /* Separate columns for tocnumber and toctext */
138 /* Space between the columns for tocnumber and toctext */
141 padding-right: 0.5em;
145 .mw-content-ltr .tocnumber {
147 padding-right: 0.5em;
151 .mw-content-rtl .tocnumber {
160 border-top: 1pt solid
#aaa;
168 background: none
!important
; /* stylelint-disable-line declaration-no-important */
169 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
172 /* Expand URLs for printing */
173 .mw-body-content a
.external
.text:after
,
174 .mw-body-content a.external.autonumber:after {
175 content: ' (' attr
( href
) ')';
176 word-break: break-all
;
177 word-wrap: break-word
;
180 /* Expand protocol-relative URLs for printing */
181 .mw-body-content a
.external
.text
[href^
='//']:after
,
182 .mw-body-content a.external.autonumber[href^='//']:after {
183 content: ' (https:' attr
( href
) ')';
190 /* IE 6 & 7 don't understand `inherit` */
191 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
192 text-decoration: none
!important
; /* stylelint-disable-line declaration-no-important */
193 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
194 color: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
195 text-decoration: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
206 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;
267 margin: 0.5em 0 0.8em 1.4em;
274 margin: 0.5em 1.4em 0.8em 0;
278 border: 1pt solid
#ddd;
283 * As on shared.css but with white background.
289 border: 1pt solid
#aaa;
290 border-collapse: collapse
;
293 table
.wikitable
> tr
> th
,
294 table
.wikitable
> tr
> td
,
295 table
.wikitable
> * > tr
> th
,
296 table
.wikitable
> * > tr
> td
,
299 border: 1pt solid
#aaa;
303 table
.wikitable
> tr
> th
,
304 table
.wikitable
> * > tr
> th
,
311 table
.wikitable
> caption
,
312 .mw_metadata caption {
318 border: 1pt solid
#000;
319 border-collapse: collapse
;
328 list-style: none none
;
332 display: inline-block
;
335 border-left: 1pt solid
#aaa;
339 .catlinks li:first-child {