fix(markdown): remove invalid `.highlight` class

This commit is contained in:
郭桓桓 2023-03-05 13:55:52 +08:00
parent beedb0e803
commit 2cb60cc6c4
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
2 changed files with 3 additions and 4 deletions

View File

@ -1,13 +1,12 @@
.markdown-body { .markdown-body {
color: var(--xm-c-regular); color: var(--xm-c-regular);
font-family: var(--xm-font-display) !important; font-family: var(--xm-font-display) !important;
pre:not(.shiki, .highlight) { pre:not(.shiki) {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: transparent; background: transparent;
} }
.shiki, .shiki {
.highlight {
margin: .5rem 0; margin: .5rem 0;
font-size: 1.05rem; font-size: 1.05rem;
font-family: var(--xm-font-code) !important; font-family: var(--xm-font-code) !important;

View File

@ -13,6 +13,6 @@ $quote-border: hsla(0deg 0% 50% / .3);
$thead-border: #d1d5db; $thead-border: #d1d5db;
$tr-border: #e5e7eb; $tr-border: #e5e7eb;
// Shiki (code highlight) // Shiki (code highlighting)
$shiki-light: #f8f8f8; $shiki-light: #f8f8f8;
$shiki-dark: #0e0e0e; $shiki-dark: #0e0e0e;