From: Vladimír Vondruš Date: Sun, 22 Oct 2017 13:26:30 +0000 (+0200) Subject: css: make base font size configurable. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=a264a12bf8fcd74a4e8ca73a3bd953e3dc11a142;p=blog.git css: make base font size configurable. --- diff --git a/css/m-components.css b/css/m-components.css index 72597978..9ce07d65 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -1,6 +1,6 @@ /* Globals */ html { - font-size: 16px; + font-size: var(--font-size); background-color: var(--background-color); } body { diff --git a/css/m-dark.css b/css/m-dark.css index 315666a6..47a553e6 100644 --- a/css/m-dark.css +++ b/css/m-dark.css @@ -6,6 +6,7 @@ /* Text properties */ --font: 'Source Sans Pro', sans-serif; --code-font: 'Source Code Pro', monospace; + --font-size: 16px; --link-decoration: underline; --link-decoration-nav: none; --link-decoration-heading: none; diff --git a/css/m-light.css b/css/m-light.css index 91d7cd06..d811e548 100644 --- a/css/m-light.css +++ b/css/m-light.css @@ -5,6 +5,7 @@ /* Text properties */ --font: 'Libre Baskerville', serif; --code-font: 'Source Code Pro', monospace; + --font-size: 14px; --link-decoration: underline; --link-decoration-nav: none; --link-decoration-heading: none;