浏览代码

Made vertical toolbar items span horizontally without any margins.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
cf18801316
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css

+ 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;
 	}