Feat/code blocks with copy
This commit is contained in:
1 parent
b4640ac5e4
commit
641d5f36d2
3 files changed
+68
-7
No files matched your search
@@ -139,13 +139,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Prevent italic styling in Shiki code blocks */
|
||||
.shiki,
|
||||
.shiki span {
|
||||
font-style: normal !important;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.shiki,
|
||||
.shiki span {
|
||||
color: var(--shiki-dark) !important;
|
||||
background-color: var(--shiki-dark-bg) !important;
|
||||
/* Optional, if you also want font styles */
|
||||
font-style: var(--shiki-dark-font-style) !important;
|
||||
font-weight: var(--shiki-dark-font-weight) !important;
|
||||
text-decoration: var(--shiki-dark-text-decoration) !important;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user