mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
fix(viewer): fix monospace font rendering in pre/code blocks on Windows (#328)
This commit is contained in:
parent
44ef6d7fc7
commit
bf0af144fd
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
--mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
|
||||||
|
|
||||||
/* Surfaces */
|
/* Surfaces */
|
||||||
--bg: #f5f7fa;
|
--bg: #f5f7fa;
|
||||||
|
|
@ -106,6 +106,10 @@ body {
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code, pre {
|
||||||
|
font-family: var(--mono);
|
||||||
|
}
|
||||||
|
|
||||||
nav.breadcrumb {
|
nav.breadcrumb {
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue