mirror of
https://github.com/saicaca/fuwari.git
synced 2025-01-19 19:29:18 +08:00
fix: fix custom code font doesn't work
This commit is contained in:
parent
e428b1d5a5
commit
4316654a98
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
import '@fontsource-variable/jetbrains-mono';
|
||||||
import '@fontsource-variable/jetbrains-mono/wght-italic.css';
|
import '@fontsource-variable/jetbrains-mono/wght-italic.css';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
class: string;
|
class: string;
|
||||||
}
|
}
|
||||||
@ -53,7 +55,7 @@ const className = Astro.props.class;
|
|||||||
/*&:after*/
|
/*&:after*/
|
||||||
/* background: var(--link-active)*/
|
/* background: var(--link-active)*/
|
||||||
code
|
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)
|
background: var(--inline-code-bg)
|
||||||
color: var(--inline-code-color)
|
color: var(--inline-code-color)
|
||||||
padding: 0.125rem 0.25rem
|
padding: 0.125rem 0.25rem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user