We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--zh-font-family
1 parent 4783208 commit 41363edCopy full SHA for 41363ed
assets/scss/variables.scss
@@ -43,8 +43,13 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
43
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
44
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
45
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;
+ --base-font-family: "Lato", var(--sys-font-family), sans-serif;
+ --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;
53
}
54
55
/*
0 commit comments