This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from ckeditor/t/ckeditor5-table/2
Internal: Moved table editing styles from ckeditor5-table. Decreased the specificity of the widget's nested editable styles to make it possible to style tables as a content (see ckeditor/ckeditor5-table#2). Partially fixes ckeditor/ckeditor5-table#29.
- Loading branch information
Showing
2 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* 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 table.ck-widget { | ||
& 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: double; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters