Re: [PATCH v2 2/2] Documentation: html: adjust sidebar section titles styling
Randy Dunlap <[email protected]> Tue, 4 Aug 2026 09:49:56 -0700
| Newsgroups | gmane.linux.kernel,gmane.linux.documentation |
|---|---|
| Message-ID | <[email protected]> |
On 8/4/26 8:59 AM, Antonin Godard wrote: > 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]> LGTM. Thanks. Tested-by: Randy Dunlap <[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. > */ > -- ~Randy