Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Created shared styles for list dropdown items to ensure a c…
Browse files Browse the repository at this point in the history
…onsistent look across the features (see ckeditor/ckeditor5-font#4).
  • Loading branch information
oleq committed Feb 15, 2018
2 parents c733c6d + e2a7062 commit 012d606
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions theme/ckeditor5-ui/components/dropdown/listdropdown.css
Original file line number Diff line number Diff line change
@@ -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-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));
}

0 comments on commit 012d606

Please sign in to comment.