Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 9 insertions, 6 deletions
-rw-r--r--src/asian.less12
-rw-r--r--src/variables.less3
diff --git a/src/asian.less b/src/asian.less
index e3031f3..38230e4 100644
--- a/src/asian.less
+++ b/src/asian.less
@@ -1,14 +1,16 @@
// Optimized for East Asian CJK
-:lang(zh),
-:lang(ko),
-.cjk {
- font-family: @cjk-font-family;
+:lang(zh) {
+ font-family: @cjk-zh-font-family;
}
:lang(ja) {
font-family: @cjk-jp-font-family;
}
+:lang(ko) {
+ font-family: @cjk-ko-font-family;
+}
+
:lang(zh),
:lang(ja),
.cjk {
@@ -17,7 +19,7 @@
border-bottom: .1rem solid;
text-decoration: none;
}
- // Credit: https://github.com/ethantw/Han
+
del + del,
del + s,
ins + ins,
diff --git a/src/variables.less b/src/variables.less
index df0ec3f..0b7ba53 100644
--- a/src/variables.less
+++ b/src/variables.less
@@ -14,7 +14,8 @@
@base-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto;
@fallback-font-family: "Helvetica Neue", sans-serif;
@cjk-jp-font-family: @base-font-family, "Hiragino Sans", "Hiragino Kaku Gothic Pro", "Yu Gothic", YuGothic, Meiryo, @fallback-font-family;
-@cjk-font-family: @base-font-family, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", Meiryo, "Malgun Gothic", @fallback-font-family;
+@cjk-zh-font-family: @base-font-family, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", @fallback-font-family;
+@cjk-ko-font-family: @base-font-family, "Malgun Gothic", @fallback-font-family;
@body-font-family: @base-font-family, @fallback-font-family;
// Sizes