MediaWiki:Print.css: Difference between revisions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
@media print { | @media print { | ||
/* | /* hide common content blocks */ | ||
.mw-parser-output > p, | |||
.mw-parser-output > ul, | |||
.mw-parser-output > ol, | |||
.mw-parser-output > dl, | |||
.mw-parser-output > div, | |||
.mw-parser-output > h2, | |||
.mw-parser-output > h3, | |||
.mw-parser-output > h4, | |||
.mw-parser-output > h5, | |||
.mw-parser-output > h6, | |||
.mw-parser-output > table:not(.ic-infobox):not(.infobox), | |||
.mw-parser-output > figure { | |||
display: none !important; | |||
} | |||
/* show title */ | |||
#firstHeading { | |||
display: block !important; | |||
} | |||
/* show infobox */ | |||
table.ic-infobox, | |||
table.infobox { | |||
display: table !important; | |||
float: right; | |||
width: 35%; | |||
} | |||
} | |||
@media print { | |||
/* Kill print footer + metadata */ | |||
.printfooter, | |||
#footer, | |||
#catlinks, | |||
#mw-navigation, | #mw-navigation, | ||
#mw-head, | #mw-head, | ||
#mw-panel { | |||
display: none !important; | |||
} | |||
/* Remove the “Retrieved from” + edit metadata */ | |||
#mw-content-text + p, | |||
#mw-content-text ~ p { | |||
display: none !important; | |||
} | |||
/* Fix empty column / spacing */ | |||
#content, | |||
#bodyContent, | |||
#mw-content-text { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
} | |||
@media print { | |||
/* Hide chrome only */ | |||
#mw-navigation, | |||
#mw-panel, | #mw-panel, | ||
#footer, | #footer, | ||
.printfooter, | |||
. | |||
.toc, | .toc, | ||
. | .mw-editsection { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Title */ | ||
# | #firstHeading { | ||
display: block !important; | display: block !important; | ||
margin-bottom: 1cm; | |||
} | } | ||
/* Infobox | /* Infobox: NOT floated */ | ||
.infobox, | table.ic-infobox, | ||
. | table.infobox { | ||
float: | float: none !important; | ||
margin: 0 auto !important; /* centers it */ | |||
margin: 0 | width: 60% !important; | ||
} | } | ||
} | } | ||