[PATCH v2 2/2] Documentation: html: adjust sidebar section titles styling

Antonin Godard <[email protected]> Tue, 04 Aug 2026 17:59:35 +0200
Newsgroups gmane.linux.documentation,gmane.linux.kernel
Message-ID <[email protected]>
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 <[email protected]>
---
 Documentation/sphinx-static/custom.css | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
index 0576d4fcb2a3..40e4ced963dc 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -81,6 +81,12 @@ 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: -10px; }
+
 /*
  * The CSS magic to toggle the contents on small screens.
  */

-- 
2.55.0