ソースを参照

Moved the visual .ck-icon styles from ckeditor5-ui.

Aleksander Nowodzinski 7 年 前
コミット
b26c1a6b9d

+ 22 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css

@@ -10,4 +10,26 @@
 svg.ck-icon {
 	width: var(--ck-icon-size);
 	height: var(--ck-icon-size);
+
+	/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
+	font-size: .8333350694em;
+
+	color: inherit;
+
+	/* Inherit cursor style (#5). */
+	cursor: inherit;
+
+	/* This will prevent blurry icons on Firefox. See #340. */
+	will-change: transform;
+
+	& * {
+		/* Inherit cursor style (#5). */
+		cursor: inherit;
+
+		/* Allows dynamic coloring of the icons. */
+		color: inherit;
+
+		/* Needed by FF. */
+		fill: currentColor;
+	}
 }