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

Commit

Permalink
Add :hover state for restricted editiing exeption
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Dec 17, 2019
1 parent 599f16e commit 39d194b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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 All @@ -13,6 +14,7 @@
.ck-editor__editable .restricted-editing-exception {
transition: .2s ease-in-out background;
background-color: var(--ck-color-restricted-editing-exception-background);
padding: 0 2px;
border: 1px solid;
border-image: linear-gradient(
to right,
Expand All @@ -24,6 +26,10 @@
var(--ck-color-restricted-editing-exception-brackets) 100%
) 1;

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

&.restricted-editing-exception_selected {
background-color: var(--ck-color-restricted-editing-selected-exception-background);
border-image: linear-gradient(
Expand Down

0 comments on commit 39d194b

Please sign in to comment.