[OCaml] Mobile-friendly clone of cgit.
style make open directory headers sticky below the toolbar
When a directory is expanded, its summary/toggle becomes position:sticky at top:88px (just below the navbar+toolbar), so users can close it without scrolling back up. The background matches the page to prevent content bleeding through.
lib/static/styles.css
@@ -580,6 +580,13 @@
580
580
box-sizing: border-box;
581
581
}
582
582
583
Added:
details[open] > .tree-toggle {
584
Added:
position: sticky;
585
Added:
top: 88px;
586
Added:
z-index: 8;
587
Added:
background-color: #181818;
588
Added:
}
589
Added:
583
590
.tree-toggle::-webkit-details-marker {
584
591
display: none;
585
592
}