From 5919a26949dd674cd927d75fcb42eaed1d6c0121 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 16 Sep 2021 14:39:06 -0700 Subject: [PATCH] Restore legacy new (red) link in legacy Vector to `#ba0000` & `#a55858` for visited Given we don't want to change the color in modern Vector we must rely on this ugly hack to change the link color. This can be revisited when Vector has been split into two skins which can use 'mediawiki.skin.variables.less'. Bug: T288739 Change-Id: I17401f897dce4e6adca9d05008899d28ff02517c --- .../skins.vector.styles.legacy/skin-legacy.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/resources/skins.vector.styles.legacy/skin-legacy.less b/resources/skins.vector.styles.legacy/skin-legacy.less index 4e7ae76b..133b0487 100644 --- a/resources/skins.vector.styles.legacy/skin-legacy.less +++ b/resources/skins.vector.styles.legacy/skin-legacy.less @@ -12,6 +12,23 @@ @import './components/SearchBox.less'; @import './components/Sidebar.less'; @import './components/UserLinks.less'; + + // Overrides + // Since these override declarations in ResourceLoaderSkinModule they require + // the `skin-vector-legacy` class for greater specificity. See T288739. + // FIXME: This can be considered for removal in future or can be repurposed as a skin + // variable when modern and legacy Vector use different skin keys. + .skin-vector-legacy { + a.new { + color: #ba0000; + } + + a.new:visited, + .vector-menu-tabs .new a, + .vector-menu-tabs .new a:visited { + color: #a55858; + } + } } @media print {