_layout.scss 4.2 KB

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