8
0
Просмотр исходного кода

Made vertical toolbar items span horizontally without any margins.

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

+ 10 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css

@@ -16,6 +16,16 @@
 		margin-right: var(--ck-spacing-small);
 	}
 
+	&.ck-toolbar_vertical {
+		& > * {
+			/* Items in a vertical toolbar should have no horizontal margin */
+			margin-right: 0;
+
+			/* Items in a vertical toolbar should span the horizontal space */
+			width: 100%;
+		}
+	}
+
 	& > *:last-child {
 		margin-right: 0;
 	}