From 87daaa24c8f1a1ee49bf1307bf05f53fad2f3741 Mon Sep 17 00:00:00 2001 From: Jan Breuer Date: Tue, 13 Apr 2021 16:38:03 +0200 Subject: [PATCH] luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible Signed-off-by: Jan Breuer (cherry picked from commit 2b5f78e8936b90029478bff0f70ec8333f352b7a) --- .../htdocs/luci-static/openwrt2020/cascade.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css index cf83e80602..5e550e48d0 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css @@ -167,7 +167,7 @@ body { #mainmenu ul { padding: 0; - margin: 0 0 .5em .5em; + margin: 0 0 0 .5em; line-height: 1.5em; } @@ -189,6 +189,7 @@ body { #mainmenu li.active > ul { max-height: 3000px; transition: max-height 1s ease-in-out; + margin: 0 0 .5em .5em; } #mainmenu .l1 > li > a { -- 2.30.2