fix: define fonts for code block titles and language badges (#589)

This commit is contained in:
Xeonzilla
2025-08-09 11:05:34 +08:00
committed by GitHub
parent 6359bd960a
commit 4ad55e035c
2 changed files with 9 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ export function pluginLanguageBadge() {
top: 0.5rem;
padding: 0.1rem 0.5rem;
content: attr(data-language);
font-family: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;

View File

@@ -1,3 +1,9 @@
.expressive-code .frame {
@apply !shadow-none;
.expressive-code {
.frame {
@apply !shadow-none;
}
.title {
font-family: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
}