icon.css 612 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * Default width/height of an icon. Note that it equals the default
  7. * height of the line of text, so e.g. it matches the height of the
  8. * button's label.
  9. */
  10. :root {
  11. --ck-icon-min-size: calc(var(--ck-font-size-base) * var(--ck-line-height-base));
  12. }
  13. svg.ck-icon {
  14. width: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
  15. height: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
  16. min-width: var(--ck-icon-min-size);
  17. min-height: var(--ck-icon-min-size);
  18. }