_type.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Typography
  2. //
  3. // Headings, body text, lists, and other misc typographic elements.
  4. h1, h2, h3, h4, h5, h6 {
  5. margin-bottom: .5rem;
  6. font-weight: bold;
  7. line-height: 1.25;
  8. color: #313131;
  9. text-rendering: optimizeLegibility;
  10. }
  11. h1 {
  12. font-size: 2rem;
  13. }
  14. h2 {
  15. margin-top: 1rem;
  16. font-size: 1.5rem;
  17. }
  18. h3 {
  19. margin-top: 1.5rem;
  20. font-size: 1.25rem;
  21. }
  22. h4, h5, h6 {
  23. margin-top: 1rem;
  24. font-size: 1rem;
  25. }
  26. p {
  27. margin-top: 0;
  28. margin-bottom: 1rem;
  29. }
  30. strong {
  31. color: #303030;
  32. }
  33. ul, ol, dl {
  34. margin-top: 0;
  35. margin-bottom: 1rem;
  36. }
  37. dt {
  38. font-weight: bold;
  39. }
  40. dd {
  41. margin-bottom: .5rem;
  42. }
  43. hr {
  44. position: relative;
  45. margin: 1.5rem 0;
  46. border: 0;
  47. border-top: 1px solid #eee;
  48. border-bottom: 1px solid #fff;
  49. }
  50. abbr {
  51. font-size: 85%;
  52. font-weight: bold;
  53. color: #555;
  54. text-transform: uppercase;
  55. &[title] {
  56. cursor: help;
  57. border-bottom: 1px dotted #e5e5e5;
  58. }
  59. }
  60. blockquote {
  61. padding: .5rem 1rem;
  62. margin: .8rem 0;
  63. color: #7a7a7a;
  64. border-left: .25rem solid #e5e5e5;
  65. p:last-child {
  66. margin-bottom: 0;
  67. }
  68. @media (min-width: 30em) {
  69. padding-right: 5rem;
  70. padding-left: 1.25rem;
  71. }
  72. }
  73. // Custom type
  74. //
  75. // Extend paragraphs with `.lead` for larger introductory text.
  76. .lead {
  77. font-size: 1.25rem;
  78. font-weight: 300;
  79. }