Moono-lisa 에 대한 다크모드 제안.

This commit is contained in:
Min-Soo Kim 2021-01-07 11:44:59 +09:00 committed by GitHub
parent 9587cfd067
commit 26558e4c6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,27 @@
margin: 0 0 @content_paragraph_spacing 0;
}
/* if editor_auto_dark_mode == 'Y' load darkmode style */
.auto_dark(@cs, @adm) when (@adm = Y) and not (@cs = moono-dark) {
html {
body.cke_editable {
.light_dark(moono-dark);
}
}
.cke_reset {
span {
&.cke_top {
.light_dark_top(moono-dark);
}
}
}
.cke_button_icon, .cke_combo_button, .cke_button_arrow, .cke_button_label {
filter: invert(1);
}
}
.auto_dark(@cs, @adm) when not (@adm = Y) or (@cs = moono-dark) {
}
.light_dark(@cs) when (@cs = moono-dark) {
background-color: #333;
color: #fff;
@ -132,4 +153,8 @@ p.editor_autosaved_message.autosave_message {
}
}
}
}
@media (prefers-color-scheme: dark) {
.auto_dark(@colorset, @auto_dark_mode)
}