mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-05-28 00:21:57 +02:00
Fix web page dark modes for Chrome/FF (they don't support color-scheme)
This commit is contained in:
@@ -2,10 +2,19 @@
|
||||
* Custom modified stylesheet to support dark mode as upstream doesn't support
|
||||
* it.
|
||||
*/
|
||||
:root {
|
||||
prefer-color-schemes: light dark;
|
||||
color-scheme: light dark;
|
||||
@supports (color-scheme: light dark) {
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
}
|
||||
}
|
||||
@supports not (color-scheme: light dark) {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #1E1E1E;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
a {
|
||||
color: #2583E2;
|
||||
|
||||
Reference in New Issue
Block a user