Sfoglia il codice sorgente

Other: Increased the specificity of CSS rules. Introduced the .ck class for editor UI components (see: ckeditor/ckeditor5#494).

Aleksander Nowodzinski 7 anni fa
parent
commit
febcf4bf19

+ 5 - 5
packages/ckeditor5-editor-classic/theme/classiceditor.css

@@ -3,14 +3,14 @@
  * For licensing, see LICENSE.md.
  */
 
-.ck-editor {
+.ck.ck-editor {
 	/* All the elements within `.ck-editor` are positioned relatively to it.
 	 If any element needs to be positioned with respect to the <body>, etc.,
 	 it must land outside of the `.ck-editor` in DOM. */
 	position: relative;
-}
 
-.ck-editor__top .ck-sticky-panel .ck-toolbar {
-	/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
-	z-index: var(--ck-z-modal);
+	& .ck-editor__top .ck-sticky-panel .ck-toolbar {
+		/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
+		z-index: var(--ck-z-modal);
+	}
 }