_layout.scss 4.2 KB

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