MediaWiki:Print.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 55: | Line 55: | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | |||
} | |||
@media print { | |||
/* Collapse the article column */ | |||
#content, | |||
#bodyContent, | |||
#mw-content-text, | |||
.mw-parser-output { | |||
width: auto !important; | |||
max-width: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* Let the infobox sit closer to the left */ | |||
table.ic-infobox, | |||
table.infobox { | |||
float: right; | |||
margin-left: 0.5cm; | |||
} | } | ||
} | } | ||
Revision as of 01:44, 25 December 2025
@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-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 {
/* Collapse the article column */
#content,
#bodyContent,
#mw-content-text,
.mw-parser-output {
width: auto !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* Let the infobox sit closer to the left */
table.ic-infobox,
table.infobox {
float: right;
margin-left: 0.5cm;
}
}