[PATCH v2 2/2] Documentation: html: adjust sidebar section titles styling
From: Antonin Godard
Date: Tue Aug 04 2026 - 12:08:03 EST
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@xxxxxxxxxxx>
---
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