typography.scss 439 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Headings
  2. // Apply margin above the heading only when it has a sibling
  3. h1,
  4. h2,
  5. h3,
  6. h4,
  7. h5,
  8. h6,
  9. .h1,
  10. .h2,
  11. .h3,
  12. .h4,
  13. .h5,
  14. .h6 {
  15. * > * + & {
  16. margin-top: $spacing-08;
  17. }
  18. }
  19. h1,
  20. .h1 {
  21. @include heading-xl;
  22. }
  23. h2,
  24. .h2 {
  25. @include heading-md;
  26. }
  27. h3,
  28. .h3 {
  29. @include heading-sm;
  30. }
  31. h4,
  32. .h4 {
  33. @include heading-xs;
  34. }
  35. h5,
  36. .h5 {
  37. @include body-base;
  38. }
  39. h6,
  40. .h6 {
  41. @include body-sm;
  42. }
  43. // Miscellaneous
  44. .small {
  45. @include body-sm;
  46. }