Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
849 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. /**
  2. * heading
  3. *
  4. * loop to create for all heading styles
  5. * creating css-classes with same naming
  6. *
  7. *
  8. * @author Björn Hase
  9. *
  10. */
  11. // text
  12. $heading__font-sizes: (
  13. 'h1': 36px,
  14. 'h2': 30px,
  15. 'h3': 24px,
  16. 'h4': 18px,
  17. 'h5': 14px,
  18. 'h6': 12px
  19. ) !default;
  20. $heading__font-weight: bold !default;
  21. $heading__font-family: Arial, Helvetica, Neue Helvetica, sans-serif !default;
  22. $heading__line-height: 1.5 !default;
  23. $heading__margin: pxToEm(20px) 0 pxToEm(5px) !default;
  24. @mixin crispy-boilerplate-heading {
  25. @each $h, $font-size in $heading__font-sizes {
  26. #{$h}, .#{$h} {
  27. font-family: $heading__font-family;
  28. font-weight: $heading__font-weight;
  29. line-height: $heading__line-height;
  30. margin: $heading__margin;
  31. @include font-size($font-size);
  32. @content;
  33. }
  34. }
  35. }