type.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. //
  2. // Typography
  3. // --------------------------------------------------
  4. // Body text
  5. // -------------------------
  6. p {
  7. margin: 0 0 $baseLineHeight / 2;
  8. }
  9. .lead {
  10. margin-bottom: $baseLineHeight;
  11. font-size: $baseFontSize * 1.5;
  12. font-weight: 200;
  13. line-height: $baseLineHeight * 1.5;
  14. }
  15. // Emphasis & misc
  16. // -------------------------
  17. // Ex: 14px base font * 85% = about 12px
  18. .small, small { font-size: 85%; }
  19. .large { font-size: 120%; }
  20. strong { font-weight: bold; }
  21. em { font-style: italic; color: $headingsColor; }
  22. cite { font-style: normal; }
  23. // Utility classes
  24. .muted { color: $grayLight; }
  25. a.muted:hover,
  26. a.muted:focus { color: darken($grayLight, 10%); }
  27. .text-warning { color: $warningText; }
  28. a.text-warning:hover,
  29. a.text-warning:focus { color: darken($warningText, 10%); }
  30. .text-error { color: $errorText; }
  31. a.text-error:hover,
  32. a.text-error:focus { color: darken($errorText, 10%); }
  33. .text-info { color: $infoText; }
  34. a.text-info:hover,
  35. a.text-info:focus { color: darken($infoText, 10%); }
  36. .text-success { color: $successText; }
  37. a.text-success:hover,
  38. a.text-success:focus { color: darken($successText, 10%); }
  39. a { cursor: pointer; }
  40. .text-left { text-align: left; }
  41. .text-right { text-align: right; }
  42. .text-center { text-align: center; }
  43. // Headings
  44. // -------------------------
  45. h1, h2, h3, h4, h5, h6 {
  46. margin: ($baseLineHeight / 2) 0;
  47. font-family: $headingsFontFamily;
  48. font-weight: $headingsFontWeight;
  49. line-height: $baseLineHeight;
  50. color: $headingsColor;
  51. text-rendering: optimizelegibility; // Fix the character spacing for headings
  52. font-style: $headingsFontStyle;
  53. small {
  54. font-weight: normal;
  55. line-height: 1;
  56. color: $grayLight;
  57. }
  58. }
  59. h1,
  60. h2,
  61. h3 { line-height: $baseLineHeight * 2; }
  62. h1 { font-size: $baseFontSize * 2.00; } // ~38px
  63. h2 { font-size: $baseFontSize * 1.75; } // ~32px
  64. h3 { font-size: $baseFontSize * 1.50; } // ~24px
  65. h4 { font-size: $baseFontSize * 1.25; } // ~18px
  66. h5 { font-size: $baseFontSize; }
  67. h6 { font-size: $baseFontSize * 0.85; } // ~12px
  68. h1 small { font-size: $baseFontSize * 1.75; } // ~24px
  69. h2 small { font-size: $baseFontSize * 1.25; } // ~18px
  70. h3 small { font-size: $baseFontSize; }
  71. h4 small { font-size: $baseFontSize; }
  72. // Lists
  73. // --------------------------------------------------
  74. // Unordered and Ordered lists
  75. ul, ol {
  76. padding: 0;
  77. margin: 0 0 $baseLineHeight / 2 25px;
  78. }
  79. ul ul,
  80. ul ol,
  81. ol ol,
  82. ol ul {
  83. margin-bottom: 0;
  84. }
  85. li {
  86. line-height: $baseLineHeight;
  87. }
  88. // Remove default list styles
  89. ul.unstyled,
  90. ol.unstyled {
  91. margin-left: 0;
  92. list-style: none;
  93. }
  94. // Single-line list items
  95. ul.inline,
  96. ol.inline {
  97. margin-left: 0;
  98. list-style: none;
  99. > li {
  100. display: inline-block;
  101. padding-left: 5px;
  102. padding-right: 5px;
  103. }
  104. }
  105. // Description Lists
  106. dl {
  107. margin-bottom: $baseLineHeight;
  108. }
  109. dt,
  110. dd {
  111. line-height: $baseLineHeight;
  112. }
  113. dt {
  114. font-weight: bold;
  115. }
  116. dd {
  117. margin-left: $baseLineHeight / 2;
  118. }
  119. // Horizontal layout (like forms)
  120. .dl-horizontal {
  121. @include clearfix();
  122. dt {
  123. float: left;
  124. width: $horizontalComponentOffset - 20;
  125. clear: left;
  126. text-align: right;
  127. @include text-overflow();
  128. }
  129. dd {
  130. margin-left: $horizontalComponentOffset;
  131. }
  132. }
  133. // MISC
  134. // ----
  135. // Horizontal rules
  136. hr {
  137. margin: $baseLineHeight 0;
  138. border: 0;
  139. border-top: 1px solid $hrBorder;
  140. border-bottom: 1px solid $white;
  141. }
  142. // Abbreviations and acronyms
  143. abbr[title],
  144. // Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
  145. abbr[data-original-title] {
  146. cursor: help;
  147. border-bottom: 1px dotted $grayLight;
  148. }
  149. abbr.initialism {
  150. font-size: 90%;
  151. text-transform: uppercase;
  152. }
  153. // Blockquotes
  154. blockquote {
  155. padding: 0 0 0 15px;
  156. margin: 0 0 $baseLineHeight;
  157. border-left: 5px solid $grayLighter;
  158. p {
  159. margin-bottom: 0;
  160. font-size: $baseFontSize * 1.25;
  161. font-weight: 300;
  162. line-height: 1.25;
  163. }
  164. small {
  165. display: block;
  166. line-height: $baseLineHeight;
  167. color: $grayLight;
  168. &:before {
  169. content: '\2014 \00A0';
  170. }
  171. }
  172. // Float right with text-align: right
  173. &.pull-right {
  174. float: right;
  175. padding-right: 15px;
  176. padding-left: 0;
  177. border-right: 5px solid $grayLighter;
  178. border-left: 0;
  179. p,
  180. small {
  181. text-align: right;
  182. }
  183. small {
  184. &:before {
  185. content: '';
  186. }
  187. &:after {
  188. content: '\00A0 \2014';
  189. }
  190. }
  191. }
  192. }
  193. // Quotes
  194. q:before,
  195. q:after,
  196. blockquote:before,
  197. blockquote:after {
  198. content: "";
  199. }
  200. // Addresses
  201. address {
  202. display: block;
  203. margin-bottom: $baseLineHeight;
  204. font-style: normal;
  205. line-height: $baseLineHeight;
  206. }
  207. a.external-link {
  208. color: $blue;
  209. text-decoration: underline;
  210. }
  211. .link {
  212. color: $linkColor;
  213. cursor: pointer;
  214. }
  215. .link:hover {
  216. color: $linkColorHover;
  217. }
  218. .pointer {
  219. cursor: pointer;
  220. }