fix(code)!: respect shiki themes

This commit is contained in:
郭桓桓 2023-03-05 17:43:16 +08:00
parent 63a6fc2072
commit ee89b96068
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
2 changed files with 0 additions and 15 deletions

View File

@ -32,21 +32,10 @@ pre {
content: none;
}
}
&:not(.shiki) {
margin: 0;
padding: 0;
background: transparent;
}
}
.shiki {
margin: .5rem 0;
font-size: 1.05rem;
font-family: var(--xm-font-code) !important;
line-height: 1.4;
&.shiki-light {
background: var(--xm-c-shiki-light) !important;
}
&.shiki-dark {
background: var(--xm-c-shiki-dark) !important;
}
}

View File

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