Explorar o código

Disabled parent balloon box shadow with fake panels.

dkonopka %!s(int64=6) %!d(string=hai) anos
pai
achega
8782fdd1c6

+ 8 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css

@@ -21,3 +21,11 @@
 		margin-left: var(--ck-spacing-standard);
 	}
 }
+
+.ck .ck-balloon-rotator__content {
+
+	/* Disable default annotation shadow inside rotator with fake panels. */
+	& .ck.ck-annotation-wrapper {
+		box-shadow: none;
+	}
+}

+ 3 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css

@@ -25,7 +25,9 @@
 
 .ck .ck-fake-panels div:nth-child( 1 ) {
 	margin-left: var(--ck-balloon-fake-panel-offset);
-	margin-top: var(--ck-balloon-fake-panel-offset);
+
+	/* Because of parent shadow, we need to move panel by fixed value. */
+	margin-top: calc( var(--ck-balloon-fake-panel-offset) + 1px );
 }
 
 .ck .ck-fake-panels div:nth-child( 2 ) {