_layout.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. padding: $spacing-unit 0;
  91. background: #fff;
  92. box-shadow: inset 0px 2px 5px 0px $grey-color-light;
  93. }
  94. .contact-list,
  95. .social-media-list {
  96. list-style: none;
  97. margin-left: 0;
  98. }
  99. .footer-col-wrapper {
  100. font-size: 15px;
  101. color: $grey-color;
  102. margin-left: -$spacing-unit / 2;
  103. @extend %clearfix;
  104. }
  105. .footer-col {
  106. float: left;
  107. margin-bottom: $spacing-unit / 2;
  108. padding-left: $spacing-unit / 2;
  109. }
  110. .footer-col-1 {
  111. width: -webkit-calc(35% - (#{$spacing-unit} / 2));
  112. width: calc(35% - (#{$spacing-unit} / 2));
  113. }
  114. .footer-col-2 {
  115. width: -webkit-calc(20% - (#{$spacing-unit} / 2));
  116. width: calc(20% - (#{$spacing-unit} / 2));
  117. }
  118. .footer-col-3 {
  119. width: -webkit-calc(45% - (#{$spacing-unit} / 2));
  120. width: calc(45% - (#{$spacing-unit} / 2));
  121. }
  122. @include media-query($on-laptop) {
  123. .footer-col-1,
  124. .footer-col-2 {
  125. width: -webkit-calc(50% - (#{$spacing-unit} / 2));
  126. width: calc(50% - (#{$spacing-unit} / 2));
  127. }
  128. .footer-col-3 {
  129. width: -webkit-calc(100% - (#{$spacing-unit} / 2));
  130. width: calc(100% - (#{$spacing-unit} / 2));
  131. }
  132. }
  133. @include media-query($on-palm) {
  134. .footer-col {
  135. float: none;
  136. width: -webkit-calc(100% - (#{$spacing-unit} / 2));
  137. width: calc(100% - (#{$spacing-unit} / 2));
  138. }
  139. }
  140. /**
  141. * Page content
  142. */
  143. .page-content {
  144. padding: $spacing-unit 0;
  145. }
  146. .page-heading {
  147. font-size: 20px;
  148. }
  149. .post-list {
  150. margin-left: 0;
  151. list-style: none;
  152. > li {
  153. margin-bottom: $spacing-unit;
  154. }
  155. }
  156. .post-meta {
  157. font-size: $small-font-size;
  158. color: $grey-color;
  159. }
  160. .post-link {
  161. display: block;
  162. font-size: 24px;
  163. }
  164. /**
  165. * Posts
  166. */
  167. .post-header {
  168. margin-bottom: $spacing-unit;
  169. }
  170. .post-title {
  171. }
  172. .post-content {
  173. margin-bottom: $spacing-unit;
  174. h2 {
  175. font-size: 32px;
  176. @include media-query($on-laptop) {
  177. font-size: 28px;
  178. }
  179. }
  180. h3 {
  181. font-size: 26px;
  182. @include media-query($on-laptop) {
  183. font-size: 22px;
  184. }
  185. }
  186. h4 {
  187. font-size: 20px;
  188. @include media-query($on-laptop) {
  189. font-size: 18px;
  190. }
  191. }
  192. }