MediaWiki:Print.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (5 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; | display: none !important; | ||
} | } | ||
/* | /* show title */ | ||
#firstHeading { | #firstHeading { | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* | /* show infobox */ | ||
table.ic-infobox, | table.ic-infobox, | ||
table.infobox { | table.infobox { | ||
display: table !important; | display: table !important; | ||
float: right | float: right; | ||
width: 35% | 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 { | |||
/* Hide chrome only */ | |||
#mw-navigation, | #mw-navigation, | ||
#mw-panel, | |||
#footer, | |||
.printfooter, | .printfooter, | ||
.toc, | .toc, | ||
| Line 27: | Line 70: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Title */ | |||
#firstHeading { | |||
display: block !important; | |||
margin-bottom: 1cm; | |||
} | |||
/* Infobox: NOT floated */ | |||
table.ic-infobox, | |||
table.infobox { | |||
float: none !important; | |||
margin: 0 auto !important; /* centers it */ | |||
width: 60% !important; | |||
} | |||
} | } | ||
Latest revision as of 01:46, 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 {
/* Hide chrome only */
#mw-navigation,
#mw-panel,
#footer,
.printfooter,
.toc,
.mw-editsection {
display: none !important;
}
/* Title */
#firstHeading {
display: block !important;
margin-bottom: 1cm;
}
/* Infobox: NOT floated */
table.ic-infobox,
table.infobox {
float: none !important;
margin: 0 auto !important; /* centers it */
width: 60% !important;
}
}