mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/print/styles.less
Jon Robson a923e702d5 Enable core interface styles on mobile
Per ResourceLoaderSkinModule disabling these styles is not
recommended. Enabling them is also now needed to support IP masking.

Bug: T325768
Change-Id: Ia7f2eb6ba902ebfc9364147ec0692eaae124469e
2023-03-22 20:34:24 +00:00

60 lines
1,005 B
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;
}
h1,
h2,
h3,
h4,
h5,
h6 {
page-break-after: avoid;
}
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-device-width: @width-breakpoint-tablet ) {
// 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';
}