Documentation: html: adjust sidebar section titles styling

Now that section titles are displayed in the sidebar, make them bold to
have them stand out compared to the subsection titles, and decrease
their bottom margin to group them with their subsections.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
[jc: tweaked the sidebar CSS slightly]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260804-show-sections-in-sidebar-v2-2-a68d23bbc79d@bootlin.com>
This commit is contained in:
Antonin Godard
2026-08-04 17:59:35 +02:00
committed by Jonathan Corbet
parent 29d58caf95
commit 5bb9bdaf2c

View File

@@ -83,6 +83,13 @@ div.kerneltoc li.current ul { background-color: white; }
*/
section#the-linux-kernel-documentation p.caption { display: none; }
/*
* Make section titles bold in the sidebar, and decrease their bottom margin to
* group them with their subsections.
*/
div.sphinxsidebar p.caption { font-weight: bold; margin-bottom: 0; }
div.sphinxsidebar p.caption + ul { margin-top: 0; }
/*
* The CSS magic to toggle the contents on small screens.
*/