_typography.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. html *{
  2. -webkit-font-smoothing: antialiased;
  3. -moz-osx-font-smoothing: grayscale;
  4. }
  5. body {
  6. font-weight: $font-weight-normal;
  7. line-height: $p-line-height;
  8. }
  9. h1, .h1 {
  10. font-size: $h1-font-size;
  11. line-height: $h1-line-height;
  12. letter-spacing: $btn-letter-spacing;
  13. @include media-breakpoint-down(sm) {
  14. font-size: rfs-fluid-value($h1-font-size);
  15. }
  16. }
  17. h2, .h2 {
  18. font-size: $h2-font-size;
  19. line-height: $h2-line-height;
  20. letter-spacing: $letter-wider;
  21. @include media-breakpoint-down(sm) {
  22. font-size: rfs-fluid-value($h2-font-size);
  23. }
  24. }
  25. h3, .h3 {
  26. font-size: $h3-font-size;
  27. line-height: $h3-line-height;
  28. @include media-breakpoint-down(sm) {
  29. font-size: rfs-fluid-value($h3-font-size);
  30. }
  31. }
  32. h4, .h4 {
  33. font-size: $h4-font-size;
  34. line-height: $h4-line-height;
  35. @include media-breakpoint-down(sm) {
  36. font-size: rfs-fluid-value($h4-font-size);
  37. }
  38. }
  39. h5, .h5 {
  40. font-size: $h5-font-size;
  41. line-height: $h5-line-height;
  42. @include media-breakpoint-down(sm) {
  43. font-size: rfs-fluid-value($h5-font-size);
  44. }
  45. }
  46. h6, .h6 {
  47. font-size: $h6-font-size;
  48. line-height: $h6-line-height;
  49. }
  50. p, .p {
  51. font-size: $font-size-base;
  52. font-weight: $p-font-weight;
  53. line-height: $p-line-height;
  54. }
  55. .lead {
  56. font-size: $lead-font-size;
  57. font-weight: $lead-font-weight;
  58. line-height: $lead-line-height;
  59. }
  60. h1, .h1,
  61. h2, .h2,
  62. h3, .h3 {
  63. font-weight: $font-weight-bolder;
  64. }
  65. h4, .h4,
  66. h5, .h5,
  67. h6, .h6 {
  68. font-weight: $font-weight-bold;
  69. }
  70. h1, .h1,
  71. h2, .h2,
  72. h3, .h3,
  73. h4, .h4 {
  74. letter-spacing: $letter-tighter;
  75. }
  76. a {
  77. letter-spacing: $a-letter-spacing;
  78. color: $dark;
  79. }
  80. .text-sm {
  81. line-height: $text-sm-line-height;
  82. }
  83. .text-xs {
  84. line-height: $text-xs-line-height;
  85. }
  86. p, .p {
  87. @include font-size($p-font-size);
  88. }
  89. .lead {
  90. @include font-size($lead-font-size);
  91. }
  92. .text-lg {
  93. @include font-size($font-size-lg !important);
  94. }
  95. .text-sm {
  96. @include font-size($font-size-sm !important);
  97. }
  98. .text-xs {
  99. @include font-size($font-size-xs !important);
  100. }
  101. .text-xxs {
  102. @include font-size($font-size-xxs !important);
  103. }
  104. p {
  105. line-height: 1.625;
  106. font-weight: $font-weight-normal;
  107. }
  108. // stylelint-disable declaration-no-important
  109. //
  110. // Text
  111. //
  112. .text-sans-serif {
  113. font-family: $font-family-sans-serif !important;
  114. }
  115. .text-monospace {
  116. font-family: $font-family-monospace !important;
  117. }
  118. // Alignment
  119. .text-justify {
  120. text-align: justify !important;
  121. }
  122. .text-wrap {
  123. white-space: normal !important;
  124. }
  125. .text-nowrap {
  126. white-space: nowrap !important;
  127. }
  128. .text-truncate {
  129. @include text-truncate();
  130. }
  131. // Weight and italics
  132. .font-weight-light {
  133. font-weight: $font-weight-light !important;
  134. }
  135. .font-weight-lighter {
  136. font-weight: $font-weight-lighter !important;
  137. }
  138. .font-weight-normal {
  139. font-weight: $font-weight-normal !important;
  140. }
  141. .font-weight-bold {
  142. font-weight: $font-weight-bold !important;
  143. }
  144. .font-weight-bolder {
  145. font-weight: $font-weight-bolder !important;
  146. }
  147. .font-italic {
  148. font-style: italic !important;
  149. }
  150. // Contextual colors
  151. .text-gradient {
  152. background-clip: $text-gradient-bg-clip;
  153. -webkit-background-clip: $text-gradient-bg-clip;
  154. -webkit-text-fill-color: $text-gradient-text-fill;
  155. position: $text-gradient-position;
  156. z-index: $text-gradient-zindex;
  157. &.text-primary {
  158. background-image: $text-gradient-bg-primary;
  159. }
  160. &.text-info {
  161. background-image: $text-gradient-bg-info;
  162. }
  163. &.text-success {
  164. background-image: $text-gradient-bg-success;
  165. }
  166. &.text-warning {
  167. background-image: $text-gradient-bg-warning;
  168. }
  169. &.text-danger {
  170. background-image: $text-gradient-bg-danger;
  171. }
  172. &.text-dark {
  173. background-image: $text-gradient-bg-dark;
  174. }
  175. }
  176. .blockquote {
  177. border-left: 3px solid $text-muted;
  178. > span {
  179. font-style: italic;
  180. }
  181. }
  182. .text-muted {
  183. color: $text-secondary !important;
  184. }
  185. .text-black-50 {
  186. color: rgba($black, .5) !important;
  187. }
  188. .text-white-50 {
  189. color: rgba($white, .5) !important;
  190. }
  191. .text-decoration-none {
  192. text-decoration: none !important;
  193. }
  194. .text-break {
  195. word-wrap: break-word !important;
  196. }
  197. // Reset
  198. .text-reset {
  199. color: inherit !important;
  200. }
  201. // Letter Spacing
  202. .letter-wider {
  203. letter-spacing: $letter-wider;
  204. }
  205. .letter-normal {
  206. letter-spacing: $letter-normal;
  207. }
  208. .letter-tighter {
  209. letter-spacing: $letter-tighter;
  210. }
  211. // Font Weight
  212. .text-lighter {
  213. font-weight: $font-weight-lighter;
  214. }
  215. .text-light {
  216. font-weight: $font-weight-light;
  217. }
  218. .text-normal {
  219. font-weight: $font-weight-normal;
  220. }
  221. .text-bold {
  222. font-weight: $font-weight-bold;
  223. }
  224. .text-bolder {
  225. font-weight: $font-weight-bolder;
  226. }
  227. // Font Size
  228. .text-2xl {
  229. font-size: $font-size-2xl;
  230. }
  231. .text-3xl {
  232. font-size: $font-size-3xl;
  233. }
  234. .text-4xl {
  235. font-size: $font-size-4xl;
  236. }
  237. .text-5xl {
  238. font-size: $font-size-5xl;
  239. }
  240. .text-6xl {
  241. font-size: $font-size-6xl;
  242. }
  243. .text-7xl {
  244. font-size: $font-size-7xl;
  245. }
  246. .text-8xl {
  247. font-size: $font-size-8xl;
  248. }
  249. .text-9xl {
  250. font-size: $font-size-9xl;
  251. }