mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 18:29:50 +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
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
@import '../../minerva.less/minerva.mixins.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
.last-modified-bar {
|
|
display: block;
|
|
border-bottom: @border-subtle;
|
|
background-color: var( --background-color-interactive );
|
|
color: var( --color-subtle );
|
|
padding-top: @icon-padding-medium;
|
|
padding-bottom: @icon-padding-medium;
|
|
font-size: @font-size-minerva-small;
|
|
transition-property: background-color, color;
|
|
transition-duration: @transition-duration-medium;
|
|
|
|
a,
|
|
a:visited,
|
|
.last-modified-text-accent {
|
|
// Note: This can be progressively enhanced in skins.minerva.scripts to provide 'recently edited' state.
|
|
color: var( --color-subtle );
|
|
}
|
|
|
|
.minerva-icon {
|
|
background-color: var( --color-subtle );
|
|
}
|
|
}
|
|
|
|
.last-modified-bar__content {
|
|
align-items: center;
|
|
.flex-display();
|
|
}
|
|
|
|
.last-modified-bar__text {
|
|
@end-padding: @width-icon-gutter + @width-icon-gutter + @size-icon;
|
|
padding-right: @end-padding;
|
|
padding-left: @icon-padding-medium;
|
|
line-height: @line-height-content;
|
|
vertical-align: middle;
|
|
flex-grow: 1;
|
|
.text-overflow( @visible: false );
|
|
}
|
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
.last-modified-bar__text {
|
|
padding-right: 1em;
|
|
}
|
|
}
|