2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Add CSS media query for dark mode

This commit is contained in:
Jonathan 2022-05-16 16:00:49 +02:00 committed by GitHub
parent 3d07f0eb97
commit 35c6684c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,3 +380,12 @@ span[data-img-src]::after {
width: var(--width); width: var(--width);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
@media (prefers-color-scheme: dark) {
.editor-toolbar {
background: #333;
}
.editor-toolbar button {
color: #ddd;
}
}