Преглед на файлове

Refactoring in the button styles to allow centered button content.

Aleksander Nowodzinski преди 8 години
родител
ревизия
ab14efb598
променени са 1 файла, в които са добавени 1 реда и са изтрити 9 реда
  1. 1 9
      packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css

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

@@ -20,6 +20,7 @@ a.ck-button {
 	cursor: default;
 	vertical-align: middle;
 	padding: var(--ck-spacing-small);
+	text-align: center;
 
 	/* Enable font size inheritance, which allows fluid UI scaling. */
 	font-size: inherit;
@@ -29,10 +30,6 @@ a.ck-button {
 		@mixin ck-box-shadow var(--ck-focus-outer-shadow);
 	}
 
-	@mixin ck-button-icon {
-		float: left;
-	}
-
 	/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
 	&.ck-disabled {
 		@mixin ck-button-icon {
@@ -52,10 +49,6 @@ a.ck-button {
 			margin-left: calc(-1 * var(--ck-spacing-small));
 			margin-right: var(--ck-spacing-small);
 		}
-
-		& .ck-button__label {
-			display: block;
-		}
 	}
 
 	/* A style of the button which is currently on, e.g. its feature is active. */
@@ -74,7 +67,6 @@ a.ck-button {
 		/* Enable font size inheritance, which allows fluid UI scaling. */
 		font-size: inherit;
 
-		float: left;
 		height: var(--ck-line-height-base)em;
 		line-height: inherit;
 		font-weight: inherit;