8
0

icon.css 811 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. :root {
  6. --ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
  7. }
  8. .ck.ck-icon {
  9. width: var(--ck-icon-size);
  10. height: var(--ck-icon-size);
  11. /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
  12. font-size: .8333350694em;
  13. color: inherit;
  14. /* Inherit cursor style (#5). */
  15. cursor: inherit;
  16. /* This will prevent blurry icons on Firefox. See #340. */
  17. will-change: transform;
  18. & * {
  19. /* Inherit cursor style (#5). */
  20. cursor: inherit;
  21. /* Allows dynamic coloring of the icons. */
  22. color: inherit;
  23. &:not([fill]) {
  24. /* Needed by FF. */
  25. fill: currentColor;
  26. }
  27. }
  28. }