fix: fix custom code font doesn't work

This commit is contained in:
saicaca 2024-01-22 11:35:54 +08:00
parent e428b1d5a5
commit 4316654a98
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
---
import '@fontsource-variable/jetbrains-mono';
import '@fontsource-variable/jetbrains-mono/wght-italic.css';
interface Props {
class: string;
}
@ -53,7 +55,7 @@ const className = Astro.props.class;
/*&:after*/
/* background: var(--link-active)*/
code
font-family: JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace
font-family: 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace
background: var(--inline-code-bg)
color: var(--inline-code-color)
padding: 0.125rem 0.25rem