_typography.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. // Body Base
  2. html, body, button, input, select, textarea, .pure-g, .pure-g [class *= "pure-u"] {
  3. font-family: $font-family-default;
  4. font-weight: 400;
  5. }
  6. // Headings
  7. h1, h2, h3, h4, h5, h6 {
  8. font-family: $font-family-header;
  9. font-weight: 400;
  10. text-rendering: optimizeLegibility;
  11. letter-spacing: -0px;
  12. }
  13. h1 {
  14. font-size: $h1-font-size;
  15. @include breakpoint(mobile-only) {
  16. font-size: 2.5rem;
  17. line-height: 1.2;
  18. margin-bottom: 2.5rem;
  19. }
  20. }
  21. h2 {
  22. @include breakpoint(tablet-range) {
  23. font-size: $h2-font-size - .40;
  24. }
  25. @include breakpoint(mobile-only) {
  26. font-size: $h2-font-size - .50;
  27. }
  28. }
  29. h3 {
  30. @include breakpoint(tablet-range) {
  31. font-size: $h3-font-size - .40;
  32. }
  33. @include breakpoint(mobile-only) {
  34. font-size: $h3-font-size - .50;
  35. }
  36. }
  37. h4 {
  38. @include breakpoint(tablet-range) {
  39. font-size: $h4-font-size - .40;
  40. }
  41. @include breakpoint(mobile-only) {
  42. font-size: $h4-font-size - .50;
  43. }
  44. }
  45. h1 {
  46. text-align: center;
  47. letter-spacing: -3px;
  48. font-size: 2.5rem!important;
  49. }
  50. h2 {
  51. letter-spacing: -2px;
  52. }
  53. h3 {
  54. letter-spacing: -1px;
  55. }
  56. h1 + h2 {
  57. margin: -2rem 0 2rem 0;
  58. @include breakpoint(tablet-range) {
  59. }
  60. @include breakpoint(mobile-only) {
  61. font-size: 1.5rem;
  62. }
  63. line-height: 1;
  64. text-align: center;
  65. font-family: $font-family-default;
  66. font-weight: 300;
  67. }
  68. h2 + h3 {
  69. margin: 0.5rem 0 2rem 0;
  70. font-size: 2rem;
  71. @include breakpoint(tablet-range) {
  72. font-size: 1.6rem;
  73. }
  74. @include breakpoint(mobile-only) {
  75. font-size: 1.5rem;
  76. }
  77. line-height: 1;
  78. text-align: center;
  79. font-family: $font-family-default;
  80. font-weight: 300;
  81. }
  82. // Blockquote
  83. blockquote {
  84. border-left: 10px solid $rule-color;
  85. p {
  86. font-size: 1.1rem;
  87. color: #999;
  88. }
  89. cite {
  90. display: block;
  91. text-align: right;
  92. color: #666;
  93. font-size: 1.2rem;
  94. }
  95. }
  96. // NOTES!!!!
  97. blockquote > blockquote > blockquote {
  98. margin: 0;
  99. p {
  100. padding: 15px;
  101. display: block;
  102. font-size: 1rem;
  103. margin-top: 0rem;
  104. margin-bottom: 0rem;
  105. }
  106. > p {
  107. // Yellow
  108. margin-left: -71px;
  109. border-left: 10px solid $notes-info-border;
  110. background: $notes-info-bg;
  111. color: darken($notes-info-border,15%);
  112. a {
  113. color: darken($notes-info-border,25%);
  114. &:hover {
  115. color: lighten($notes-info-border,5%);
  116. }
  117. }
  118. }
  119. > blockquote > p {
  120. // Red
  121. margin-left: -94px;
  122. border-left: 10px solid $notes-warning-border;
  123. background: $notes-warning-bg;
  124. color: darken($notes-warning-border,15%);
  125. a {
  126. color: darken($notes-warning-border,25%);
  127. &:hover {
  128. color: lighten($notes-warning-border,5%);
  129. }
  130. }
  131. }
  132. > blockquote > blockquote > p {
  133. // Blue
  134. margin-left: -118px;
  135. border-left: 10px solid $notes-note-border;
  136. background: $notes-note-bg;
  137. color: darken($notes-note-border,15%);
  138. a {
  139. color: darken($notes-note-border,25%);
  140. &:hover {
  141. color: lighten($notes-note-border,5%);
  142. }
  143. }
  144. }
  145. > blockquote > blockquote > blockquote > p {
  146. // Green
  147. margin-left: -142px;
  148. border-left: 10px solid $notes-success-border;
  149. background: $notes-success-bg;
  150. color: darken($notes-success-border,15%);
  151. a {
  152. color: darken($notes-success-border,25%);
  153. &:hover {
  154. color: lighten($notes-success-border,5%);
  155. }
  156. }
  157. }
  158. }
  159. // Inline and Code
  160. code,
  161. kbd,
  162. pre,
  163. samp {
  164. font-family: $font-family-mono;
  165. }
  166. code {
  167. background: $code-bg;
  168. color: darken($code-text,10%);
  169. }
  170. pre {
  171. padding: 2rem;
  172. background: $pre-bg;
  173. border: 1px solid $core-border-color;
  174. border-radius: 3px;
  175. code {
  176. color: $pre-text;
  177. background: inherit;
  178. }
  179. }
  180. // Extras
  181. hr {
  182. border-bottom: 4px solid $rule-color;
  183. }
  184. // Page Title
  185. .page-title {
  186. margin-top: -25px;
  187. padding: 25px;
  188. float: left;
  189. clear: both;
  190. background: $core-accent;
  191. color: $white;
  192. }
  193. // Label
  194. .label {
  195. vertical-align: middle;
  196. background: $core-accent;
  197. border-radius: 100%;
  198. color: $white;
  199. height: 1rem;
  200. min-width: 1rem;
  201. line-height: 1rem;
  202. display: inline-block;
  203. text-align: center;
  204. font-size: $core-font-size - 0.3rem;
  205. font-family: $font-family-header;
  206. margin-right: 0.75rem;
  207. }