From e55a3858588e97020d9687cc4c8db5ff61cbdef8 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Thu, 8 Feb 2018 11:06:23 +0300 Subject: [PATCH] Navigation: Hide the children of the expanded items when the navbar collapsed --- .../nav-collapse/nav-vertical-collapse.component.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss index f3a17998..860565ee 100644 --- a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss +++ b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.scss @@ -1,6 +1,7 @@ :host { .folded:not(.folded-open) & { + .nav-link { > span { @@ -8,6 +9,13 @@ transition: opacity 200ms ease; } } + + &.open { + + .children { + display: none !important; + } + } } .nav-link {