_layout.scss 4.2 KB

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