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.

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