[OCaml] Mobile-friendly clone of cgit.
fix rationalize directory tree borders and spacing
Nested tree items no longer inherit the full box border from the generic div#main ul li rule. Instead they use a subtle top-only separator (#252525) between siblings, with no border on the first child. Removed the border-left approach on .tree-nested li which was causing visible border stacking/thickening at deeper nesting levels. Indentation is now handled purely by padding-left on the ul container. Fixed a }} typo in the CSS. The result is cleaner, uniform rows at all nesting depths without visual artifacts.
lib/static/styles.css
@@ -179,6 +179,15 @@
179
179
border: 1px solid #303030;
180
180
}
181
181
182
Added:
div#main .tree-nested li {
183
Added:
border: none;
184
Added:
border-top: 1px solid #252525;
185
Added:
}
186
Added:
187
Added:
div#main .tree-nested li:first-child {
188
Added:
border-top: none;
189
Added:
}
190
Added:
182
191
div#main .breadcrumbs li {
183
192
border: none;
184
193
}
@@ -614,16 +623,17 @@
614
623
background-color: white;
615
624
color: black;
616
625
text-decoration: underline;
617
Removed:
}}
626
Added:
}
618
627
619
628
.tree-nested {
620
629
padding-left: 2.1em;
621
630
list-style: none;
622
631
margin: 0;
632
Added:
padding-top: 0;
633
Added:
padding-bottom: 0;
623
634
}
624
635
625
636
.tree-nested li {
626
Removed:
border-left: 2px solid #3a3a3a;
627
637
padding-left: 0.75em;
628
638
}
629
639