From afbd01aa62b75257313efa14c874883e402d01f9 Mon Sep 17 00:00:00 2001 From: swag Date: Wed, 24 May 2023 18:48:30 -0400 Subject: [PATCH] Set font size in root element so that rem can be used for font size --- assets/css/post_text.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/post_text.css b/assets/css/post_text.css index 5f0c288..e8ac2ab 100644 --- a/assets/css/post_text.css +++ b/assets/css/post_text.css @@ -14,6 +14,7 @@ --transparent: #FFFFFFDD; box-sizing: border-box; + font-size: calc(8px + 1vmin); } *, ::before, ::after { box-sizing: inherit; } @@ -22,13 +23,12 @@ body { background-image: url('/images/background2.gif'); width: 95vmin; margin: 0 auto; - font-size: calc(8px + 1vmin); } code { background-color: black; color: lime; - font-size: 0.75em; /* Why tho?? */ + font-size: 0.75rem; /* Why tho?? */ } pre > code {