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.

_type.scss 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // Headings
  3. //
  4. h1, h2, h3, h4, h5, h6,
  5. .h1, .h2, .h3, .h4, .h5, .h6 {
  6. margin-bottom: $headings-margin-bottom;
  7. font-family: $headings-font-family;
  8. font-weight: $headings-font-weight;
  9. line-height: $headings-line-height;
  10. color: $headings-color;
  11. }
  12. h1 { font-size: $font-size-h1; }
  13. h2 { font-size: $font-size-h2; }
  14. h3 { font-size: $font-size-h3; }
  15. h4 { font-size: $font-size-h4; }
  16. h5 { font-size: $font-size-h5; }
  17. h6 { font-size: $font-size-h6; }
  18. // These declarations are kept separate from and placed after
  19. // the previous tag-based declarations so that the classes beat the tags in
  20. // the CSS cascade, and thus <h1 class="h2"> will be styled like an h2.
  21. .h1 { font-size: $font-size-h1; }
  22. .h2 { font-size: $font-size-h2; }
  23. .h3 { font-size: $font-size-h3; }
  24. .h4 { font-size: $font-size-h4; }
  25. .h5 { font-size: $font-size-h5; }
  26. .h6 { font-size: $font-size-h6; }
  27. .lead {
  28. font-size: $lead-font-size;
  29. font-weight: $lead-font-weight;
  30. }
  31. // Type display classes
  32. .display-1 {
  33. font-size: $display1-size;
  34. font-weight: $display1-weight;
  35. }
  36. .display-2 {
  37. font-size: $display2-size;
  38. font-weight: $display2-weight;
  39. }
  40. .display-3 {
  41. font-size: $display3-size;
  42. font-weight: $display3-weight;
  43. }
  44. .display-4 {
  45. font-size: $display4-size;
  46. font-weight: $display4-weight;
  47. }
  48. //
  49. // Horizontal rules
  50. //
  51. hr {
  52. margin-top: $spacer-y;
  53. margin-bottom: $spacer-y;
  54. border: 0;
  55. border-top: $hr-border-width solid $hr-border-color;
  56. }
  57. //
  58. // Emphasis
  59. //
  60. small,
  61. .small {
  62. font-size: 80%;
  63. font-weight: normal;
  64. }
  65. mark,
  66. .mark {
  67. padding: .2em;
  68. background-color: $state-warning-bg;
  69. }
  70. //
  71. // Lists
  72. //
  73. .list-unstyled {
  74. @include list-unstyled;
  75. }
  76. // Inline turns list items into inline-block
  77. .list-inline {
  78. @include list-unstyled;
  79. }
  80. .list-inline-item {
  81. display: inline-block;
  82. &:not(:last-child) {
  83. margin-right: $list-inline-padding;
  84. }
  85. }
  86. // Horizontal description lists w/ grid classes
  87. .dl-horizontal {
  88. margin-right: -$grid-gutter-width;
  89. margin-left: -$grid-gutter-width;
  90. @include clearfix;
  91. }
  92. //
  93. // Misc
  94. //
  95. // Builds on `abbr`
  96. .initialism {
  97. font-size: 90%;
  98. text-transform: uppercase;
  99. }
  100. // Blockquotes
  101. .blockquote {
  102. padding: ($spacer / 2) $spacer;
  103. margin-bottom: $spacer;
  104. font-size: $blockquote-font-size;
  105. border-left: .25rem solid $blockquote-border-color;
  106. }
  107. .blockquote-footer {
  108. display: block;
  109. font-size: 80%; // back to default font-size
  110. line-height: $line-height;
  111. color: $blockquote-small-color;
  112. &::before {
  113. content: "\2014 \00A0"; // em dash, nbsp
  114. }
  115. }
  116. // Opposite alignment of blockquote
  117. .blockquote-reverse {
  118. padding-right: $spacer;
  119. padding-left: 0;
  120. text-align: right;
  121. border-right: .25rem solid $blockquote-border-color;
  122. border-left: 0;
  123. }
  124. .blockquote-reverse .blockquote-footer {
  125. &::before {
  126. content: "";
  127. }
  128. &::after {
  129. content: "\00A0 \2014"; // nbsp, em dash
  130. }
  131. }