浏览代码

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

Aleksander Nowodzinski 7 年之前
父节点
当前提交
febcf4bf19
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      packages/ckeditor5-editor-classic/theme/classiceditor.css

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