James Peret's blog. Built with Jekyll and the Mikey theme.

_layout.scss 4.1KB

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