From 50f4e11c887c2a8b9701a031cf155fcb0b274432 Mon Sep 17 00:00:00 2001 From: ArenaDruid <95113209+ArenaDruid@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:54:24 +0800 Subject: [PATCH] Quartz sync: 2025-02-04 14:54:24 --- quartz/styles/custom.scss | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index 3df11415f..dae3da198 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -2,25 +2,11 @@ // put your custom CSS here! -/* 定义中文斜体专用字体 */ -@font-face { - font-family: 'ChineseItalic'; - font-style: italic; - src: local('楷体'), - local('Kaiti SC'), - local('STKaiti'); - unicode-range: U+4E00-9FFF; /* 中文字符范围 */ -} +// 定义变量 +$chinese-italic-font: 'ChineseItalic'; +$western-font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -/* 智能应用规则 */ em, .cm-em, i { - font-family: - -apple-system, /* 西文字体栈 */ - BlinkMacSystemFont, - 'Segoe UI', - Roboto, - 'ChineseItalic', /* 中文斜体触发 */ - sans-serif; - - font-style: italic; /* 必须保持斜体状态 */ + font-family: $western-font-stack, $chinese-italic-font; + font-style: italic; } \ No newline at end of file