Skip to content

Commit 9dbe035

Browse files
authored
style: add dark style for pre and code (#6382)
1 parent 6d60eba commit 9dbe035

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
html[data-doc-theme='dark'] {
2+
pre code {
3+
background: #262626;
4+
border-color: #262626;
5+
}
6+
7+
code[class*='language-'],
8+
pre[class*='language-'] {
9+
color: black;
10+
}
11+
12+
:not(pre) > code[class*='language-'],
13+
pre[class*='language-'] {
14+
background: #262626;
15+
}
16+
}

site/src/theme/static/index.less

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@import './toc';
1010
@import './not-found';
1111
@import './highlight';
12+
@import './highlight.dark';
1213
@import './demo';
1314
@import './icons';
1415
@import './mock-browser';

0 commit comments

Comments
 (0)