Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #152 from ckeditor/t/148b
Browse files Browse the repository at this point in the history
Other: Fixed the coloring issue with the multi-color icons. Additionally, moved the visual `.ck-icon` styles from `ckeditor5-ui`. Closes #148.
  • Loading branch information
dkonopka committed Feb 22, 2018
2 parents d81568d + e900c1a commit fbe7e7d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions theme/ckeditor5-ui/components/icon/icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit fbe7e7d

Please sign in to comment.