Bladeren bron

Docs: Increased the specificity of CSS rules. Introduced the .ck class for editor UI components. Closes #494.

Aleksander Nowodzinski 7 jaren geleden
bovenliggende
commit
a7f5aecc9b
1 gewijzigde bestanden met toevoegingen van 17 en 14 verwijderingen
  1. 17 14
      docs/assets/snippet-styles.css

+ 17 - 14
docs/assets/snippet-styles.css

@@ -2,7 +2,7 @@
  * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  */
 
-.ck-editor {
+.ck.ck-editor {
 	margin: 1.5em 0;
 }
 
@@ -33,13 +33,13 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	display: none !important; /* Firefox is very stubborn. */
 }
 
-.ck-reset.ck-list {
+.ck.ck-list {
 	/* See https://github.com/ckeditor/ckeditor5/issues/494 */
 	margin-left: 0;
 }
 
 /* examples/builds/inline-editor.html */
-.live-snippet .image-style-left, .live-snippet .image-style-right {
+.live-snippet .ck.image-style-left, .live-snippet .ck.image-style-right {
 	float: left;
 	height: auto;
 	width: 50%;
@@ -47,13 +47,13 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	margin-right: 2.5rem;
 }
 
-.live-snippet .image-style-right {
+.live-snippet .ck.image-style-right {
 	float: right;
 	margin-right: 0;
 	margin-left: 2.5rem;
 }
 
-.live-snippet .image img {
+.live-snippet .ck.image img {
 	margin: 0 auto;
 }
 
@@ -62,24 +62,24 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 }
 
 /* https://github.com/ckeditor/ckeditor5/issues/896 */
-.live-snippet .ck-content h2,
-.live-snippet .ck-content h3,
-.live-snippet .ck-content h4 {
+.live-snippet .ck.ck-content h2,
+.live-snippet .ck.ck-content h3,
+.live-snippet .ck.ck-content h4 {
 	position: static;
 }
 
 /* https://github.com/ckeditor/ckeditor5/issues/899 */
-.live-snippet .ck-dropdown .ck-list {
+.live-snippet .ck-dropdown .ck.ck-list {
 	margin: 0;
 	padding: 0;
 }
 
-#snippet-inline-editor .ck-editor__editable {
+#snippet-inline-editor .ck.ck-editor__editable {
 	margin-bottom: 1rem;
 	padding: 2rem;
 }
 
-#snippet-inline-editor .ck-editor__editable:not(.ck-focused) {
+#snippet-inline-editor .ck.ck-editor__editable:not(.ck-focused) {
 	border: 1px solid rgba(0, 0, 0, 0.15);
 }
 
@@ -88,14 +88,17 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	padding-top: 0;
 	border-bottom: 0;
 }
-#snippet-inline-editor header {
+
+#snippet-inline-editor header.ck-content {
 	text-align: center;
 }
-#snippet-inline-editor header h2 {
+
+#snippet-inline-editor header.ck-content h2 {
 	margin-bottom: 0;
 	font-size: 2.1rem;
 }
-#snippet-inline-editor header h3 {
+
+#snippet-inline-editor header.ck-content h3 {
 	color: rgba(5, 22, 42, 0.59);
 	font-weight: 600;
 	font-size: 1.6rem;