From 66a4ad2fff5cc2054bffd87d1de3399d92511f2e Mon Sep 17 00:00:00 2001 From: Techassi Date: Thu, 27 Mar 2025 10:30:12 +0100 Subject: [PATCH] chore: Adjust headline sizes h4 and below were becoming really small, even smaller than the normal paragraphs. This commit adds a linear scale from h2 to h6. --- src/css/doc.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/css/doc.css b/src/css/doc.css index 363513b..77bd07b 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -76,6 +76,28 @@ font-weight: var(--alt-heading-font-weight); } +/* Custom font sizes, because h4 and down were getting really small */ + +.doc h2 { + font-size: 1.7rem; +} + +.doc h3 { + font-size: 1.5rem; +} + +.doc h4 { + font-size: 1.3rem; +} + +.doc h5 { + font-size: 1.1rem; +} + +.doc h6 { + font-size: 0.9rem; +} + .doc h1 code, .doc h2 code, .doc h3 code,