소스 검색

Revert "Move fake care pulse keyframes definition to a global animations CSS import."

This reverts commit 5f722b84
Maciej Gołaszewski 5 년 전
부모
커밋
fe0e7b0866

+ 1 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-link/link.css

@@ -22,5 +22,5 @@
 	border-right: 1px solid var(--ck-color-base-text);
 	margin-right: -1px;
 	outline: solid 1px hsla(0, 0%, 100%, .5);
-	animation: ck-fake-caret-pulse linear 1s infinite normal forwards;
+	animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
 }

+ 0 - 22
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_animations.css

@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
-
-@keyframes ck-fake-caret-pulse {
-	0% {
-		opacity: 1;
-	}
-	49% {
-		opacity: 1;
-	}
-	50% {
-		opacity: 0;
-	}
-	99% {
-		opacity: 0;
-	}
-	100% {
-		opacity: 1;
-	}
-}

+ 0 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/globals.css

@@ -3,7 +3,6 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-@import "./_animations.css";
 @import "./_colors.css";
 @import "./_disabled.css";
 @import "./_focus.css";

+ 19 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css

@@ -129,7 +129,7 @@
 	& .ck-widget__type-around__fake-caret {
 		pointer-events: none;
 		height: 1px;
-		animation: ck-fake-caret-pulse linear 1s infinite normal forwards;
+		animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
 
 		/*
 		 * The semi-transparent-outline+background combo improves the contrast
@@ -250,3 +250,21 @@
 		box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
 	}
 }
+
+@keyframes ck-widget-type-around-fake-caret-pulse {
+	0% {
+		opacity: 1;
+	}
+	49% {
+		opacity: 1;
+	}
+	50% {
+		opacity: 0;
+	}
+	99% {
+		opacity: 0;
+	}
+	100% {
+		opacity: 1;
+	}
+}