Parcourir la source

Docs: Improved a comment in the switchbutton styles.

Aleksander Nowodzinski il y a 7 ans
Parent
commit
bc6e80436d

+ 9 - 6
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css

@@ -61,12 +61,15 @@ of the component, floating–point numbers have been used which, for the default
 		& .ck-button__toggle__inner {
 			/*
 			 * Move the toggle switch to the right. It will be animated.
-			 * ckeditor5-ui#433. Edge is not supporting calc() in the transitions and animations, we need to hardcode this value.
-			 * translateX( calc(
-					var(--ck-switch-button-toggle-width) -
-					var(--ck-switch-button-toggle-inner-size) -
-					2*var(--ck-switch-button-toggle-spacing) )
-				);
+			 *
+			 * Edge is not supporting calc() in the transitions and animations, we need to hardcode this value (see ckeditor5-ui#433).
+			 * It boils down to:
+			 *
+			 * 	calc(
+			 * 		var(--ck-switch-button-toggle-width) -
+			 * 		var(--ck-switch-button-toggle-inner-size) -
+			 * 		2*var(--ck-switch-button-toggle-spacing) )
+			 * 	)
 			 */
 			transform: translateX( 1.3846153847em );
 		}