浏览代码

Prefix font styles through the `.ck-content` class.

panr 5 年之前
父节点
当前提交
c61ef95964
共有 1 个文件被更改,包括 16 次插入11 次删除
  1. 16 11
      packages/ckeditor5-font/theme/fontsize.css

+ 16 - 11
packages/ckeditor5-font/theme/fontsize.css

@@ -4,18 +4,23 @@
  */
 
 /* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */
-.text-tiny {
-	font-size: .7em;
-}
 
-.text-small {
-	font-size: .85em;
-}
+/* Styles should be prefixed through the `.ck-content` class.
+See https://github.com/ckeditor/ckeditor5/issues/6636 */
+.ck-content {
+	& .text-tiny {
+		font-size: .7em;
+	}
 
-.text-big {
-	font-size: 1.4em;
-}
+	& .text-small {
+		font-size: .85em;
+	}
+
+	& .text-big {
+		font-size: 1.4em;
+	}
 
-.text-huge {
-	font-size: 1.8em;
+	& .text-huge {
+		font-size: 1.8em;
+	}
 }