mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
59fd0cd5dc
All colors used in Minerva are converted from Less variables into CSS custom properties. A new file called CSSCustomProperties.less is created in the skins.minerva.base.styles module to store these custom properties and an ADR is provided on the rationale for dropping support for browsers that don't support custom properties. The new CSS custom properties follow Codex design token conventions where possible (and noted when not). Link colors are unique because their styles are defined in core, so in that case the Less variables values are set to custom properties. Those values are then fed back into MediaWiki core for core link styling. Also adds a temporary night-mode color palette under the .skin-nightmode-1 class on the <html> element. Bug: T356074 Change-Id: Ida1f14138f12bd3c600c264bde7b5100f9dbf4ff
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
@import '../../minerva.less/minerva.mixins.less';
|
|
|
|
// Only applies to mobile Minerva. For this reason these rules should likely be moved to
|
|
// `mobile.init.styles` either as a skin style or default style.
|
|
.lazy-image-placeholder {
|
|
background-color: var( --background-color-interactive );
|
|
|
|
// If the placeholder itself is inside an inline element do not use block
|
|
// See https://phabricator.wikimedia.org/T143558
|
|
// and https://phabricator.wikimedia.org/T144567
|
|
li &,
|
|
span & {
|
|
display: inline-block;
|
|
}
|
|
|
|
// The image placeholder for shouldn't show for no-js devices
|
|
.client-nojs & {
|
|
display: none;
|
|
}
|
|
|
|
// In order to avoid reflows placeholder needs to be inline-block
|
|
// Otherwise display block will always take up the full line
|
|
// instead of allowing text before and after
|
|
// see T146298
|
|
display: inline-block;
|
|
// See T199351#6370886
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.content {
|
|
a > .lazy-image-placeholder {
|
|
// make sure that images in articles don't cause a horizontal scrollbar
|
|
// on small screens
|
|
max-width: 100% !important;
|
|
}
|
|
}
|
|
|
|
@media print {
|
|
.lazy-image-placeholder {
|
|
page-break-inside: avoid;
|
|
}
|
|
}
|