[OCaml] Mobile-friendly clone of cgit.
fix tree-toggle sticks below navbar only, add toolbar offset contextually
The tree-toggle sticky top was using calc(nav + toolbar) everywhere, which caused directories on the root '/' page (no toolbar) to stick too low. Now: - Default: top: var(--nav-height) - When preceded by a .toolbar sibling: top: calc(nav + toolbar)
lib/static/styles.css
@@ -655,9 +655,14 @@
655
655
656
656
details[open] > .tree-toggle {
657
657
position: sticky;
658
Removed:
top: calc(var(--nav-height) + var(--toolbar-height));
658
Added:
top: var(--nav-height);
659
659
z-index: 8;
660
660
background-color: #181818;
661
Added:
}
662
Added:
663
Added:
.toolbar ~ * details[open] > .tree-toggle,
664
Added:
.toolbar ~ details[open] > .tree-toggle {
665
Added:
top: calc(var(--nav-height) + var(--toolbar-height));
661
666
}
662
667
663
668
.tree-toggle::-webkit-details-marker {