From 0687df87cc0657f80294645cea3f9682c52f37da Mon Sep 17 00:00:00 2001 From: enneaa Date: Thu, 13 Mar 2025 03:05:59 +0800 Subject: [PATCH] Update custom.scss --- quartz/styles/custom.scss | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index a418b4c6a..a8ec382bc 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -1,14 +1,10 @@ @use "./base.scss"; -// put your custom CSS here! - +// put your custom CSS here!  +// 使用 @import 引入字体 +@import 'https://cdn.staticfile.org/lxgw-wenkai-screen-webfont/1.6.0/lxgwwenkaiscreen.css'; -@import 'https://cdn.staticfile.org/lxgw-wenkai-screen-webfont/1.6.0/lxgwwenkaiscreen.css';  -* { - /* Screen version */ - font-family: "LXGW WenKai Screen", sans-serif; -} -body {  - /* Screen version */ +// 只需要在 body 中设置字体即可,会自动继承给子元素 +body { font-family: "LXGW WenKai Screen", sans-serif; }