Simplify the active state of sidebar menu items
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jul 2023 13:32:29 +0000 (15:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jul 2023 13:32:29 +0000 (15:32 +0200)
See https://www.woltlab.com/community/thread/300811-aktive-boxnavigation/

wcfsetup/install/files/style/layout/box.scss

index 35f652de738fb6d7fce7cec7e7a6f615979cc62e..cc6f1fb27fdb2ec58c49bfdec85c6dae81f85e9c 100644 (file)
                        grid-template-columns: repeat(var(--column-count), 1fr);
 
                        > .box {
-                               margin: 0 !important
+                               margin: 0 !important;
                        }
                }
        }
 
 .boxesSidebarLeft .box .boxMenu {
        li.active > .boxMenuLink {
+               border-radius: var(--wcfBorderRadius);
                margin-left: 10px;
+               margin-right: 10px;
                padding-left: 10px;
+               padding-right: 10px;
        }
 
        .boxMenuDepth1 li.active > .boxMenuLink {
 }
 
 .boxesSidebarRight .box .boxMenu li.active > .boxMenuLink {
+       border-radius: var(--wcfBorderRadius);
+       margin-left: 10px;
        margin-right: 10px;
+       padding-left: 10px;
        padding-right: 10px;
 }