From a7f5205952c6b223779b944c3ac3368f6a8afd5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dersim=20=C3=96zdag?= Date: Sun, 31 Dec 2023 15:40:26 +0100 Subject: [PATCH 1/2] Update _navigation.scss um in mulitlevel-Naviagtion auch Parent zu markieren MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bei multilevel-Navigationen wird nur das direkte Parent-Element grĂ¼n hervorgehoben. Nicht aber das parent des parents. Dies wird hierdurch behoben. -> https://github.com/verdigado/sunflower/issues/451 --- sass/_navigation.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sass/_navigation.scss b/sass/_navigation.scss index 699c1de8..11ea5184 100644 --- a/sass/_navigation.scss +++ b/sass/_navigation.scss @@ -113,6 +113,11 @@ } } + .menu-item.menu-item-has-children:has(li.menu-item.current-menu-parent) { + > a.nav-link { + color: $primary; + } + .nav-link { color: $body-color; font-size: 18px; From ec063a6dff20054c08323d42c5d3b434730df9cd Mon Sep 17 00:00:00 2001 From: DMOEdetc Date: Mon, 1 Jan 2024 21:55:30 +0100 Subject: [PATCH 2/2] multilevel-NAviagtion fix --- sass/_navigation.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sass/_navigation.scss b/sass/_navigation.scss index 11ea5184..fd31308e 100644 --- a/sass/_navigation.scss +++ b/sass/_navigation.scss @@ -113,11 +113,6 @@ } } - .menu-item.menu-item-has-children:has(li.menu-item.current-menu-parent) { - > a.nav-link { - color: $primary; - } - .nav-link { color: $body-color; font-size: 18px; @@ -308,6 +303,15 @@ top: 100%; } + + &:has(li.menu-item.current-menu-parent) { + + > a.nav-link { + color: $primary; + } + + } + } } }