From 1b3821847a8f01621b0a87c6c382abf30c683837 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Wed, 22 May 2024 16:39:14 +0800 Subject: [PATCH] Set h4 heading size --- src/assets/css/general.css | 4 ++++ src/assets/css/global.css | 1 + 2 files changed, 5 insertions(+) diff --git a/src/assets/css/general.css b/src/assets/css/general.css index 15554725..e63feee6 100644 --- a/src/assets/css/general.css +++ b/src/assets/css/general.css @@ -41,6 +41,10 @@ h3:has(+ *[class]:not(.heading-anchor)), .h3:has(+ *[class]) { margin-bottom: 0.5em; } +h4, .h4 { + font-size: var(--sz-h4); +} + hr { border: 0.05rem solid var(--clr-title-border); } diff --git a/src/assets/css/global.css b/src/assets/css/global.css index 349b5547..5e24b80f 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -40,6 +40,7 @@ --sz-h1: clamp(2rem, 1rem + 5vw, 3rem); --sz-h2: clamp(1.55rem, 1rem + 3vw, 2.15rem); --sz-h3: clamp(1.55rem, 1rem + 3vw, 1.8rem); + --sz-h4: clamp(1.4rem, 1rem + 3vw, 1.6rem); --sz-paragraph-margin: 1.15em; --sz-main-padding: clamp(1rem, 5%, 4rem); }