menu: fix state for alwaysopen=false + collapsibleMenu=false #498

This commit is contained in:
Sören Weber 2023-03-03 20:27:47 +01:00
parent dea3da777d
commit eaa4580500
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1756,6 +1756,18 @@ article ul li input[type="checkbox"]:checked::before {
width: 100%; width: 100%;
} }
/* menu states for not(.collapsible-menu) */
#sidebar ul ul {
display: none;
}
#sidebar ul > li.parent > ul,
#sidebar ul > li.active > ul,
#sidebar ul > li.alwaysopen > ul {
display: block;
}
/* closed menu */ /* closed menu */
#sidebar ul.collapsible-menu > li > input + label ~ ul { #sidebar ul.collapsible-menu > li > input + label ~ ul {