From bb39d1139ee480629d4e4357880f065a37187320 Mon Sep 17 00:00:00 2001 From: Rushan Date: Tue, 20 Sep 2022 18:02:13 +0400 Subject: [PATCH] Fix active nav link (#566) **Issue:** Screenshot 2022-09-20 at 11 57 22 **Fix:** Screenshot 2022-09-20 at 11 57 26 --- source/_static/scss/includes/_nav.scss | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/_static/scss/includes/_nav.scss b/source/_static/scss/includes/_nav.scss index eef247a5..2038f561 100644 --- a/source/_static/scss/includes/_nav.scss +++ b/source/_static/scss/includes/_nav.scss @@ -18,15 +18,6 @@ position: relative; } -.nav__link--active { - & > span { - &:before { - opacity: 1; - transform: translateY(0); - } - } -} - .nav__link--download { border: 1px solid var(--nav-download-border-color); transition: background-color 300ms, color 300ms; @@ -180,6 +171,15 @@ transition: opacity 300ms, transform 300ms; } } + + &.nav__link--active { + & > span { + &:before { + opacity: 1; + transform: translateY(0); + } + } + } &:not(.nav__link--dropdown) { &:hover {