Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

_typography.scss 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. ///
  2. /// Stellar 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 {
  8. background-color: _palette(bg);
  9. color: _palette(fg);
  10. }
  11. body, input, select, textarea {
  12. font-family: _font(family);
  13. font-size: 17pt;
  14. font-weight: _font(weight);
  15. line-height: 1.65;
  16. @include breakpoint('<=xlarge') {
  17. font-size: 14pt;
  18. }
  19. @include breakpoint('<=large') {
  20. font-size: 12pt;
  21. }
  22. @include breakpoint('<=xxsmall') {
  23. font-size: 11pt;
  24. }
  25. }
  26. a {
  27. @include vendor('transition', (
  28. 'color #{_duration(transition)} ease',
  29. 'border-bottom #{_duration(transition)} ease'
  30. ));
  31. text-decoration: none;
  32. border-bottom: dotted 1px;
  33. color: inherit;
  34. &:hover {
  35. border-bottom-color: transparent;
  36. }
  37. }
  38. strong, b {
  39. font-weight: _font(weight-bold);
  40. }
  41. em, i {
  42. font-style: italic;
  43. }
  44. p {
  45. margin: 0 0 _size(element-margin) 0;
  46. &.content {
  47. -moz-columns: 20em 2;
  48. -webkit-columns: 20em 2;
  49. -ms-columns: 20em 2;
  50. columns: 20em 2;
  51. -moz-column-gap: _size(element-margin);
  52. -webkit-column-gap: _size(element-margin);
  53. -ms-column-gap: _size(element-margin);
  54. column-gap: _size(element-margin);
  55. text-align: justify;
  56. }
  57. }
  58. h1, h2, h3, h4, h5, h6 {
  59. font-weight: _font(weight);
  60. line-height: 1.5;
  61. margin: 0 0 (_size(element-margin) * 0.35) 0;
  62. letter-spacing: _font(letter-spacing);
  63. a {
  64. color: inherit;
  65. text-decoration: none;
  66. }
  67. }
  68. h1 {
  69. font-size: 2.5em;
  70. line-height: 1.2;
  71. }
  72. h2 {
  73. font-size: 1.5em;
  74. }
  75. h3 {
  76. font-size: 1.25em;
  77. }
  78. h4 {
  79. font-size: 1.1em;
  80. }
  81. h5 {
  82. font-size: 0.9em;
  83. }
  84. h6 {
  85. font-size: 0.7em;
  86. }
  87. @include breakpoint('<=small') {
  88. h1 {
  89. font-size: 2em;
  90. }
  91. }
  92. sub {
  93. font-size: 0.8em;
  94. position: relative;
  95. top: 0.5em;
  96. }
  97. sup {
  98. font-size: 0.8em;
  99. position: relative;
  100. top: -0.5em;
  101. }
  102. blockquote {
  103. border-left: solid 4px;
  104. font-style: italic;
  105. margin: 0 0 _size(element-margin) 0;
  106. padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
  107. }
  108. code {
  109. border-radius: _size(border-radius);
  110. border: solid 1px;
  111. font-family: _font(family-fixed);
  112. font-size: 0.9em;
  113. margin: 0 0.25em;
  114. padding: 0.25em 0.65em;
  115. }
  116. pre {
  117. -webkit-overflow-scrolling: touch;
  118. font-family: _font(family-fixed);
  119. font-size: 0.9em;
  120. margin: 0 0 _size(element-margin) 0;
  121. code {
  122. display: block;
  123. line-height: 1.75;
  124. padding: 1em 1.5em;
  125. overflow-x: auto;
  126. }
  127. }
  128. hr {
  129. border: 0;
  130. border-bottom: solid 1px;
  131. margin: _size(element-margin) 0;
  132. &.major {
  133. margin: (_size(element-margin) * 1.5) 0;
  134. }
  135. }
  136. .align-left {
  137. text-align: left;
  138. }
  139. .align-center {
  140. text-align: center;
  141. }
  142. .align-right {
  143. text-align: right;
  144. }
  145. @mixin color-typography($p: null) {
  146. @if $p != null {
  147. background-color: _palette($p, bg);
  148. color: _palette($p, fg);
  149. }
  150. input, select, textarea {
  151. color: _palette($p, fg-bold);
  152. }
  153. a {
  154. &:hover {
  155. color: _palette($p, fg-bold);
  156. }
  157. }
  158. strong, b {
  159. color: _palette($p, fg-bold);
  160. }
  161. h1, h2, h3, h4, h5, h6 {
  162. color: _palette($p, fg-bold);
  163. }
  164. blockquote {
  165. border-left-color: _palette($p, border);
  166. }
  167. code {
  168. background: _palette($p, border-bg);
  169. border-color: _palette($p, border);
  170. }
  171. hr {
  172. border-bottom-color: _palette($p, border);
  173. }
  174. }
  175. @include color-typography;