Skip to contentSkip to conversation

docs: Change <h4> style to use smaller font size than <h3>

PATCH In review Donald Hunter 2 participants 2 messages Dec 12, 2023 – Dec 15, 2023 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Change <h4> style to use smaller font size than <h3>

The docs currently have <h3> and <h4> set to the same font size which makes headings hard to distinguish. <h1> to <h3> already have entries in sphinx-static/custom.css to shrink their size a bit from the alabaster theme.

Add <h4> to custom.css and set it to be smaller than <h3>.

---
 Documentation/sphinx-static/custom.css | 1 +
 1 file changed, 1 insertion(+)
Documentation/sphinx-static/custom.css +1 -0
index 084a884f6fb7..a0ae9e90eeb6 100644
@@ -7,6 +7,7 @@
 div.body h1 { font-size: 180%; }
 div.body h2 { font-size: 150%; }
 div.body h3 { font-size: 130%; }
+div.body h4 { font-size: 110%; }
 
 /* Tighten up the layout slightly */
 div.body { padding: 0 15px 0 10px; }
Signature · 1 line
2.42.0
maintainer
#1 lore raw
Quoted 17 lines · Donald Hunter

The docs currently have <h3> and <h4> set to the same font size which makes headings hard to distinguish. <h1> to <h3> already have entries in sphinx-static/custom.css to shrink their size a bit from the alabaster theme.

Add <h4> to custom.css and set it to be smaller than <h3>.

---
 Documentation/sphinx-static/custom.css | 1 +
 1 file changed, 1 insertion(+)
Documentation/sphinx-static/custom.css +0 -0
index 084a884f6fb7..a0ae9e90eeb6 100644

Documentation/sphinx-static/custom.css line 10

Quoted 4 lines
Documentation/sphinx-static/custom.css +1 -0
@@ -7,6 +7,7 @@
 div.body h1 { font-size: 180%; }
 div.body h2 { font-size: 150%; }
 div.body h3 { font-size: 130%; }
+div.body h4 { font-size: 110%; }

This didn't apply to docs-next; it looks like you built it against something like 6.6?

I've done the merge and applied the patch, but it would make life easier if future patches were done against the docs tree.

Thanks,

jon