8
0

_fonts.scss 807 B

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