fix(code)!: respect shiki themes
This commit is contained in:
parent
63a6fc2072
commit
ee89b96068
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue