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

Commit

Permalink
Merge branch t/ckeditor5-theme-lark/119
Browse files Browse the repository at this point in the history
Internal: Added content styles (moved from the theme package were they landed by mistake). See ckeditor/ckeditor5-theme-lark#119.
  • Loading branch information
Reinmar committed Feb 6, 2018
2 parents 068f573 + 5d235f8 commit 5574c7e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/_snippets/features/custom-heading-elements.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<style>
h2.fancy, .ck-heading_heading2_fancy {
color: #ff0050;
font-size: 1.3em;
font-size: 17px;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion docs/features/headings.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ For example, the following editor will support the following two heading options
// Styles for the heading in the content and for the dropdown item.
h2.fancy, .ck-heading_heading2_fancy {
color: #ff0050;
font-size: 1.3em;
font-size: 17px;
}
</style>

Expand Down
27 changes: 22 additions & 5 deletions theme/heading.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@
* For licensing, see LICENSE.md.
*/

/*
* Note: This file should contain the wireframe styles only. But since there are no such styles,
* it acts as a message to the builder telling that it should look for the corresponding styles
* **in the theme** when compiling the editor.
*/
.ck-heading_heading1 {
font-size: 20px;
}

.ck-heading_heading2 {
font-size: 17px;
}

.ck-heading_heading3 {
font-size: 14px;
}

/* 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: 18px;
padding: 11px;
}

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

0 comments on commit 5574c7e

Please sign in to comment.