Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
b7ab6f8e
Unverified
Commit
b7ab6f8e
authored
Dec 08, 2022
by
Stephen Zhou
Committed by
GitHub
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: code highlight in dark mode (#702)
parent
36b92ad8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
code-highlight.less
web/src/less/code-highlight.less
+7
-0
main.tsx
web/src/main.tsx
+1
-1
No files found.
web/src/less/code-highlight.less
0 → 100644
View file @
b7ab6f8e
html.dark {
@import (less) "highlight.js/styles/atom-one-dark.css";
}
html:not(.dark) {
@import (less) "highlight.js/styles/github.css";
}
web/src/main.tsx
View file @
b7ab6f8e
...
@@ -11,7 +11,7 @@ import "dayjs/locale/zh";
...
@@ -11,7 +11,7 @@ import "dayjs/locale/zh";
import
"dayjs/locale/fr"
;
import
"dayjs/locale/fr"
;
import
"dayjs/locale/vi"
;
import
"dayjs/locale/vi"
;
import
theme
from
"./theme"
;
import
theme
from
"./theme"
;
import
"
highlight.js/styles/github.c
ss"
;
import
"
./less/code-highlight.le
ss"
;
import
"./css/global.css"
;
import
"./css/global.css"
;
import
"./css/tailwind.css"
;
import
"./css/tailwind.css"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment