Merge pull request #4985 from j123b567/feature_luci-theme-openwrt-2020_mainmenu-submenu-tweek

luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible
This commit is contained in:
Jo-Philipp Wich 2021-06-02 08:21:20 +02:00 committed by GitHub
commit 064e5cca96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {