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

Commit

Permalink
Merge pull request #67 from ckeditor/t/63
Browse files Browse the repository at this point in the history
Other: Introduced consistent height and spacing among headings dropdown items. Closes #63.
  • Loading branch information
szymonkups authored Mar 16, 2017
2 parents e58dadc + 486e6ec commit 68d93ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@ckeditor/ckeditor5-ui": "^0.7.1",
"@ckeditor/ckeditor5-utils": "^0.8.0",
"@ckeditor/ckeditor5-engine": "^0.8.0",
"@ckeditor/ckeditor5-paragraph": "^0.6.1"
"@ckeditor/ckeditor5-paragraph": "^0.6.1",
"@ckeditor/ckeditor5-theme-lark": "^0.6.1"
},
"devDependencies": {
"@ckeditor/ckeditor5-dev-lint": "^2.0.2",
Expand Down
11 changes: 11 additions & 0 deletions theme/theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.md or http://ckeditor.com/license

@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_spacing';
@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_fonts';

.ck-heading_heading {
&1 {
font-size: 1.5em;
Expand All @@ -15,6 +18,14 @@
}
}

// Using absolute units to make sure each element has the same height and padding.
// https://github.com/ckeditor/ckeditor5-heading/issues/63
[class*="ck-heading_"] {
line-height: 1.8 * $ck-font-size-base;
// Strip the units from $ck-def-spacing here.
padding: $ck-def-spacing / ( $ck-def-spacing * 0 + 1 ) * $ck-font-size-base;
}

[class*="ck-heading_heading"] {
font-weight: bold;
}

0 comments on commit 68d93ff

Please sign in to comment.