From 5d9b9c2f4bd7b65c28fb5e47c72d947dce3dd02c Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Tue, 18 Jul 2023 01:25:12 +0800 Subject: [PATCH] fix: code font --- .vitepress/theme/style.css | 7 +++++++ contributors.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index a19b5e8..caca12b 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -26,6 +26,13 @@ --vp-font-family-mono: 'Noto Sans Mono', sans-serif, monospace, consolas; } +// 这个版本可能有 bug,build 后字体变不了还为 consolas 可能是我自己配的有问题 可能是这个版本拉了 总之就加个临时的 +code { + font-family: 'Noto Sans Mono', sans-serif, monospace, consolas !important; + font-weight: 400 !important; + font-size: 14px !important; +} + /** * Component: Button * -------------------------------------------------------------------------- */ diff --git a/contributors.md b/contributors.md index 6ddaffc..cd48d0f 100644 --- a/contributors.md +++ b/contributors.md @@ -1,5 +1,5 @@