From 8d2d2de9b8469a923b65a557fec16fbf721b67b7 Mon Sep 17 00:00:00 2001 From: EveSunMaple <121652165+EveSunMaple@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:09:32 +0800 Subject: [PATCH] fix: update code font (#4) --- src/components/misc/Markdown.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index 6e31fdc..5ffdff5 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -38,9 +38,10 @@ const className = Astro.props.class; /*&:after*/ /* background: var(--link-active)*/ code - font-family: monospace + font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace background: var(--inline-code-bg) color: var(--inline-code-color) + font-size: 0.875rem padding: 2px 4px border-radius: 4px overflow: hidden @@ -98,4 +99,4 @@ const className = Astro.props.class; margin-left: auto margin-right: auto max-width: 100% - \ No newline at end of file +