mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
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:
committed by
Jonathan Corbet
parent
29d58caf95
commit
5bb9bdaf2c
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user