Przeglądaj źródła

Move selection visual styles to tableselection.css.

Maciej Gołaszewski 6 lat temu
rodzic
commit
d9582680ab

+ 2 - 0
packages/ckeditor5-table/src/tableselection.js

@@ -14,6 +14,8 @@ import TableUtils from './tableutils';
 import { setupTableSelectionHighlighting } from './tableselection/converters';
 import MouseSelectionHandler from './tableselection/mouseselectionhandler';
 
+import '../theme/tableselection.css';
+
 /**
  * The table selection plugin.
  *

+ 0 - 7
packages/ckeditor5-table/theme/tableediting.css

@@ -8,10 +8,3 @@
  * it acts as a message to the builder telling that it should look for the corresponding styles
  * **in the theme** when compiling the editor.
  */
-
-.ck-content .table table {
-	& td.selected,
-	& th.selected {
-		box-shadow: inset 0 0 0 1px var(--ck-color-focus-border);
-	}
-}

+ 10 - 0
packages/ckeditor5-table/theme/tableselection.css

@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+/*
+ * Note: This file should contain the wireframe styles only. But since there are no such styles,
+ * it acts as a message to the builder telling that it should look for the corresponding styles
+ * **in the theme** when compiling the editor.
+ */