Skip to content

Commit eebaa81

Browse files
silverwindsapktechknowlogick
authored
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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent c178a36 commit eebaa81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web_src/less/_base.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ h5,
123123
font-family: var(--fonts-regular);
124124
}
125125

126+
code,
127+
kbd,
128+
samp {
129+
font-size: .9em; /* compensate for monospace fonts being usually slighty larger */
130+
font-family: var(--fonts-monospace);
131+
}
132+
126133
body {
127134
background-color: var(--color-body);
128135
overflow-y: auto;

0 commit comments

Comments
 (0)