Guest User

Untitled

a guest
Jul 16th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. :root {
  2. --font-primary: sans-serif;
  3. --font-secondary: serif;
  4.  
  5. /* set base values */
  6. --text-base-size: 1em;
  7. --text-scale-ratio: 1.2;
  8.  
  9. /* type scale */
  10. --text-xs: calc(1em / (var(--text-scale-ratio) * var(--text-scale-ratio)));
  11. --text-sm: calc(1em / var(--text-scale-ratio));
  12. --text-md: calc(1em * var(--text-scale-ratio));
  13. --text-lg: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio));
  14. --text-xl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
  15. --text-xxl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
  16. --text-xxxl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
  17.  
  18. /* line-height */
  19. --heading-line-height: 1.2;
  20. --body-line-height: 1.4;
  21. }
  22.  
  23. @include breakpoint(md) {
  24. :root {
  25. // you can manage typography changing only these 2 variables
  26. --text-base-size: 1.25em;
  27. --text-scale-ratio: 1.25;
  28. }
  29. }
Add Comment
Please, Sign In to add comment