From 6bd291c9f4929ce20a5ceb253895edaa35fd7462 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Wed, 25 Sep 2024 10:03:14 -0700 Subject: [PATCH] Fixes last modified colors Bug: T367892 Bug: T375586 Change-Id: I55a4f17cd3fe9ab9f1a81a28a88edc12eca01ce9 --- .../skins.minerva.base.styles/LastModifiedBar.less | 13 ++----------- .../content/tablet/common.less | 2 +- resources/skins.minerva.scripts/styles.less | 4 ++-- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/resources/skins.minerva.base.styles/LastModifiedBar.less b/resources/skins.minerva.base.styles/LastModifiedBar.less index 176e23a25..a91549f01 100644 --- a/resources/skins.minerva.base.styles/LastModifiedBar.less +++ b/resources/skins.minerva.base.styles/LastModifiedBar.less @@ -2,26 +2,17 @@ @import '../../minerva.less/minerva.mixins.less'; @import 'mediawiki.mixins.less'; -.last-modified-bar { +a.last-modified-bar { display: block; border-bottom: @border-subtle; background-color: @background-color-interactive; - color: @color-subtle; + color: @color-subtle !important; 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; } diff --git a/resources/skins.minerva.base.styles/content/tablet/common.less b/resources/skins.minerva.base.styles/content/tablet/common.less index 1d212518c..893bf06ee 100644 --- a/resources/skins.minerva.base.styles/content/tablet/common.less +++ b/resources/skins.minerva.base.styles/content/tablet/common.less @@ -95,7 +95,7 @@ A file for css that optimises the Minerva skin on larger devices. } } - .last-modified-bar { + a.last-modified-bar { background-color: transparent; padding-left: 0; padding-right: 0; diff --git a/resources/skins.minerva.scripts/styles.less b/resources/skins.minerva.scripts/styles.less index 9d1cdcadd..45988de1c 100644 --- a/resources/skins.minerva.scripts/styles.less +++ b/resources/skins.minerva.scripts/styles.less @@ -36,9 +36,9 @@ } // Last modified bar styles -.last-modified-bar.active { +a.last-modified-bar.active { background-color: @background-color-progressive; - color: @color-inverted-fixed; + color: @color-inverted-fixed !important; .last-modified-text-accent, a {