From 97206f4cf407e155a9cd1b2ede0c4ca53e4f28e4 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:03:18 +0800 Subject: [PATCH] Adjust heading sizes --- src/assets/css/main.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 3a6352f0..12057815 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -129,7 +129,7 @@ body { h1 { color: var(--clr-main-heading); - font-size: 2.2rem; + font-size: clamp(2rem,1rem + 5vw,3rem); border-bottom: 0.18rem solid var(--clr-title-border); padding-bottom: 0.3em; margin-bottom: 0.5em; @@ -137,11 +137,11 @@ h1 { h2, h3, h4, h5, h6 { color: var(--clr-sub-heading); - line-height: 1.5; } -h2 { - font-size: 1.7rem; +h2, h3 { + font-size: clamp(1.55rem,1rem + 3vw,2.15rem); + line-height: 1.2; } hr {