Skip to content

Commit f148b85

Browse files
committed
docs: add sidebar nav section separators to custom.css
1 parent b78a5ae commit f148b85

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/_static/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ html[data-theme="dark"] .highlight .p {
228228
color: #e6edf3;
229229
}
230230

231+
/* ── Sidebar nav section separators ─────────────────────────────────────── */
232+
/* All p.caption elements are flat siblings inside a single <nav>. */
233+
/* The ~ combinator targets every caption that follows the first one, */
234+
/* adding a hairline rule above it without an orphan border at the top. */
235+
#left-sidebar nav p.caption ~ p.caption {
236+
border-top: 1px solid #d0d7de;
237+
padding-top: 0.85rem;
238+
margin-top: 0.5rem;
239+
}
240+
241+
html[data-theme="dark"] #left-sidebar nav p.caption ~ p.caption {
242+
border-top-color: #30363d;
243+
}
244+
231245
/* ── List item spacing — Tailwind prose adds too much gap ────────────────── */
232246
/* Scoped to #content so sidebar/nav lists are unaffected */
233247
#content ul li,

0 commit comments

Comments
 (0)