Просмотр исходного кода

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

alancnet 5 лет назад
Родитель
Сommit
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 .ck-editor__nested-editable:focus,
     .ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,
     .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 {
     .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');
+      }
     }
     }
   }
   }
 }
 }