_typography.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. ///
  2. /// Hyperspace by HTML5 UP
  3. /// html5up.net | @ajlkn
  4. /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  5. ///
  6. /* Type */
  7. body, input, select, textarea {
  8. color: _palette(fg);
  9. font-family: _font(family);
  10. font-size: 16.5pt;
  11. font-weight: _font(weight);
  12. line-height: 1.75;
  13. @include breakpoint(xlarge) {
  14. font-size: 13pt;
  15. }
  16. @include breakpoint(large) {
  17. font-size: 12pt;
  18. }
  19. @include breakpoint(xxsmall) {
  20. font-size: 11pt;
  21. }
  22. }
  23. a {
  24. @include vendor('transition', (
  25. 'color #{_duration(transition)} ease',
  26. 'border-bottom-color #{_duration(transition)} ease'
  27. ));
  28. border-bottom: dotted 1px _palette(fg-light);
  29. color: inherit;
  30. text-decoration: none;
  31. &:hover {
  32. border-bottom-color: transparent;
  33. color: _palette(fg-bold);
  34. }
  35. }
  36. strong, b {
  37. color: _palette(fg-bold);
  38. font-weight: _font(weight-bold);
  39. }
  40. em, i {
  41. font-style: italic;
  42. }
  43. p {
  44. margin: 0 0 _size(element-margin) 0;
  45. }
  46. h1, h2, h3, h4, h5, h6 {
  47. color: _palette(fg-bold);
  48. font-weight: _font(weight-bold);
  49. line-height: 1.5;
  50. margin: 0 0 (_size(element-margin) * 0.25) 0;
  51. a {
  52. color: inherit;
  53. text-decoration: none;
  54. }
  55. }
  56. h1 {
  57. font-size: 2.75em;
  58. &.major {
  59. margin: 0 0 (_size(element-margin) * 0.65) 0;
  60. position: relative;
  61. padding-bottom: 0.35em;
  62. &:after {
  63. @include vendor('background-image', 'linear-gradient(to right, #{_palette(accent1)}, #{_palette(accent3)})');
  64. @include vendor('transition', 'max-width #{_duration(transition)} ease');
  65. border-radius: 0.2em;
  66. bottom: 0;
  67. content: '';
  68. height: 0.05em;
  69. position: absolute;
  70. right: 0;
  71. width: 100%;
  72. }
  73. }
  74. }
  75. h2 {
  76. font-size: 1.75em;
  77. }
  78. h3 {
  79. font-size: 1.1em;
  80. }
  81. h4 {
  82. font-size: 1em;
  83. }
  84. h5 {
  85. font-size: 0.8em;
  86. }
  87. h6 {
  88. font-size: 0.6em;
  89. }
  90. @include breakpoint(small) {
  91. h1 {
  92. font-size: 2em;
  93. }
  94. h2 {
  95. font-size: 1.25em;
  96. }
  97. h3 {
  98. font-size: 1em;
  99. }
  100. h4 {
  101. font-size: 0.8em;
  102. }
  103. h5 {
  104. font-size: 0.6em;
  105. }
  106. h6 {
  107. font-size: 0.6em;
  108. }
  109. }
  110. sub {
  111. font-size: 0.8em;
  112. position: relative;
  113. top: 0.5em;
  114. }
  115. sup {
  116. font-size: 0.8em;
  117. position: relative;
  118. top: -0.5em;
  119. }
  120. blockquote {
  121. border-left: solid (_size(border-width) * 4) _palette(border);
  122. font-style: italic;
  123. margin: 0 0 _size(element-margin) 0;
  124. padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
  125. }
  126. code {
  127. background: _palette(border-bg);
  128. border-radius: _size(border-radius);
  129. border: solid _size(border-width) _palette(border);
  130. font-family: _font(family-fixed);
  131. font-size: 0.9em;
  132. margin: 0 0.25em;
  133. padding: 0.25em 0.65em;
  134. }
  135. pre {
  136. -webkit-overflow-scrolling: touch;
  137. font-family: _font(family-fixed);
  138. font-size: 0.9em;
  139. margin: 0 0 _size(element-margin) 0;
  140. code {
  141. display: block;
  142. line-height: 1.75em;
  143. padding: 1em 1.5em;
  144. overflow-x: auto;
  145. }
  146. }
  147. hr {
  148. border: 0;
  149. border-bottom: solid _size(border-width) _palette(border);
  150. margin: _size(element-margin) 0;
  151. &.major {
  152. margin: (_size(element-margin) * 1.5) 0;
  153. }
  154. }
  155. .align-left {
  156. text-align: left;
  157. }
  158. .align-center {
  159. text-align: center;
  160. }
  161. .align-right {
  162. text-align: right;
  163. }