_blog.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .blog-header {
  2. padding-top: 2rem;
  3. padding-bottom: 2rem;
  4. &.blog-header-image {
  5. background-size: cover;
  6. background-position: center;
  7. h1, h2 {
  8. color: $header-text;
  9. }
  10. }
  11. h1 {
  12. font-size: 4rem;
  13. margin-top: 0;
  14. @include breakpoint(tablet-range) {
  15. font-size: 3rem;
  16. }
  17. @include breakpoint(mobile-only) {
  18. font-size: 2.5rem;
  19. line-height: 1.2;
  20. margin-bottom: 2.5rem;
  21. }
  22. }
  23. & + .blog-content {
  24. padding-top: $padding-vert;
  25. }
  26. }
  27. // List Blog Item
  28. .list-item {
  29. border-bottom: 1px solid $border-color;
  30. margin-bottom: $padding-vert;
  31. &:last-child {
  32. border-bottom: 0;
  33. }
  34. .list-blog-header {
  35. position: relative;
  36. h4 {
  37. margin-bottom: 0.5rem;
  38. a {
  39. color: $core-text;
  40. &:hover {
  41. color: $core-accent;
  42. }
  43. }
  44. }
  45. img {
  46. display: block;
  47. margin-top: 1rem;
  48. border-radius: $border-radius;
  49. }
  50. }
  51. .list-blog-date {
  52. float: right;
  53. text-align: center;
  54. span {
  55. display: block;
  56. font-size: 1.75rem;
  57. font-weight: $font-weight-bold;
  58. line-height: 110%;
  59. }
  60. em {
  61. display: block;
  62. border-top: 1px solid $border-color;
  63. font-style: normal;
  64. text-transform: uppercase;
  65. }
  66. }
  67. }
  68. // Bigger first para
  69. .blog-content-item {
  70. .list-blog-padding > p:nth-child(2) {
  71. font-size: $core-font-size + 0.2rem;
  72. }
  73. }
  74. // Tags
  75. .tags {
  76. a {
  77. display: inline-block;
  78. font-size: $core-font-size - 0.2rem;
  79. border: 1px solid $core-accent;
  80. border-radius: $border-radius;
  81. padding: 0.1rem 0.4rem;
  82. margin-bottom: 0.2rem;
  83. text-transform: uppercase;
  84. }
  85. }
  86. // Archives & Related-Pages
  87. .archives, .related-pages {
  88. padding: 0;
  89. list-style: none;
  90. li {
  91. border-bottom: 1px solid $border-color;
  92. line-height: $core-font-size + 1rem;
  93. &:last-child {
  94. border-bottom: 0;
  95. }
  96. }
  97. }
  98. .related-pages {
  99. li {
  100. a {
  101. display: block;
  102. }
  103. }
  104. .score {
  105. display: block;
  106. float: right;
  107. color: #999;
  108. font-size: 85%
  109. }
  110. }
  111. // Syndicate
  112. .syndicate {
  113. a {
  114. margin-bottom: 1rem;
  115. }
  116. }
  117. // Breadcrumbs
  118. div#breadcrumbs {
  119. padding-left: 0;
  120. @include breakpoint(mobile-only) {
  121. display: none;
  122. }
  123. }
  124. // Sidebar
  125. #sidebar {
  126. padding-left: 3rem;
  127. @include breakpoint(mobile-only) {
  128. padding-left: 0;
  129. }
  130. .sidebar-content {
  131. h4 {
  132. margin-bottom: 1rem;
  133. }
  134. p, ul {
  135. margin-top: 1rem;
  136. }
  137. margin-bottom: $padding-vert;
  138. }
  139. }
  140. // Pagination
  141. ul.pagination {
  142. margin: 0 0 $padding-vert;
  143. text-align: center;
  144. }
  145. // Prev / Next
  146. .prev-next {
  147. margin-top: 5rem;
  148. text-align: center;
  149. }