From 083a33675742149ccab4c87213bb835fbe7bef89 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 25 Jul 2023 15:32:29 +0200 Subject: [PATCH] Simplify the active state of sidebar menu items See https://www.woltlab.com/community/thread/300811-aktive-boxnavigation/ --- wcfsetup/install/files/style/layout/box.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/style/layout/box.scss b/wcfsetup/install/files/style/layout/box.scss index 35f652de73..cc6f1fb27f 100644 --- a/wcfsetup/install/files/style/layout/box.scss +++ b/wcfsetup/install/files/style/layout/box.scss @@ -343,7 +343,7 @@ grid-template-columns: repeat(var(--column-count), 1fr); > .box { - margin: 0 !important + margin: 0 !important; } } } @@ -571,8 +571,11 @@ .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 { @@ -599,7 +602,10 @@ } .boxesSidebarRight .box .boxMenu li.active > .boxMenuLink { + border-radius: var(--wcfBorderRadius); + margin-left: 10px; margin-right: 10px; + padding-left: 10px; padding-right: 10px; } -- 2.20.1