Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Set the background color as a variable.
Browse files Browse the repository at this point in the history
The change is needed to keep the same value for the element when is focused.
We use this to fix: ckeditor/ckeditor5#6229
  • Loading branch information
panr committed Mar 10, 2020
1 parent 300e715 commit 0b5cc9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

:root {
--ck-color-table-focused-th-background: hsla(0, 0%, 0%, 10%);
}

.ck-content .table {
/* Give the table widget some air and center it horizontally */
margin: 1em auto;
Expand Down Expand Up @@ -31,7 +35,7 @@

& th {
font-weight: bold;
background: hsla(0, 0%, 0%, 10%);
background: var(--ck-color-table-focused-th-background);
}
}
}

0 comments on commit 0b5cc9c

Please sign in to comment.