type.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. // MISC
  120. // ----
  121. // Horizontal rules
  122. hr {
  123. margin: @baseLineHeight 0;
  124. border: 0;
  125. border-top: 1px solid @hrBorder;
  126. border-bottom: 1px solid @white;
  127. }
  128. // Abbreviations and acronyms
  129. abbr[title],
  130. // Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
  131. abbr[data-original-title] {
  132. cursor: help;
  133. border-bottom: 1px dotted @grayLight;
  134. }
  135. abbr.initialism {
  136. font-size: 90%;
  137. text-transform: uppercase;
  138. }
  139. // Blockquotes
  140. blockquote {
  141. padding: 0 0 0 15px;
  142. margin: 0 0 @baseLineHeight;
  143. border-left: 5px solid @grayLighter;
  144. p {
  145. margin-bottom: 0;
  146. font-size: @baseFontSize * 1.25;
  147. font-weight: 300;
  148. line-height: 1.25;
  149. }
  150. small {
  151. display: block;
  152. line-height: @baseLineHeight;
  153. color: @grayLight;
  154. &:before {
  155. content: '\2014 \00A0';
  156. }
  157. }
  158. // Float right with text-align: right
  159. &.pull-right {
  160. float: right;
  161. padding-right: 15px;
  162. padding-left: 0;
  163. border-right: 5px solid @grayLighter;
  164. border-left: 0;
  165. p,
  166. small {
  167. text-align: right;
  168. }
  169. small {
  170. &:before {
  171. content: '';
  172. }
  173. &:after {
  174. content: '\00A0 \2014';
  175. }
  176. }
  177. }
  178. }
  179. // Quotes
  180. q:before,
  181. q:after,
  182. blockquote:before,
  183. blockquote:after {
  184. content: "";
  185. }
  186. // Addresses
  187. address {
  188. display: block;
  189. margin-bottom: @baseLineHeight;
  190. font-style: normal;
  191. line-height: @baseLineHeight;
  192. }
  193. a.external-link {
  194. color: @blue;
  195. text-decoration: underline;
  196. }
  197. .link {
  198. color: @linkColor;
  199. cursor: pointer;
  200. }
  201. .link:hover {
  202. color: @linkColorHover;
  203. }
  204. .pointer {
  205. cursor: pointer;
  206. }