_type.scss 1.3 KB

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