Browse Source

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 years ago
parent
commit
0fae5c0063
1 changed files with 3 additions and 3 deletions
  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.
 /* Using absolute units to make sure each element has the same height and padding.
 https://github.com/ckeditor/ckeditor5-heading/issues/63 */
 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));
 }
 }