[OCaml] Mobile-friendly clone of cgit.
fix resolve CSS specificity issue preventing hamburger menu from opening
The .nav-toggle:checked ~ ul selector (specificity 0,0,2,1) was being overridden by the nav#top ul rule (specificity 0,1,0,1) in the mobile media query. Prefixed with nav#top to raise specificity to 0,1,2,1 so the checked state properly shows the menu.
lib/static/styles.css
@@ -361,7 +361,7 @@
361
361
margin-left: 0;
362
362
}
363
363
364
Removed:
.nav-toggle:checked ~ ul {
364
Added:
nav#top .nav-toggle:checked ~ ul {
365
365
display: flex;
366
366
}
367
367