_layout.scss 4.1 KB

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