summaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-06 18:16:21 +0100
committerGitHub <noreply@github.com>2020-11-06 12:16:21 -0500
commiteebaa81f43a6fd982dcd96571a020242f0ea3276 (patch)
tree156ec91881104eb803412168da2de6eddaf21e98 /web_src/less/_base.less
parentc178a36438132f824932f6db26d7e902d69db56a (diff)
downloadgitea-eebaa81f43a6fd982dcd96571a020242f0ea3276.tar.gz
gitea-eebaa81f43a6fd982dcd96571a020242f0ea3276.zip
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>
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r--web_src/less/_base.less7
1 files changed, 7 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 4dc831c63a..3488fc360c 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -123,6 +123,13 @@ h5,
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 {
background-color: var(--color-body);
overflow-y: auto;