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 article sections, not the whole page */ | ||
#mw-content-text > * { | |||
display: none !important; | display: none !important; | ||
} | } | ||
| Line 9: | Line 9: | ||
#firstHeading { | #firstHeading { | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* Show infobox wherever MW places it */ | /* Show infobox (wherever MW places it) */ | ||
table.ic-infobox, | table.ic-infobox, | ||
table.infobox { | table.infobox { | ||
| Line 20: | Line 19: | ||
} | } | ||
/* Hide UI + print junk */ | |||
#mw-navigation, | |||
.mw-footer, | |||
.printfooter, | |||
.toc, | |||
.mw-editsection { | |||
display: none !important; | |||
} | |||
} | } | ||
Revision as of 01:35, 25 December 2025
@media print {
/* Hide article sections, not the whole page */
#mw-content-text > * {
display: none !important;
}
/* Show title */
#firstHeading {
display: block !important;
}
/* Show infobox (wherever MW places it) */
table.ic-infobox,
table.infobox {
display: table !important;
float: right !important;
width: 35% !important;
}
/* Hide UI + print junk */
#mw-navigation,
.mw-footer,
.printfooter,
.toc,
.mw-editsection {
display: none !important;
}
}