summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2023-10-27 11:18:20 +0300
committerJonathan Corbet <corbet@lwn.net>2023-11-17 23:05:26 +0300
commiteed94315555a441028238a4d05c6f86997d9e68e (patch)
treef0c902313073d9b3344f2e3d87b81e880ba51d86
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
downloadlinux-eed94315555a441028238a4d05c6f86997d9e68e.tar.xz
docs: style toctree captions as headings
The rtd theme already styles toctree captions as headings, but the alabaster theme doesn't. Add this in. Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231027081830.195056-2-vegard.nossum@oracle.com
-rw-r--r--Documentation/sphinx-static/custom.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
index 084a884f6fb7..c7439349dda6 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -8,6 +8,9 @@ div.body h1 { font-size: 180%; }
div.body h2 { font-size: 150%; }
div.body h3 { font-size: 130%; }
+/* toctree captions are styled like h2 */
+div.toctree-wrapper p.caption[role=heading] { font-size: 150%; }
+
/* Tighten up the layout slightly */
div.body { padding: 0 15px 0 10px; }
div.sphinxsidebarwrapper { padding: 1em 0.4em; }