Merge pull request #3122 from ehuss/sidebar-heading-spacing

Improve spacing in sidebar section headings
This commit is contained in:
Eric Huss 2026-05-19 22:25:28 +00:00 committed by GitHub
commit c79580ad71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -624,6 +624,15 @@ html:not(.js) .sidebar-resize-handle {
margin-block-start: 0.6em;
}
.chapter li.header-item {
/* Make sure there is plenty of spacing between sections so they don't blend in
with each other. */
margin-block-end: 0.5em;
/* Avoid too much spacing between lines when section heading word wraps so that
it can be distinguished between successive headings. */
line-height: 1.5em;
}
/* When expanded, rotate the chevron to point down. */
.chapter li.expanded > span > .chapter-fold-toggle div {
transform: rotate(90deg);