mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-18 16:51:05 +00:00
6f98cc6460
Remove direct usage of CSS variables in Minerva, and replace them with codex design tokens again. Document this decision in the original ADR Note: there are still a small number of CSS variables in use, including most notably the --color-link-red fix, which broke when I removed it, but this change takes care of all the ones that could be easily replaced Bug: T363743 Change-Id: I7d3a9dceb908167078987de1733774c8bd4bea2f
50 lines
1.2 KiB
Plaintext
50 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: @background-color-interactive;
|
|
color: @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;
|
|
|
|
// .last-modified-bar is itself a link.
|
|
&:visited,
|
|
a,
|
|
a:visited,
|
|
.last-modified-text-accent {
|
|
// Note: This can be progressively enhanced in skins.minerva.scripts to provide 'recently edited' state.
|
|
color: @color-subtle;
|
|
}
|
|
|
|
.minerva-icon {
|
|
background-color: @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: @max-width-breakpoint-mobile ) {
|
|
.last-modified-bar__text {
|
|
padding-right: 1em;
|
|
}
|
|
}
|