From fc54497e3e03a941898b1fe0f24f7a77fa9271e2 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 6 Sep 2024 19:21:52 +0800 Subject: [PATCH] fix: fonts --- src/css/fonts.css | 13 +++++++++++++ src/css/index.css | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/css/fonts.css diff --git a/src/css/fonts.css b/src/css/fonts.css new file mode 100644 index 0000000000..abe2995dec --- /dev/null +++ b/src/css/fonts.css @@ -0,0 +1,13 @@ +:lang(zh) { + --ifm-font-family-base: 'Sarasa UI SC', 'Source Han Sans SC', 'Noto Sans SC', 'Source Han Sans', 'Roboto', 'Ubuntu', + 'BlinkMacSystemFont', 'Cantarell', 'Noto Sans', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; + --ifm-font-family-monospace: 'Sarasa Mono SC', monospace, var(--ifm-font-family-base); +} + +:lang(zh-hant) { + --ifm-font-family-base: 'Sarasa UI TC', 'Source Han Sans TC', 'Noto Sans TC', 'Source Han Sans', 'Roboto', 'Ubuntu', + 'BlinkMacSystemFont', 'Cantarell', 'Noto Sans', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', + 'Segoe UI Emoji', 'Segoe UI Symbol'; + --ifm-font-family-monospace: 'Sarasa Mono TC', monospace, var(--ifm-font-family-base); +} diff --git a/src/css/index.css b/src/css/index.css index 51902bf7db..67869c60c6 100644 --- a/src/css/index.css +++ b/src/css/index.css @@ -16,3 +16,4 @@ @import url('./global'); @import url('./theme'); @import url('./print'); +@import url('./fonts');