mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 18:26:16 +00:00
4496292268
There's no reason to have this as separate style file in content.styles as common text styles are taken care of in 'text.less' and 'print/articles.less' for print. Moving contents rule there. Change-Id: Ie613d95488e9b5a814b6be8f0c856e9e92ab5aed
49 lines
725 B
Plaintext
49 lines
725 B
Plaintext
@import '../../../minerva.less/minerva.variables';
|
|
|
|
@media print {
|
|
.noprint,
|
|
.banner-container,
|
|
.header,
|
|
.pre-content,
|
|
.post-content {
|
|
display: none;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
page-break-after: avoid;
|
|
}
|
|
|
|
table,
|
|
figure,
|
|
img,
|
|
.lazy-image-placeholder {
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
@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';
|
|
}
|