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 */
125 background-color: #f9f9f9;
126 border: 1pt solid
#aaa;
131 /* Separate columns for tocnumber and toctext */
137 /* Space between the columns for tocnumber and toctext */
140 padding-right: 0.5em;
144 .mw-content-ltr .tocnumber {
146 padding-right: 0.5em;
150 .mw-content-rtl .tocnumber {
159 border-top: 1pt solid
#aaa;
167 background: none
!important
; /* stylelint-disable-line declaration-no-important */
168 padding: 0 !important
; /* stylelint-disable-line declaration-no-important */
171 /* Expand URLs for printing */
172 .mw-body-content a
.external
.text:after
,
173 .mw-body-content a.external.autonumber:after {
174 content: ' (' attr
( href
) ')';
175 word-break: break-all
;
176 word-wrap: break-word
;
179 /* Expand protocol-relative URLs for printing */
180 .mw-body-content a
.external
.text
[href^
='//']:after
,
181 .mw-body-content a.external.autonumber[href^='//']:after {
182 content: ' (https:' attr
( href
) ')';
189 /* IE 6 & 7 don't understand `inherit` */
190 color: #000 !important
; /* stylelint-disable-line declaration-no-important */
191 text-decoration: none
!important
; /* stylelint-disable-line declaration-no-important */
192 /* Modern browser will apply this, IE 6 & 7 ignore the unknown */
193 color: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
194 text-decoration: inherit
!important
; /* stylelint-disable-line declaration-block-no-duplicate-properties, declaration-no-important */
205 margin: 0.5em 0 0.8em 1.4em;
217 margin: 0.5em 1.4em 0.8em 0;
232 background-color: transparent
;
236 margin-bottom: 0.8em;
240 background-color: #fff;
241 border: 1pt solid
#ccc;
245 /* new block formatting context,
246 * to clear background from floating content */
251 border: 1pt solid
#ccc;
266 margin: 0.5em 0 0.8em 1.4em;
273 margin: 0.5em 1.4em 0.8em 0;
277 border: 1pt solid
#ddd;
282 * As on shared.css but with white background.
288 border: 1pt solid
#aaa;
289 border-collapse: collapse
;
292 table
.wikitable
> tr
> th
,
293 table
.wikitable
> tr
> td
,
294 table
.wikitable
> * > tr
> th
,
295 table
.wikitable
> * > tr
> td
,
298 border: 1pt solid
#aaa;
302 table
.wikitable
> tr
> th
,
303 table
.wikitable
> * > tr
> th
,
310 table
.wikitable
> caption
,
311 .mw_metadata caption {
317 border: 1pt solid
#000;
318 border-collapse: collapse
;
327 list-style: none none
;
331 display: inline-block
;
334 border-left: 1pt solid
#aaa;
338 .catlinks li:first-child {