mediawiki-skins-MinervaNeue/resources/skins.minerva.styles/print/styles.less
lmora 9b48993728 Reduce ResourceLoader modules
Delete the following deprecated modules:
skins.minerva.base.styles, skins.minerva.mainMenu.styles,
skins.minerva.icons.wikimedia and skins.minerva.mainMenu.icons
And reorganize files for skins.minerva.styles

Bug: T266361
Change-Id: I35b1d9461edd63a1a5d488a2fdc6939547fd29ad
2024-12-04 15:44:17 -06:00

62 lines
1 KiB
Plaintext

@import '../../../minerva.less/minerva.variables.less';
@import '../../../minerva.less/minerva.mixins.less';
@media print {
.noprint,
.banner-container,
.minerva-header,
.minerva-footer,
.minerva__tab-container,
.page-actions-menu,
.post-content {
display: none;
}
.printfooter {
padding-top: 1em;
}
.mw-heading,
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
}
.mw-heading,
table,
figure,
img {
page-break-inside: avoid;
}
img {
max-width: 100%;
// Disable lazy loading transition animation for print media (T220668) so they display.
&.image-lazy-loaded {
animation: none !important;
}
}
}
@media print and ( max-width: @max-width-breakpoint-mobile ) {
// Chrome: override the default margins and reveal the footer
// Experimental technology (see https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size)
@page {
margin: 50px 0;
}
html {
padding: 0 50px;
}
@import 'header.less';
@import 'article.less';
@import 'references.less';
@import 'footer.less';
}