瀏覽代碼

Created shared styles for the list dropdown items to keep the spacing and the line-height of the icons the same across the dropdown instances.

Aleksander Nowodzinski 7 年之前
父節點
當前提交
0fae5c0063
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/ckeditor5-theme-lark/theme/ckeditor5-font/fontsize.css

+ 3 - 3
packages/ckeditor5-theme-lark/theme/ckeditor5-font/fontsize.css

@@ -5,7 +5,7 @@
 
 /* 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));
+.ck-dropdown .ck-dropdown__panel .ck-list__item {
+	line-height: calc(.8*var(--ck-line-height-base)*var(--ck-font-size-base));
+	padding: calc(.4*var(--ck-line-height-base)*var(--ck-font-size-base));
 }