8
0
Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
5ffaaa7d57

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

@@ -58,17 +58,21 @@ a.ck-button {
 	}
 
 	@mixin ck-button-icon {
-		/* This margin is neccessary for icons in label-less buttons to stretch
-		the button properly. When there's no text in the button, browsers render
-		them too narrow. */
-		margin: .2em;
-
 		use,
 		use * {
 			color: inherit;
 		}
 	}
 
+	&:not(.ck-button_with-text) {
+		@mixin ck-button-icon {
+			/* This margin is neccessary for icons in label-less buttons to stretch
+			the button properly. When there's no text in the button, browsers render
+			them too narrow. */
+			margin: .2em;
+		}
+	}
+
 	& .ck-button__label {
 		/* Enable font size inheritance, which allows fluid UI scaling. */
 		font-size: inherit;