typography.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /* ==========================================================================
  2. Typography
  3. ========================================================================== */
  4. /*
  5. Headings
  6. ========================================================================== */
  7. h1, h2, h3, h4, h5, h6 {
  8. font-family: $heading-font;
  9. }
  10. h1 {
  11. @include font-size(32);
  12. }
  13. h2 {
  14. @include font-size(28);
  15. }
  16. h3 {
  17. @include font-size(24);
  18. }
  19. h4 {
  20. @include font-size(18);
  21. }
  22. h5 {
  23. @include font-size(16);
  24. }
  25. h6 {
  26. @include font-size(14);
  27. }
  28. /*
  29. Links
  30. ========================================================================== */
  31. a {
  32. text-decoration: none;
  33. color: $link-color;
  34. &:visited {
  35. color: $linkcolorvisited;
  36. }
  37. &:hover {
  38. color: $linkcolorhover;
  39. }
  40. &:focus {
  41. outline: thin dotted;
  42. color: $linkcolorfocus;
  43. }
  44. &:hover,
  45. &:active {
  46. outline: 0;
  47. }
  48. }
  49. /*
  50. Figure captions
  51. ========================================================================== */
  52. figcaption {
  53. padding-top: 10px;
  54. @include font(14);
  55. line-height: 1.3;
  56. color: lighten($text-color, 10);
  57. }
  58. /*
  59. Feature image captions
  60. ========================================================================== */
  61. .image-credit {
  62. @include grid(12,10);
  63. @include prefix(12,1);
  64. @include suffix(12,1);
  65. display: block;
  66. text-align: right;
  67. @include font(12);
  68. line-height: 1.3;
  69. font-style: italic;
  70. color: lighten($text-color, 30);
  71. @media #{$small} {
  72. @include grid(12,9);
  73. @include prefix(12,0);
  74. @include suffix(12,0);
  75. }
  76. @media #{$x-large} {
  77. @include grid(12,8.5);
  78. }
  79. a {
  80. color: lighten($text-color, 30);
  81. }
  82. }
  83. /*
  84. Notices
  85. ========================================================================== */
  86. .notice {
  87. margin-top: 1.5em;
  88. padding: .5em 1em;
  89. text-indent: 0;
  90. @include font-rem(14);
  91. background-color: $body-color;
  92. border: 1px solid darken($body-color,20);
  93. @include rounded(3px);
  94. }
  95. /*
  96. Blockquotes
  97. ========================================================================== */
  98. blockquote {
  99. margin-left: -28px;
  100. padding-left: 20px;
  101. border-left: 8px solid $border-color;
  102. font-family: $alt-font;
  103. font-style: italic;
  104. }
  105. /*
  106. Footnotes
  107. ========================================================================== */
  108. .footnotes {
  109. ol, li, p {
  110. margin-bottom: 0;
  111. @include font-rem(14);
  112. }
  113. }
  114. /*
  115. Paragraphs
  116. ========================================================================== */
  117. p {
  118. margin: 0 0 $indent-var;
  119. text-align: justify;
  120. -webkit-hyphens: auto;
  121. -ms-hyphens: auto;
  122. -moz-hyphens: auto;
  123. hyphens: auto;
  124. }
  125. .post article p {
  126. @if $paragraph-indent == true {
  127. & {
  128. text-indent: $indent-var;
  129. }
  130. // sibling indentation
  131. & + p {
  132. text-indent: $indent-var;
  133. margin-top: -($indent-var);
  134. }
  135. }
  136. }
  137. /*
  138. Code snippets
  139. ========================================================================== */
  140. tt, code, kbd, samp, pre {
  141. font-family: $code-font;
  142. }
  143. p,
  144. li {
  145. code {
  146. @include font-rem(12);
  147. line-height: 1.5;
  148. white-space: nowrap;
  149. margin: 0 2px;
  150. padding: 0 5px;
  151. border: 1px solid lighten($black, 90);
  152. background-color: #efefef;
  153. @include rounded(3px);
  154. }
  155. }
  156. pre {
  157. @include font-rem(12);
  158. line-height: 1.5;
  159. overflow-x: auto;
  160. }