From d5a9df1da2bb5ff69d44bda7f44d0a2b8e9e3937 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Tue, 5 Nov 2024 13:10:54 -0500 Subject: [PATCH] font size var --- static/css/layout.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/static/css/layout.css b/static/css/layout.css index 20c1997..fb82cc0 100644 --- a/static/css/layout.css +++ b/static/css/layout.css @@ -2,6 +2,9 @@ @layer baseline { +:root { + --base-text-size: 1.75vh; +} body { padding: 0px; margin: 0px; @@ -24,6 +27,7 @@ a:hover { border-radius: 0.5rem; } +/*font sizes*/ h1 { font-size:3vh; } @@ -31,13 +35,19 @@ h2 { font-size: 2.4vh; } p{ - font-size: 1.75vh; + font-size: var(--base-text-size); } a { - font-size: 1.75vh; + font-size: var(--base-text-size); +} +pre { + font-size: var(--base-text-size); +} +.sourceCode { + font-size: var(--base-text-size); } .info { - font-size: 1.75vh; + font-size: var(--base-text-size); }