forked from XiaoMo/ChatGPT-Next-Web
fix: #229 disable light code theme
This commit is contained in:
parent
7599ae385b
commit
bf50ebac94
@ -120,33 +120,3 @@
|
|||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin light {
|
|
||||||
.markdown-body pre {
|
|
||||||
filter: invert(1) hue-rotate(90deg) brightness(1.3);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin dark {
|
|
||||||
.markdown-body pre {
|
|
||||||
filter: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
@include light();
|
|
||||||
}
|
|
||||||
|
|
||||||
.light {
|
|
||||||
@include light();
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark {
|
|
||||||
@include dark();
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
@include dark();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user