From 1275e68efa680e55fd29a377c9c58c59bb7f235e Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 10 Jul 2018 22:01:22 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tableselection/styles/tableselection.css | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cgi-bin/html/ckeditor/plugins/tableselection/styles/tableselection.css (limited to 'cgi-bin/html/ckeditor/plugins/tableselection/styles') diff --git a/cgi-bin/html/ckeditor/plugins/tableselection/styles/tableselection.css b/cgi-bin/html/ckeditor/plugins/tableselection/styles/tableselection.css new file mode 100644 index 0000000..3ad2ab1 --- /dev/null +++ b/cgi-bin/html/ckeditor/plugins/tableselection/styles/tableselection.css @@ -0,0 +1,32 @@ +.cke_table-faked-selection-editor *::selection, table[data-cke-table-faked-selection-table] *::selection { + background: transparent; +} + +.cke_table-faked-selection-editor { + /* With love, dedicated for Chrome, until https://bugs.chromium.org/p/chromium/issues/detail?id=702610 is resolved. + It will force repaint (without reflow) so that selection is properly displayed. */ + transform: translateZ( 0 ); +} + +.cke_table-faked-selection { + background: darkgray !important; + color: black; +} +.cke_table-faked-selection a { + color: black; +} +.cke_editable:focus .cke_table-faked-selection { + /* We have to use !important here, as td might specify it's own background, thus table selection + would not be visible. */ + background: #0076cb !important; + color: white; +} +.cke_editable:focus .cke_table-faked-selection a { + color: white; +} +.cke_table-faked-selection::-moz-selection, .cke_table-faked-selection ::-moz-selection { + background: transparent; +} +.cke_table-faked-selection::selection, .cke_table-faked-selection ::selection { + background: transparent; +} -- cgit v1.1-26-g67d0