mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
Quartz sync: 2025-02-04 14:54:24
This commit is contained in:
parent
83eb81a86e
commit
50f4e11c88
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user