Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ////
  2. /// Typography
  3. /// @group typography
  4. ///
  5. ////
  6.  
  7. /// Font stack
  8. $font-stack: ('Helvetica', 'Arial', sans-serif);
  9.  
  10.  
  11. /// Font variables for basic font settings and font-sizes
  12. /// @example
  13. /// .element {
  14. /// font-size: font(size, 'xxl');
  15. /// line-height: font(base, 'line-height');
  16. /// }
  17. $fonts: (
  18. base: (
  19. 'stack': $font-stack,
  20. 'sans-serif': ('brandon-grotesque', #{$font-stack}),
  21. 'serif': ('minion-pro', serif),
  22. 'size': 100%,
  23. 'line-height': 1.4,
  24. 'regular-weight': 400,
  25. 'thin-weight': 200
  26. ),
  27. size: (
  28. 'xxs': 12px,
  29. 'xs': 13px,
  30. 's': 15px,
  31. 'm': 16px,
  32. 'l': 18px,
  33. 'xl': 21px,
  34. 'xxl': 24px,
  35. 'xxxl': 28px,
  36. 'xxxxl': 32px,
  37. 'xxxxxl': 38px,
  38. 'xxxxxxl': 52px
  39. )
  40. );
  41.  
  42. /// Function to parse font map
  43. @function font($font, $type: 'base') {
  44. @return map-get(map-get($fonts, $font), $type);
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement