mirror of
https://github.com/usememos/memos.git
synced 2024-11-11 09:22:51 +08:00
fix: code highlight in dark mode (#702)
This commit is contained in:
parent
36b92ad884
commit
b7ab6f8e7e
2 changed files with 8 additions and 1 deletions
7
web/src/less/code-highlight.less
Normal file
7
web/src/less/code-highlight.less
Normal file
|
@ -0,0 +1,7 @@
|
|||
html.dark {
|
||||
@import (less) "highlight.js/styles/atom-one-dark.css";
|
||||
}
|
||||
|
||||
html:not(.dark) {
|
||||
@import (less) "highlight.js/styles/github.css";
|
||||
}
|
|
@ -11,7 +11,7 @@ import "dayjs/locale/zh";
|
|||
import "dayjs/locale/fr";
|
||||
import "dayjs/locale/vi";
|
||||
import theme from "./theme";
|
||||
import "highlight.js/styles/github.css";
|
||||
import "./less/code-highlight.less";
|
||||
import "./css/global.css";
|
||||
import "./css/tailwind.css";
|
||||
|
||||
|
|
Loading…
Reference in a new issue