From e900c1a6428caad7c533869c0540010b8ca86e06 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Thu, 22 Feb 2018 13:25:00 +0100 Subject: [PATCH] Moved the visual .ck-icon styles from ckeditor5-ui. --- theme/ckeditor5-ui/components/icon/icon.css | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/theme/ckeditor5-ui/components/icon/icon.css b/theme/ckeditor5-ui/components/icon/icon.css index c3d0a4b..987d5d0 100644 --- a/theme/ckeditor5-ui/components/icon/icon.css +++ b/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; + } }