diff --git a/theme/blog/statics/plugins/highlight/prism.css b/theme/blog/statics/plugins/highlight/prism.css index cdfbad93..33014bb3 100644 --- a/theme/blog/statics/plugins/highlight/prism.css +++ b/theme/blog/statics/plugins/highlight/prism.css @@ -8,7 +8,7 @@ pre[class*="language-"] { color: #777; background: none; - font-family: var(--mono-font), Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-family: var(--mono-font), monospace; text-align: left; white-space: pre; word-spacing: normal; diff --git a/theme/blog/styles/variables.scss b/theme/blog/styles/variables.scss index 8758c4ba..8b3e29cf 100644 --- a/theme/blog/styles/variables.scss +++ b/theme/blog/styles/variables.scss @@ -1,6 +1,6 @@ :root { ---font-size: 18px; ---mono-font: "LXGW WenKai Mono", Monaco, Consolas, monospace, Courier; +--font-size: 16px; +--mono-font: "LXGW WenKai Mono", Monaco, Consolas, monospace; --max-width: 850px; --border-color-hover: #e18500; --border-radius: 4px;