mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-21 01:52:49 +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
42 lines
867 B
Plaintext
42 lines
867 B
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
// todo: use .menu (or make a new BEM class). At time of writing, this would require additional
|
|
// changes to have sufficient specificity.
|
|
// stylelint-disable selector-max-id
|
|
#mw-mf-page-left {
|
|
ul {
|
|
// This is, like, the area for the disclaimer.
|
|
&.hlist {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
li {
|
|
background-color: transparent;
|
|
border: 0;
|
|
margin: 0;
|
|
font-size: 0.75em; // equals `12px` at base `font-size: 16px`
|
|
|
|
// T173507
|
|
&::after {
|
|
content: none;
|
|
}
|
|
|
|
a {
|
|
color: var( --color-progressive );
|
|
padding: 0.7em 12px; // equals `8.4px` via 0.75em assuming 16px base
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
span {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// stylelint-enable selector-max-id
|