fix: light theme code highlight

This commit is contained in:
Yifei Zhang 2023-03-28 05:24:29 +00:00
parent 8f498075b9
commit 6155a190ac
2 changed files with 24 additions and 25 deletions

View File

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

View File

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