mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
Merge branch 'editor-dark' into pr/editor-dark-mode
This commit is contained in:
commit
e725455a0e
17 changed files with 212 additions and 87 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
{@ $css_var->content_line_height = $content_line_height ? $content_line_height: 'none';}
|
||||
{@ $css_var->content_word_break = $content_word_break ? $content_word_break : 'none';}
|
||||
{@ $css_var->content_paragraph_spacing = $content_paragraph_spacing ? $content_paragraph_spacing : 'none';}
|
||||
{@ $css_var->auto_dark_mode = ($editor_auto_dark_mode)? 'Y':'N' }
|
||||
|
||||
{@ Context::set('css_var',$css_var);}
|
||||
<load target="css/default.less" vars="$css_var" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue