From 8a6225034c26f0154e4a094e1cbd123a99cb6176 Mon Sep 17 00:00:00 2001 From: protoclown Date: Mon, 26 Sep 2022 10:00:55 +0200 Subject: [PATCH] refactor: simplify logic with a unique variable --- extensions/tags/less/forum/TagTiles.less | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/extensions/tags/less/forum/TagTiles.less b/extensions/tags/less/forum/TagTiles.less index 31192ca1b..0930cfa88 100755 --- a/extensions/tags/less/forum/TagTiles.less +++ b/extensions/tags/less/forum/TagTiles.less @@ -65,22 +65,12 @@ &.colored { &.tag-light { &, a { - color: @text-color; - } - & when (@config-dark-mode = true) { - &, a { - color: @body-bg; - } + color: @text-on-light; } } &.tag-dark { &, a { - color: @body-bg; - } - & when (@config-dark-mode = true) { - &, a { - color: @text-color; - } + color: @text-on-dark; } } }