luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible
authorJan Breuer <jan.breuer@jaybee.cz>
Tue, 13 Apr 2021 14:38:03 +0000 (16:38 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 12 Jun 2021 17:21:24 +0000 (19:21 +0200)
Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
(cherry picked from commit 2b5f78e8936b90029478bff0f70ec8333f352b7a)

themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css

index cf83e806024fc19ed2b131f336188d40e8e88f11..5e550e48d0bbd3dafec80465226fb22ec05ad84c 100644 (file)
@@ -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 {