From: Antonin Godard <antonin.godard@bootlin.com>
To: Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH v2 2/2] Documentation: html: adjust sidebar section titles styling
Date: Tue, 04 Aug 2026 17:59:35 +0200 [thread overview]
Message-ID: <20260804-show-sections-in-sidebar-v2-2-a68d23bbc79d@bootlin.com> (raw)
In-Reply-To: <20260804-show-sections-in-sidebar-v2-0-a68d23bbc79d@bootlin.com>
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>
---
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
next prev parent reply other threads:[~2026-08-04 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 15:59 [PATCH v2 0/2] Documentation: html: show sections in the sidebar Antonin Godard
2026-08-04 15:59 ` [PATCH v2 1/2] " Antonin Godard
2026-08-04 15:59 ` Antonin Godard [this message]
2026-08-04 16:49 ` [PATCH v2 2/2] Documentation: html: adjust sidebar section titles styling Randy Dunlap
2026-08-05 19:41 ` [PATCH v2 0/2] Documentation: html: show sections in the sidebar Jonathan Corbet
2026-08-06 8:57 ` Antonin Godard
2026-08-06 13:10 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260804-show-sections-in-sidebar-v2-2-a68d23bbc79d@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®