From d8dd69be96827e2cee83a0768df623a3ed305acb Mon Sep 17 00:00:00 2001 From: Akatsuki Rui <3736910+akiirui@users.noreply.github.com> Date: Thu, 28 Jan 2021 22:41:39 +0800 Subject: [PATCH] assets: fix font-family fallback 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; } /*