From 33e1780e89b3b98c7b579c5f2217915b1f07f991 Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Mon, 29 Jul 2024 16:24:11 +0200 Subject: [PATCH] Group the base fonts settings in a single place --- css/index.css | 52 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/css/index.css b/css/index.css index 6b3deb7..9d7414e 100644 --- a/css/index.css +++ b/css/index.css @@ -31,6 +31,46 @@ html { --font-copyright: Verdana, sans-serif; /* Copyright must be Verdana! */ } +/* Main text settings */ + +body { + font-family: var(--font-regular); + font-size: 100%; +} +h1 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +h2 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +h3 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +h4 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +h5 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +h6 { + font-family: var(--font-emphasis); + font-size: 1em; + font-weight: inherit; +} +.monospace, .bbc_code, .phpcode, pre { + font-family: var(--font-mono); +} + /* Index */ html { @@ -39,8 +79,6 @@ html { } body { background: var(--bgcolor); - font-size: 100%; - font-family: var(--font-regular); color: var(--dark-color); position: relative; height: 100%; @@ -50,9 +88,6 @@ body { background: #99d4ff; color: rgba(0, 0, 0, 0.6); } -h1, h2, h3, h4, h5, h6 { - font-family: var(--font-emphasis); -} /* General reset */ * { @@ -169,11 +204,6 @@ img, input, select, textarea { max-width: 100%; } -/* Use a consistent monospace font everywhere */ -.monospace, .bbc_code, .phpcode, pre { - font-family: var(--font-mono); -} - .sceditor-container textarea, .sceditor-container textarea:focus { box-shadow: none; } @@ -251,9 +281,7 @@ em, .em { } /* Default color on these tags */ h1, h2, h3, h4, h5, h6 { - font-size: 1em; color: #444; - font-weight: inherit; } /* All input elements that are checkboxes or radio buttons shouldn't have a border around them */ input[type="checkbox"], input[type="radio"] {