luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible

Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
This commit is contained in:
Jan Breuer 2021-04-13 16:38:03 +02:00
parent 57839f183b
commit 2b5f78e893

View file

@ -167,7 +167,7 @@ body {
#mainmenu ul { #mainmenu ul {
padding: 0; padding: 0;
margin: 0 0 .5em .5em; margin: 0 0 0 .5em;
line-height: 1.5em; line-height: 1.5em;
} }
@ -189,6 +189,7 @@ body {
#mainmenu li.active > ul { #mainmenu li.active > ul {
max-height: 3000px; max-height: 3000px;
transition: max-height 1s ease-in-out; transition: max-height 1s ease-in-out;
margin: 0 0 .5em .5em;
} }
#mainmenu .l1 > li > a { #mainmenu .l1 > li > a {