Procházet zdrojové kódy

Merge branch t/ckeditor5-theme-lark/119

Internal: Added content styles (moved from the theme package were they landed by mistake). See ckeditor/ckeditor5-theme-lark#119.
Piotrek Koszuliński před 8 roky
rodič
revize
2013010895

+ 1 - 1
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-elements.html

@@ -1,7 +1,7 @@
 <style>
 	h2.fancy, .ck-heading_heading2_fancy {
 		color: #ff0050;
-		font-size: 1.3em;
+		font-size: 17px;
 	}
 </style>
 

+ 1 - 1
packages/ckeditor5-heading/docs/features/headings.md

@@ -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>
 

+ 22 - 5
packages/ckeditor5-heading/theme/heading.css

@@ -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;
+}