_layout.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. /**
  2. * Site header
  3. */
  4. .site-header {
  5. position: relative;
  6. width: 100%;
  7. min-height: $spacing-unit * 1.865;
  8. line-height: $base-line-height * $base-font-size * 2.25;
  9. background-color: $background-color;
  10. border-top: 5px solid $border-color-03;
  11. border-bottom: 1px solid $border-color-01;
  12. }
  13. .site-title {
  14. @include relative-font-size(1.625);
  15. font-weight: 300;
  16. letter-spacing: -1px;
  17. margin-bottom: 0;
  18. float: left;
  19. @include media-query($on-palm) {
  20. padding-right: 45px;
  21. }
  22. &,
  23. &:visited {
  24. color: $site-title-color;
  25. }
  26. }
  27. .site-nav {
  28. float: right;
  29. border: none;
  30. background-color: inherit;
  31. label[for="nav-trigger"], #nav-trigger {
  32. display: none;
  33. }
  34. .nav-item {
  35. color: $text-color;
  36. &:not(:last-child) {
  37. margin-right: $spacing-unit * 0.5;
  38. }
  39. }
  40. @include media-query($on-medium) {
  41. position: absolute;
  42. top: 9px;
  43. right: $spacing-unit * 0.6;
  44. background-color: $background-color;
  45. border: 1px solid $border-color-01;
  46. border-radius: 5px;
  47. text-align: right;
  48. label[for="nav-trigger"] {
  49. display: block;
  50. float: right;
  51. width: 36px;
  52. height: 36px;
  53. cursor: pointer;
  54. }
  55. .menu-icon {
  56. float: right;
  57. width: 36px;
  58. height: 26px;
  59. line-height: 0;
  60. padding-top: 18px;
  61. text-align: center;
  62. &::before {
  63. font-family: "Font Awesome 6 Free";
  64. font-weight: 900;
  65. }
  66. > svg path {
  67. fill: $border-color-03;
  68. }
  69. }
  70. #nav-trigger {
  71. ~ label[for=nav-trigger] .menu-icon {
  72. &::before {
  73. content: "\f0c9";
  74. font-size: 1.25em;
  75. }
  76. }
  77. ~ .nav-items {
  78. clear: both;
  79. display: none
  80. }
  81. &:checked {
  82. ~ label[for=nav-trigger] .menu-icon {
  83. &::before {
  84. content: "\f00d";
  85. font-size: 1.5em;
  86. }
  87. }
  88. ~ .nav-items {
  89. display: block;
  90. padding-bottom: 5px;
  91. .nav-item {
  92. margin-left: 20px;
  93. padding: 5px 10px;
  94. }
  95. }
  96. }
  97. }
  98. .nav-item {
  99. display: block;
  100. padding: 5px 0;
  101. color: $text-color;
  102. line-height: $base-line-height;
  103. }
  104. }
  105. }
  106. /**
  107. * Site footer
  108. */
  109. .site-footer {
  110. border-top: 1px solid $border-color-01;
  111. padding: $spacing-unit 0;
  112. }
  113. .footer-heading {
  114. @include relative-font-size(1.125);
  115. margin-bottom: $spacing-unit * .5;
  116. }
  117. .feed-subscribe .svg-icon {
  118. padding: 5px 5px 2px 0
  119. }
  120. .contact-list,
  121. .social-media-list {
  122. list-style: none;
  123. margin-left: 0;
  124. }
  125. .footer-col-wrapper,
  126. .social-links {
  127. @include relative-font-size(0.9375);
  128. color: $brand-color-dimmed;
  129. }
  130. .footer-col {
  131. margin-bottom: $spacing-unit * .5;
  132. }
  133. .footer-col-1,
  134. .footer-col-2 {
  135. width: calc(50% - (#{$spacing-unit} / 2));
  136. }
  137. .footer-col-3 {
  138. width: calc(100% - (#{$spacing-unit} / 2));
  139. }
  140. @media screen and (min-width: $on-large) {
  141. .footer-col-1 {
  142. width: calc(35% - (#{$spacing-unit} / 2));
  143. }
  144. .footer-col-2 {
  145. width: calc(20% - (#{$spacing-unit} / 2));
  146. }
  147. .footer-col-3 {
  148. width: calc(45% - (#{$spacing-unit} / 2));
  149. }
  150. }
  151. @media screen and (min-width: $on-medium) {
  152. .footer-col-wrapper {
  153. display: flex
  154. }
  155. .footer-col {
  156. width: calc(100% - (#{$spacing-unit} / 2));
  157. padding: 0 ($spacing-unit * .5);
  158. &:first-child {
  159. padding-right: $spacing-unit * .5;
  160. padding-left: 0;
  161. }
  162. &:last-child {
  163. padding-right: 0;
  164. padding-left: $spacing-unit * .5;
  165. }
  166. }
  167. }
  168. /**
  169. * Page content
  170. */
  171. .page-content {
  172. padding: $spacing-unit 0;
  173. flex: 1 0 auto;
  174. }
  175. .page-heading {
  176. @include relative-font-size(2);
  177. }
  178. .post-list-heading {
  179. @include relative-font-size(1.75);
  180. }
  181. .post-list {
  182. margin-left: 0;
  183. list-style: none;
  184. > li {
  185. margin-bottom: $spacing-unit;
  186. }
  187. }
  188. .post-meta {
  189. font-size: $small-font-size;
  190. color: $brand-color-dimmed;
  191. }
  192. .post-link {
  193. display: block;
  194. @include relative-font-size(1.5);
  195. }
  196. /**
  197. * Posts
  198. */
  199. .post-header {
  200. margin-bottom: $spacing-unit;
  201. padding-bottom: 18px;
  202. text-align: center;
  203. border-bottom: 1px solid $border-color-01;
  204. }
  205. .post-meta {
  206. .bullet-divider { padding-inline: 15px }
  207. .meta-label { font-weight: 600 }
  208. .force-inline {
  209. display: inline;
  210. &::before {
  211. content: "•";
  212. padding-inline: 5px;
  213. }
  214. }
  215. .post-authors { margin-top: 3px }
  216. }
  217. .post-title,
  218. .post-content h1 {
  219. margin-bottom: 10px;
  220. @include relative-font-size(2.625);
  221. font-weight: $base-font-weight;
  222. letter-spacing: -1px;
  223. line-height: 1.15;
  224. @media screen and (min-width: $on-large) {
  225. @include relative-font-size(2.625);
  226. }
  227. }
  228. .post-content {
  229. margin-bottom: $spacing-unit;
  230. h1, h2, h3, h4, h5, h6 { margin-top: $spacing-unit }
  231. h2 {
  232. @include relative-font-size(1.75);
  233. @media screen and (min-width: $on-large) {
  234. @include relative-font-size(2);
  235. }
  236. }
  237. h3 {
  238. @include relative-font-size(1.375);
  239. @media screen and (min-width: $on-large) {
  240. @include relative-font-size(1.625);
  241. }
  242. }
  243. h4 {
  244. @include relative-font-size(1.25);
  245. }
  246. h5 {
  247. @include relative-font-size(1.125);
  248. }
  249. h6 {
  250. @include relative-font-size(1.0625);
  251. }
  252. }
  253. .comments-disabled-message {
  254. text-align: center;
  255. font-weight: 300;
  256. }
  257. .social-media-list {
  258. display: table;
  259. margin: 0 auto;
  260. li {
  261. float: left;
  262. min-width: 45px;
  263. min-height: 45px;
  264. text-align: center;
  265. margin: 5px 10px 5px 0;
  266. &:last-of-type { margin-right: 0 }
  267. a {
  268. display: block;
  269. padding: 10px 12px;
  270. border: 1px solid $border-color-01;
  271. &:hover { border-color: $border-color-02 }
  272. }
  273. }
  274. }
  275. /**
  276. * Pagination navbar
  277. */
  278. .pagination {
  279. display: table;
  280. margin: 0 auto;
  281. list-style-type: none;
  282. li {
  283. float: left;
  284. margin: 0 3px;
  285. min-width: 45px;
  286. min-height: 45px;
  287. text-align: center;
  288. a {
  289. display: block;
  290. text-decoration: none;
  291. border: 1px solid $border-color-01;
  292. &:hover { border-color: $border-color-02 }
  293. }
  294. a, div {
  295. min-width: 41px;
  296. padding: 10px 12px;
  297. text-align: center;
  298. box-sizing: border-box;
  299. }
  300. div {
  301. border: 1px solid transparent;
  302. &.pager-edge {
  303. color: $border-color-01;
  304. border: 1px dashed;
  305. }
  306. &.current-page {
  307. font-weight: bold;
  308. }
  309. }
  310. }
  311. }
  312. /**
  313. * Task-lists
  314. */
  315. .task-list {
  316. margin-left: 0;
  317. padding-left: $spacing-unit * 0.6;
  318. }
  319. .task-list-item {
  320. list-style-type: none;
  321. &-checkbox {
  322. position: relative;
  323. margin-right: $spacing-unit * 0.3;
  324. margin-left: -$spacing-unit * 0.5;
  325. appearance: none;
  326. border: 8px solid $border-color-01;
  327. vertical-align: text-top;
  328. z-index: -1;
  329. &::after {
  330. position: absolute;
  331. top: -8px;
  332. left: -3px;
  333. width: 4px;
  334. height: 10px;
  335. content: "";
  336. border: solid transparent;
  337. border-width: 0 2px 2px 0;
  338. transform: rotate(45deg);
  339. }
  340. &:checked::after { border-color: $border-color-03 }
  341. }
  342. }
  343. /**
  344. * Grid helpers
  345. */
  346. @media screen and (min-width: $on-large) {
  347. .one-half {
  348. width: calc(50% - (#{$spacing-unit} / 2));
  349. }
  350. }