Merge pull request #87 from Yidadaa/bugfix-0328

fix: light theme code highlight
This commit is contained in:
Yifei Zhang 2023-03-28 13:34:39 +08:00 committed by GitHub
commit f0dd95a2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 25 deletions

View File

@ -843,7 +843,6 @@
overflow: auto; overflow: auto;
font-size: 85%; font-size: 85%;
line-height: 1.45; line-height: 1.45;
background-color: var(--color-canvas-subtle);
border-radius: 6px; border-radius: 6px;
} }

View File

@ -121,32 +121,32 @@
} }
} }
// @mixin light { @mixin light {
// .markdown-body pre[class*="language-"] { .markdown-body pre {
// filter: invert(1) hue-rotate(50deg) brightness(1.3); filter: invert(1) hue-rotate(90deg) brightness(1.3);
// } }
// } }
// @mixin dark { @mixin dark {
// .markdown-body pre[class*="language-"] { .markdown-body pre {
// filter: none; filter: none;
// } }
// } }
// :root { :root {
// @include light(); @include light();
// } }
// .light { .light {
// @include light(); @include light();
// } }
// .dark { .dark {
// @include dark(); @include dark();
// } }
// @media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
// :root { :root {
// @include dark(); @include dark();
// } }
// } }