Przeglądaj źródła

Used a solid background color for table cells to indicate the scope of the selection.

Aleksander Nowodzinski 5 lat temu
rodzic
commit
61c6d38194

+ 15 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css

@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+:root {
+	--ck-table-selected-cell-background: hsl(210, 92%, 85%);
+}
+
+.ck.ck-editor__editable .table table {
+	& td.ck-editor__editable_selected,
+	& th.ck-editor__editable_selected {
+		background-color: var(--ck-table-selected-cell-background) !important;
+	}
+}