From b6ee24fb654e0fa8932a3b4317fa542c347f1e88 Mon Sep 17 00:00:00 2001 From: JohnathanLin <289348588@qq.com> Date: Mon, 11 Dec 2023 23:48:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E6=94=B9=E5=BE=97=E5=92=8CCS?= =?UTF-8?q?GO=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/common/header.css | 9 +++++++++ assets/css/core/reset.css | 2 +- layouts/partials/css.html | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 94c427e..0dbd199 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -91,3 +91,12 @@ body:not(.dark) #sun { .logo-switches { flex-wrap: inherit; } +/* 加载自己的字体 */ +@font-face { + font-family: "stratum2"; + src: url("/stratum2-medium-webfont.ttf"); +} +@font-face { + font-family: "fangzhengheiti"; + src: url("/FZHTJW.ttf"); +} \ No newline at end of file diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index 07515be..0ece02b 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -22,7 +22,7 @@ h6 { } body { - font-family: 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-family: 'stratum2', 'fangzhengheiti', /*'Noto Serif SC',*/ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-size: 18px; line-height: 1.6; word-break: break-word; diff --git a/layouts/partials/css.html b/layouts/partials/css.html index 485e4f8..c3dd582 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -1,3 +1,4 @@ + \ No newline at end of file