fix(editor): Inconsistent syntax highlight color (#22029)

This commit is contained in:
Suguru Inoue 2025-11-19 10:30:23 +01:00 committed by GitHub
parent 4d525e83b1
commit 5d1c375fc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,12 +6,12 @@
@include meta.load-css('highlight.js/styles/github-dark-dimmed.css');
}
body {
&[data-theme='dark'] {
@include hljs-dark-theme;
}
body[data-theme='dark'] {
@include hljs-dark-theme;
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
body:not([data-theme]) {
@include hljs-dark-theme;
}
}