MediaWiki:Print.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
@media print { | @media print { | ||
/* Hide | /* Hide MediaWiki chrome */ | ||
#mw- | #mw-navigation, | ||
#mw-head, | |||
#mw-panel, | |||
#footer, | |||
#catlinks, | |||
.mw-editsection, | |||
.mw-editsection-like, | |||
.mw-indicators, | |||
.toc, | |||
.printfooter { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Ensure content is visible */ | ||
# | #mw-content-text { | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* | /* Infobox prints normally */ | ||
.infobox, | |||
.ic-infobox { | |||
float: right; | |||
width: 260px; | |||
margin: 0 0 1em 1em; | |||
page-break-inside: avoid; | |||
} | } | ||
/* | /* Avoid page breaks inside key blocks */ | ||
h1, h2, h3, | |||
table, | |||
figure { | |||
page-break-inside: avoid; | |||
} | } | ||
} | } | ||
Revision as of 01:39, 25 December 2025
@media print {
/* Hide MediaWiki chrome */
#mw-navigation,
#mw-head,
#mw-panel,
#footer,
#catlinks,
.mw-editsection,
.mw-editsection-like,
.mw-indicators,
.toc,
.printfooter {
display: none !important;
}
/* Ensure content is visible */
#mw-content-text {
display: block !important;
}
/* Infobox prints normally */
.infobox,
.ic-infobox {
float: right;
width: 260px;
margin: 0 0 1em 1em;
page-break-inside: avoid;
}
/* Avoid page breaks inside key blocks */
h1, h2, h3,
table,
figure {
page-break-inside: avoid;
}
}