From 917114dfa82e955f4f7b8c65cc60cb604f1eae27 Mon Sep 17 00:00:00 2001 From: Jeder Date: Wed, 13 Sep 2023 13:53:20 +0200 Subject: [PATCH] Change text color only of active navbar element --- packages/client/src/ui/_common_/navbar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index a8ffd4a44..5409fb824 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -423,9 +423,6 @@ function more(ev: MouseEvent) { &:hover, &:focus-within, &.active { - color: var(--accent); - transition: all 0.4s ease; - &:before { content: ""; display: block; @@ -449,6 +446,9 @@ function more(ev: MouseEvent) { } &.active { + color: var(--accent); + transition: all 0.4s ease; + &:before { background: var(--accentedBg); }