From 6a903a22c52a9323a9fd113e1999db3821ca52ca Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 13 Jul 2016 14:27:55 +0200 Subject: [PATCH] Improved visuals for menus w/o active items --- wcfsetup/install/files/style/layout/box.scss | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/style/layout/box.scss b/wcfsetup/install/files/style/layout/box.scss index 869e12119c..542450eb11 100644 --- a/wcfsetup/install/files/style/layout/box.scss +++ b/wcfsetup/install/files/style/layout/box.scss @@ -413,8 +413,24 @@ } } - &:not(.open) > :not(.active) { - display: none; + &:not(.open) { + :first-child ~ :not(.active) { + display: block; + pointer-events: none; + + > a::after { + content: $fa-var-caret-down; + font-family: FontAwesome; + } + } + + > .active ~ li { + display: none !important; + } + + li:not(.active) { + display: none; + } } } } -- 2.20.1