change non-pre code style

This commit is contained in:
kwaroran
2024-07-02 07:12:52 +09:00
parent 6f602ebde9
commit 0bc2f8ebc3

View File

@@ -227,4 +227,19 @@ html, body{
::highlight(deprecated) {
color: var(--risu-theme-textcolor2);
text-decoration: line-through;
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
content: "";
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
content: "";
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)):not(pre code) {
color: var(--tw-prose-pre-code);
background-color: var(--tw-prose-pre-bg);
padding: 0.125rem 0.25rem;
border-radius: 0.25rem;
}