Skip to content

Commit a53be1e

Browse files
committed
style: add wmde-markdown-var className.
1 parent d970150 commit a53be1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/styles/markdown.less

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@media (prefers-color-scheme: dark) {
2-
.wmde-markdown {
2+
.wmde-markdown,
3+
.wmde-markdown-var {
34
color-scheme: dark;
45
--color-prettylights-syntax-comment: #8b949e;
56
--color-prettylights-syntax-constant: #79c0ff;
@@ -47,7 +48,8 @@
4748
}
4849

4950
@media (prefers-color-scheme: light) {
50-
.wmde-markdown {
51+
.wmde-markdown,
52+
.wmde-markdown-var {
5153
color-scheme: light;
5254
--color-prettylights-syntax-comment: #6e7781;
5355
--color-prettylights-syntax-constant: #0550ae;
@@ -95,6 +97,7 @@
9597
}
9698

9799
[data-color-mode*='dark'] .wmde-markdown,
100+
[data-color-mode*='dark'] .wmde-markdown-var,
98101
body[data-color-mode*='dark'] {
99102
color-scheme: dark;
100103
--color-prettylights-syntax-comment: #8b949e;
@@ -142,6 +145,7 @@ body[data-color-mode*='dark'] {
142145
}
143146

144147
[data-color-mode*='light'] .wmde-markdown,
148+
[data-color-mode*='light'] .wmde-markdown-var,
145149
body[data-color-mode*='light'] {
146150
color-scheme: light;
147151
--color-prettylights-syntax-comment: #6e7781;

0 commit comments

Comments
 (0)