From: Jan Breuer Date: Tue, 13 Apr 2021 14:38:03 +0000 (+0200) Subject: luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2b5f78e8936b90029478bff0f70ec8333f352b7a;p=openwrt-luci.git luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible Signed-off-by: Jan Breuer --- 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 aa811ef6d3..1a276c4952 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 {