浏览代码

fix: light background in nested ckeditor unless dark mode (#1372)

alancnet 5 年之前
父节点
当前提交
e836a49776
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      client/components/editor/editor-ckeditor.vue

+ 5 - 1
client/components/editor/editor-ckeditor.vue

@@ -179,7 +179,11 @@ $editor-height-mobile: calc(100vh - 56px - 16px);
     &.ck .ck-editor__nested-editable:focus,
     .ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,
     .ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused {
-      background-color: mc('grey', '900');
+      background-color: mc('grey', '100');
+
+      @at-root .theme--dark & {
+        background-color: mc('grey', '900');
+      }
     }
   }
 }