_fonts.scss 748 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. /**
  4. * Base font size.
  5. *
  6. * @see $ck-font-sizes
  7. */
  8. $ck-font-size-base: 12px !default;
  9. /**
  10. * Base font face.
  11. *
  12. */
  13. $ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif !default;
  14. /**
  15. * Base font sizes for scaling.
  16. *
  17. * @see ck-font-size
  18. */
  19. $ck-font-sizes: (
  20. -2: 0.7rem,
  21. -1: 0.75rem,
  22. 0: 1rem,
  23. 1: 1.4rem,
  24. 2: 1.8rem
  25. );
  26. /**
  27. * Returns font-size in units for given level.
  28. *
  29. * @param {Number} $level [ 0 ] - Size of the font.
  30. * @return {String}
  31. * @see $ck-font-sizes
  32. * @see $ck-font-size-base
  33. */
  34. @function ck-font-size( $level: 0 ) {
  35. @return map-get( $ck-font-sizes, $level );
  36. }