瀏覽代碼

Make font-size option configuration reflect dropdown items UI.

Maciej Gołaszewski 7 年之前
父節點
當前提交
84daad5028
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      packages/ckeditor5-theme-lark/theme/ckeditor5-font/fontsize.css

+ 11 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-font/fontsize.css

@@ -0,0 +1,11 @@
+/*
+ * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+/* Using absolute units to make sure each element has the same height and padding.
+https://github.com/ckeditor/ckeditor5-heading/issues/63 */
+.ck-fontsize-option {
+	line-height: calc(1.8 * var(--ck-font-size-base));
+	padding: calc(0.8 * var(--ck-font-size-base));
+}