From 60b1863395588bf3ea386d5ead5915273dac2ea3 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Wed, 22 May 2024 17:30:30 +0800 Subject: [PATCH] Set custom properties for main content text size --- src/assets/css/content.css | 2 +- src/assets/css/global.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/css/content.css b/src/assets/css/content.css index df52f2a8..6c2c43b5 100644 --- a/src/assets/css/content.css +++ b/src/assets/css/content.css @@ -7,7 +7,7 @@ main, main, .content__wrapper { - font-size: 1.2rem; + font-size: var(--sz-main-txt); } main { diff --git a/src/assets/css/global.css b/src/assets/css/global.css index 5e24b80f..1c103ec4 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -37,6 +37,7 @@ --ff-primary: 'Lexend'; --ff-monospace: 'Inter One Mono'; + --sz-main-txt: 1.2rem; --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);