From a37ebbe2aa463da68b23b858592939027648a550 Mon Sep 17 00:00:00 2001 From: Akatsuki Rui <3736910+akiirui@users.noreply.github.com> Date: Fri, 12 Feb 2021 02:00:59 +0800 Subject: [PATCH] assets: fix font-family fallback (#130) If not have monospace, fonts will fallback to sans-serif when these fonts not available. --- assets/scss/variables.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scss/variables.scss b/assets/scss/variables.scss index 3a8a1a5..cba32e5 100644 --- a/assets/scss/variables.scss +++ b/assets/scss/variables.scss @@ -52,8 +52,8 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff; --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue"; --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei"; - --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family); - --code-font-family: Menlo, Monaco, Consolas, "Courier New"; + --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif; + --code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } /*