Override fomantic monospace fonts and set size (#13435)

We did not override those yet so default `monospace` was applied. Also
added a tweak to slightly reduce font size because monospace fonts
usually render slightly larger than proportional ones.

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2020-11-06 18:16:21 +01:00 committed by GitHub
parent c178a36438
commit eebaa81f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -123,6 +123,13 @@ h5,
font-family: var(--fonts-regular); font-family: var(--fonts-regular);
} }
code,
kbd,
samp {
font-size: .9em; /* compensate for monospace fonts being usually slighty larger */
font-family: var(--fonts-monospace);
}
body { body {
background-color: var(--color-body); background-color: var(--color-body);
overflow-y: auto; overflow-y: auto;