From 39a28ea745791b7b5db1649f0490039a27358faf Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 13 Oct 2023 15:04:09 +0200 Subject: [PATCH] font family as global variable --- static/css/constants.css | 1 + static/css/index.css | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/static/css/constants.css b/static/css/constants.css index a68e57d..ffcb394 100644 --- a/static/css/constants.css +++ b/static/css/constants.css @@ -19,4 +19,5 @@ /* Global parameters */ :root { --font-size: 1.15rem; + --font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol"; } diff --git a/static/css/index.css b/static/css/index.css index 6b87291..d0d9287 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -25,7 +25,7 @@ main { color: var(--font-color); font-size: var(--font-size); padding: 2em 1em; - font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: var(--font-family); color: var(--font-color); margin: 0 auto; max-width: 640px; /* breakpoint */ @@ -72,12 +72,7 @@ main { } /* Description */ -h1, -h2, -h3, -h4, -h5, -h6 { +h1 { font-weight: var(--title-weight); font-size: calc(var(--font-size) * 1.6); margin-bottom: 0;