mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-21 10:03:08 +00:00
97aed1ad86
Add CSS to support new HTML markup for headings with section edit links, which will soon be used by Parsoid page views (T269630) and by the old parser (T13555). Keep the old rules to provide temporary support for cached page HTML and emergency opt-outs, as well as permanent support for plain headings on special pages and in Parsoid edit mode HTML. See documentation page for further explanation: https://www.mediawiki.org/wiki/Heading_HTML_changes Depends-On: I44587461582d648b56ef0c9c7ae0c322895c69c2 Bug: T13555 Bug: T269630 Change-Id: Ib97d034ab533124f06441e788c8608fb274dccf0
62 lines
1 KiB
Plaintext
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-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';
|
|
}
|