Group the base fonts settings in a single place

This commit is contained in:
Antoine Le Gonidec 2024-07-29 16:24:11 +02:00
parent 981638c4f6
commit 33e1780e89
Signed by: vv221
GPG key ID: 636B78F91CEB80D8

View file

@ -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 <strong> 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"] {