| 123456789101112131415161718192021222324252627282930313233 |
- /*
- * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- :root {
- --ck-color-table-focused-cell-background: hsl(208, 90%, 98%);
- }
- .ck-widget.table {
- & td,
- & th {
- &.ck-editor__nested-editable.ck-editor__nested-editable_focused {
- /* A very slight background to highlight the focused cell */
- background: var(--ck-color-table-focused-cell-background);
- /* Fixes the problem where surrounding cells cover the focused cell's border.
- It does not fix the problem in all places but the UX is improved.
- See https://github.com/ckeditor/ckeditor5-table/issues/29. */
- border-style: none;
- outline: 1px solid var(--ck-color-focus-border);
- outline-offset: -1px; /* progressive enhancement - no IE support */
- }
- }
- }
- .ck-editor__editable > .table:first-child,
- .ck-editor__editable blockquote > .table:first-child {
- /* `16px` = var(--ck-widget-handler-icon-size) - table selection handler height.
- https://github.com/ckeditor/ckeditor5-block-quote/issues/28
- https://github.com/ckeditor/ckeditor5-widget/issues/44 */
- margin-top: calc(1em + var(--ck-widget-handler-icon-size) );
- }
|