summaryrefslogtreecommitdiff
path: root/Documentation/sphinx-static
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2022-10-31 10:48:19 -0600
committerJonathan Corbet <corbet@lwn.net>2022-11-01 15:59:40 -0600
commitbd5d1cc8ffd7ab83a409a203c1892b6216258d88 (patch)
tree1e2990f7441a98326d58b511bf7b2a7fe9daf783 /Documentation/sphinx-static
parent2ad34b823373c210c91e0b66c0ab5b4baffa3f0b (diff)
docs: Don't wire font sizes for HTML output
The alabaster theme likes to provide explicit sizes for fonts, which overrides the users's own browser settings and is guaranteed to displease folks. Set the font size to "inherit" so that the users browser settings control the font size they get. We can use the font_size configuration option for the main body font (changing the size I'd already put there), but the sidebar size can only be set via custom CSS. Reported-by: Bagas Sanjaya <bagasdotme@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx-static')
-rw-r--r--Documentation/sphinx-static/custom.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
index 9b36f7abd24f..45a624fdcf2c 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -11,6 +11,7 @@ div.body h3 { font-size: 130%; }
/* Tighten up the layout slightly */
div.body { padding: 0 15px 0 10px; }
div.sphinxsidebarwrapper { padding: 1em 0.4em; }
+div.sphinxsidebar { font-size: inherit; }
/* Tweak document margins and don't force width */
div.document {
margin: 20px 10px 0 10px;