Improved visuals for menus w/o active items
authorAlexander Ebert <ebert@woltlab.com>
Wed, 13 Jul 2016 12:27:55 +0000 (14:27 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 13 Jul 2016 12:28:01 +0000 (14:28 +0200)
wcfsetup/install/files/style/layout/box.scss

index 869e12119ca798b18118c0cd5905111289b13473..542450eb11518f200253caa0e44e913806e0f091 100644 (file)
                                        }
                                }
                                
-                               &: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;
+                                       }
                                }
                        }
                }