Skip to content

Commit 9291fb1

Browse files
authored
Merge pull request #921 from ckeditor/t/494
Docs: Increased the specificity of CSS rules. Introduced the .ck class for editor UI components. Closes #494.
2 parents 5861d53 + 4df565e commit 9291fb1

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

docs/assets/snippet-styles.css

+14-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
33
*/
44

5-
.ck-editor {
5+
.ck.ck-editor {
66
margin: 1.5em 0;
77
}
88

@@ -33,7 +33,7 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
3333
display: none !important; /* Firefox is very stubborn. */
3434
}
3535

36-
.ck-reset.ck-list {
36+
.ck.ck-list {
3737
/* See https://github.com/ckeditor/ckeditor5/issues/494 */
3838
margin-left: 0;
3939
}
@@ -62,24 +62,24 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
6262
}
6363

6464
/* https://github.com/ckeditor/ckeditor5/issues/896 */
65-
.live-snippet .ck-content h2,
66-
.live-snippet .ck-content h3,
67-
.live-snippet .ck-content h4 {
65+
.live-snippet .ck.ck-content h2,
66+
.live-snippet .ck.ck-content h3,
67+
.live-snippet .ck.ck-content h4 {
6868
position: static;
6969
}
7070

7171
/* https://github.com/ckeditor/ckeditor5/issues/899 */
72-
.live-snippet .ck-dropdown .ck-list {
72+
.live-snippet .ck-dropdown .ck.ck-list {
7373
margin: 0;
7474
padding: 0;
7575
}
7676

77-
#snippet-inline-editor .ck-editor__editable {
77+
#snippet-inline-editor .ck.ck-editor__editable {
7878
margin-bottom: 1rem;
7979
padding: 2rem;
8080
}
8181

82-
#snippet-inline-editor .ck-editor__editable:not(.ck-focused) {
82+
#snippet-inline-editor .ck.ck-editor__editable:not(.ck-focused) {
8383
border: 1px solid rgba(0, 0, 0, 0.15);
8484
}
8585

@@ -88,14 +88,17 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
8888
padding-top: 0;
8989
border-bottom: 0;
9090
}
91-
#snippet-inline-editor header {
91+
92+
#snippet-inline-editor header.ck-content {
9293
text-align: center;
9394
}
94-
#snippet-inline-editor header h2 {
95+
96+
#snippet-inline-editor header.ck-content h2 {
9597
margin-bottom: 0;
9698
font-size: 2.1rem;
9799
}
98-
#snippet-inline-editor header h3 {
100+
101+
#snippet-inline-editor header.ck-content h3 {
99102
color: rgba(5, 22, 42, 0.59);
100103
font-weight: 600;
101104
font-size: 1.6rem;

0 commit comments

Comments
 (0)