瀏覽代碼

Merge branch 'master' into i/6131

Aleksander Nowodzinski 6 年之前
父節點
當前提交
bf97ca92f7
共有 1 個文件被更改,包括 15 次插入9 次删除
  1. 15 9
      packages/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css

+ 15 - 9
packages/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css

@@ -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);
@@ -36,7 +37,20 @@
 	}
 
 	&.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 {
+	cursor: text;
+
+	& * {
+		cursor: text;
+	}
+
+	&:hover {
+		background: var(--ck-color-restricted-editing-exception-hover-background);
 	}
 }
 
@@ -48,11 +62,3 @@
 		cursor: default;
 	}
 }
-
-.ck-restricted-editing_mode_restricted .restricted-editing-exception {
-	cursor: text;
-
-	& * {
-		cursor: text;
-	}
-}