[OCaml] Mobile-friendly clone of cgit.
fix make collapsed folder toggles sticky like open ones
Remove the [open] qualifier from the sticky .tree-toggle rule so both expanded and collapsed directory entries stick to the top when scrolling through the file tree.
lib/static/styles.css
@@ -777,15 +777,15 @@
777
777
gap: 0;
778
778
}
779
779
780
Removed:
details[open] > .tree-toggle {
780
Added:
details > .tree-toggle {
781
781
position: sticky;
782
782
top: var(--nav-height);
783
783
z-index: 8;
784
784
background-color: #181818;
785
785
}
786
786
787
Removed:
#repositories details[open] > .tree-toggle,
788
Removed:
.repo-section details[open] > .tree-toggle {
787
Added:
#repositories details > .tree-toggle,
788
Added:
.repo-section details > .tree-toggle {
789
789
position: static;
790
790
z-index: auto;
791
791
background-color: transparent;