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

Commit

Permalink
Merge pull request #259 from ckeditor/i/5829
Browse files Browse the repository at this point in the history
Other: Add hover state for all restricted editing exceptions and fix the width of a collapsed exception in restricted editing. Closes ckeditor/ckeditor5#5829.
  • Loading branch information
Reinmar authored Feb 6, 2020
2 parents 339aec1 + 7892a1f commit 08d6613
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion theme/ckeditor5-restricted-editing/restrictedediting.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

:root {
--ck-color-restricted-editing-exception-background: hsla(31, 100%, 65%, .2);
--ck-color-restricted-editing-exception-hover-background: hsla(31, 100%, 65%, .35);
--ck-color-restricted-editing-exception-brackets: hsla(31, 100%, 40%, .4);
--ck-color-restricted-editing-selected-exception-background: hsla(31, 100%, 65%, .5);
--ck-color-restricted-editing-selected-exception-brackets: hsla(31, 100%, 40%, .6);
Expand Down Expand Up @@ -36,7 +37,14 @@
}

&.restricted-editing-exception_collapsed {
padding-left: 1em;
/* Empty exception should have the same width as exception with at least 1 char */
padding-left: 1ch;
}
}

.ck-restricted-editing_mode_restricted .restricted-editing-exception {
&:hover {
background: var(--ck-color-restricted-editing-exception-hover-background);
}
}

Expand Down

0 comments on commit 08d6613

Please sign in to comment.