Ver Fonte

Improvements to toolbar styles and toolbar grouping.

Aleksander Nowodzinski há 6 anos atrás
pai
commit
5b8b787b57

+ 7 - 4
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css

@@ -40,10 +40,6 @@
 		& > * {
 			/* (#11) Separate toolbar items. */
 			margin-right: var(--ck-spacing-small);
-
-			/* Make sure items wrapped to the next line have v-spacing */
-			margin-top: var(--ck-spacing-small);
-			margin-bottom: var(--ck-spacing-small);
 		}
 
 		& > *:last-child {
@@ -59,6 +55,13 @@
 		}
 	}
 
+	& > .ck-toolbar__items > *,
+	& > .ck.ck-toolbar__grouped-dropdown {
+		/* Make sure items wrapped to the next line have v-spacing */
+		margin-top: var(--ck-spacing-small);
+		margin-bottom: var(--ck-spacing-small);
+	}
+
 	/* Pull the grouped items dropdown to the right */
 	& > .ck.ck-toolbar__grouped-dropdown {
 		margin-left: auto;