From ce411549adbf8c89a083168f9a61e0610a98fdb3 Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Mon, 14 Aug 2023 15:45:34 -0700 Subject: [PATCH] css tweaks --- src/lib/Post.svelte | 9 ++++++++- static/style.css | 12 +++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/lib/Post.svelte b/src/lib/Post.svelte index 9711c80..854ca12 100644 --- a/src/lib/Post.svelte +++ b/src/lib/Post.svelte @@ -13,6 +13,13 @@ export const draft = false; + + {title} @@ -20,6 +27,6 @@

{title}

-

{formatDate(date)}

+

{formatDate(date)}

diff --git a/static/style.css b/static/style.css index 7c32838..92295ea 100644 --- a/static/style.css +++ b/static/style.css @@ -7,12 +7,18 @@ font-display: block; } +:root { + --content-size: 1.25rem; + --content-line-height: 1.3; + --content-color: #1e1e1e; +} + html { font-family: 'Tajawal', sans-serif; - font-size: 20px; - line-height: 1.3; + font-size: var(--content-size); + line-height: var(--content-line-height); letter-spacing: -0.005em; - color: #1e1e1e; + color: var(--content-color); } body {