_layout.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /**
  2. * Site header
  3. */
  4. .site-header {
  5. border-top: 5px solid $grey-color-dark;
  6. border-bottom: 1px solid $grey-color-light;
  7. min-height: 56px;
  8. // Positioning context for the mobile navigation icon
  9. position: relative;
  10. }
  11. .site-title {
  12. font-size: 26px;
  13. font-weight: 300;
  14. line-height: 56px;
  15. letter-spacing: -1px;
  16. margin-bottom: 0;
  17. float: left;
  18. &,
  19. &:visited {
  20. color: $grey-color-dark;
  21. }
  22. }
  23. .site-nav {
  24. float: right;
  25. line-height: 56px;
  26. .menu-icon {
  27. display: none;
  28. }
  29. .page-link {
  30. color: $text-color;
  31. line-height: $base-line-height;
  32. // Gaps between nav items, but not on the last one
  33. &:not(:last-child) {
  34. margin-right: 20px;
  35. }
  36. }
  37. @include media-query($on-palm) {
  38. position: absolute;
  39. top: 9px;
  40. right: $spacing-unit / 2;
  41. background-color: $background-color;
  42. border: 1px solid $grey-color-light;
  43. border-radius: 5px;
  44. text-align: right;
  45. .menu-icon {
  46. display: block;
  47. float: right;
  48. width: 36px;
  49. height: 26px;
  50. line-height: 0;
  51. padding-top: 10px;
  52. text-align: center;
  53. > svg {
  54. width: 18px;
  55. height: 15px;
  56. path {
  57. fill: $grey-color-dark;
  58. }
  59. }
  60. }
  61. .trigger {
  62. clear: both;
  63. display: none;
  64. }
  65. &:hover .trigger {
  66. display: block;
  67. padding-bottom: 5px;
  68. }
  69. .page-link {
  70. display: block;
  71. padding: 5px 10px;
  72. &:not(:last-child) {
  73. margin-right: 0;
  74. }
  75. margin-left: 20px;
  76. }
  77. }
  78. }
  79. /**
  80. * Site footer
  81. */
  82. .site-footer {
  83. border-top: 1px solid $grey-color-light;
  84. padding: $spacing-unit 0;
  85. }
  86. .footer-heading {
  87. font-size: 18px;
  88. margin-bottom: $spacing-unit / 2;
  89. }
  90. .contact-list,
  91. .social-media-list {
  92. list-style: none;
  93. margin-left: 0;
  94. }
  95. .footer-col-wrapper {
  96. font-size: 15px;
  97. color: $grey-color;
  98. margin-left: -$spacing-unit / 2;
  99. @extend %clearfix;
  100. }
  101. .footer-col {
  102. float: left;
  103. margin-bottom: $spacing-unit / 2;
  104. padding-left: $spacing-unit / 2;
  105. }
  106. .footer-col-1 {
  107. width: -webkit-calc(35% - (#{$spacing-unit} / 2));
  108. width: calc(35% - (#{$spacing-unit} / 2));
  109. }
  110. .footer-col-2 {
  111. width: -webkit-calc(20% - (#{$spacing-unit} / 2));
  112. width: calc(20% - (#{$spacing-unit} / 2));
  113. }
  114. .footer-col-3 {
  115. width: -webkit-calc(45% - (#{$spacing-unit} / 2));
  116. width: calc(45% - (#{$spacing-unit} / 2));
  117. }
  118. @include media-query($on-laptop) {
  119. .footer-col-1,
  120. .footer-col-2 {
  121. width: -webkit-calc(50% - (#{$spacing-unit} / 2));
  122. width: calc(50% - (#{$spacing-unit} / 2));
  123. }
  124. .footer-col-3 {
  125. width: -webkit-calc(100% - (#{$spacing-unit} / 2));
  126. width: calc(100% - (#{$spacing-unit} / 2));
  127. }
  128. }
  129. @include media-query($on-palm) {
  130. .footer-col {
  131. float: none;
  132. width: -webkit-calc(100% - (#{$spacing-unit} / 2));
  133. width: calc(100% - (#{$spacing-unit} / 2));
  134. }
  135. }
  136. /**
  137. * Page content
  138. */
  139. .page-content {
  140. padding: $spacing-unit 0;
  141. }
  142. .page-heading {
  143. font-size: 20px;
  144. }
  145. .post-list {
  146. margin-left: 0;
  147. list-style: none;
  148. > li {
  149. margin-bottom: $spacing-unit;
  150. }
  151. }
  152. .post-meta {
  153. font-size: $small-font-size;
  154. color: $grey-color;
  155. }
  156. .post-link {
  157. display: block;
  158. font-size: 24px;
  159. }
  160. /**
  161. * Posts
  162. */
  163. .post-header {
  164. margin-bottom: $spacing-unit;
  165. }
  166. .post-title {
  167. font-size: 42px;
  168. letter-spacing: -1px;
  169. line-height: 1;
  170. @include media-query($on-laptop) {
  171. font-size: 36px;
  172. }
  173. }
  174. .post-content {
  175. margin-bottom: $spacing-unit;
  176. h2 {
  177. font-size: 32px;
  178. @include media-query($on-laptop) {
  179. font-size: 28px;
  180. }
  181. }
  182. h3 {
  183. font-size: 26px;
  184. @include media-query($on-laptop) {
  185. font-size: 22px;
  186. }
  187. }
  188. h4 {
  189. font-size: 20px;
  190. @include media-query($on-laptop) {
  191. font-size: 18px;
  192. }
  193. }
  194. }