Skip to content

Commit 41363ed

Browse files
committed
fix(scss): limit --zh-font-family to only simplified Chinese
1 parent 4783208 commit 41363ed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

assets/scss/variables.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
4343
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
4444
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
4545

46-
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;
47-
--code-font-family: Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace;
46+
--base-font-family: "Lato", var(--sys-font-family), sans-serif;
47+
--code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
48+
}
49+
50+
:root:where(:lang(zh):not(:is(:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO)))) {
51+
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family, ""), sans-serif;
52+
--code-font-family: Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family, ""), monospace;
4853
}
4954

5055
/*

0 commit comments

Comments
 (0)