mfbs

CSS microframework
git clone https://git.ce9e.org/mfbs.git

commit
bf15cf5aae4b31513923c08fe5410a5e1d51f3e8
parent
f7a3e82120635afb689490b1b0f4d1098bca63c2
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-04-04 21:25
do not overwrite the font-size by default

Diffstat

M css/base.css 3 ---
M css/fontsize.css 5 +++++

2 files changed, 5 insertions, 3 deletions


diff --git a/css/base.css b/css/base.css

@@ -6,8 +6,6 @@
    6     6     --color-link: #26c;
    7     7     --color-link-focus: #248;
    8     8 
    9    -1     --font-size-min: 0.9em;
   10    -1     --font-size-max: 1.2em;
   11     9     --padding: 0.5em;
   12    10     --spacer: 1em;
   13    11     --indentation: 1.5rem;
@@ -38,7 +36,6 @@ html {
   38    36     overflow-y: scroll;
   39    37     background-color: var(--color-bg);
   40    38     color: var(--color-fg);
   41    -1     font-size: var(--font-size-max);
   42    39     font-family: sans-serif;
   43    40     line-height: 1.5;
   44    41     accent-color: var(--color-link);

diff --git a/css/fontsize.css b/css/fontsize.css

@@ -1,3 +1,8 @@
   -1     1 :root {
   -1     2     --font-size-min: 0.9em;
   -1     3     --font-size-max: 1.2em;
   -1     4 }
   -1     5 
    1     6 html {
    2     7     font-size: clamp(var(--font-size-min), 2.5vi, var(--font-size-max));
    3     8 }