_posts-and-pages.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. .sticky {
  2. display: block;
  3. }
  4. .sticky-post {
  5. background: $color__background-button;
  6. color: #fff;
  7. display: inline-block;
  8. font-weight: bold;
  9. line-height: 1;
  10. padding: .25rem;
  11. text-transform: uppercase;
  12. z-index: 1;
  13. }
  14. .updated:not(.published) {
  15. display: none;
  16. }
  17. .page-links {
  18. clear: both;
  19. margin: 0 0 calc(1.5 * #{$size__spacing-unit});
  20. }
  21. .entry {
  22. margin-top: calc(6 * #{$size__spacing-unit});
  23. &:first-of-type {
  24. margin-top: 0;
  25. }
  26. .entry-header {
  27. margin: calc(3 * #{ $size__spacing-unit}) $size__spacing-unit $size__vertical-spacing-unit;
  28. position: relative;
  29. @include media(tablet) {
  30. margin: calc(3 * 1rem) auto $size__vertical-spacing-unit;
  31. max-width: $size__site-tablet-content;
  32. }
  33. @include media(desktop) {
  34. max-width: $size__site-desktop-content;
  35. }
  36. }
  37. .entry-title {
  38. font-size: $font__size-lg;
  39. margin: 0;
  40. @include media(tablet) {
  41. margin: $size__vertical-spacing-unit auto;
  42. max-width: $size__site-tablet-content;
  43. }
  44. @include media(desktop) {
  45. max-width: $size__site-desktop-content;
  46. }
  47. a {
  48. color: inherit;
  49. &:hover {
  50. color: $color__text-hover;
  51. }
  52. }
  53. }
  54. .entry-meta,
  55. .entry-footer {
  56. color: $color__text-main;
  57. font-weight: 500;
  58. > span {
  59. margin-right: $size__spacing-unit;
  60. display: inline-block;
  61. &:last-child {
  62. margin-right: 0;
  63. }
  64. }
  65. a {
  66. @include link-transition;
  67. color: currentColor;
  68. &:hover {
  69. text-decoration: none;
  70. color: $color__link;
  71. }
  72. }
  73. .svg-icon {
  74. position: relative;
  75. display: inline-block;
  76. vertical-align: middle;
  77. margin-right: 0.5em;
  78. }
  79. }
  80. .entry-meta {
  81. margin: 32px auto;
  82. }
  83. .entry-footer {
  84. margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
  85. @include media(tablet) {
  86. margin: $size__spacing-unit $size__site-margins calc(3 * #{$size__spacing-unit});
  87. max-width: $size__site-tablet-content;
  88. }
  89. @include media(tablet) {
  90. margin: 32px auto;
  91. max-width: $size__site-tablet-content;
  92. }
  93. @include media(desktop) {
  94. max-width: $size__site-desktop-content;
  95. }
  96. }
  97. .post-thumbnail {
  98. margin: $size__spacing-unit;
  99. @include media(tablet) {
  100. margin: $size__spacing-unit $size__site-margins;
  101. }
  102. &:focus {
  103. outline: none;
  104. }
  105. .post-thumbnail-inner {
  106. display: block;
  107. img {
  108. position: relative;
  109. display: block;
  110. width: 100%;
  111. }
  112. }
  113. }
  114. .image-filters-enabled & {
  115. .post-thumbnail {
  116. position: relative;
  117. display: block;
  118. .post-thumbnail-inner {
  119. filter: grayscale(100%);
  120. &:after {
  121. background: rgba(0, 0, 0, 0.35);
  122. content: "";
  123. display: block;
  124. height: 100%;
  125. opacity: .5;
  126. pointer-events: none;
  127. position: absolute;
  128. top: 0;
  129. width: 100%;
  130. z-index: 4;
  131. @supports (mix-blend-mode: multiply) {
  132. display: none;
  133. }
  134. }
  135. }
  136. &:before,
  137. &:after, {
  138. position: absolute;
  139. display: block;
  140. width: 100%;
  141. height: 100%;
  142. top: 0; left: 0;
  143. content: "\020";
  144. pointer-events: none;
  145. }
  146. @include filter-duotone;
  147. }
  148. }
  149. .entry-content,
  150. .entry-summary {
  151. max-width: calc(100% - (2 * #{ $size__spacing-unit }));
  152. margin: 0 $size__spacing-unit;
  153. @include media(tablet) {
  154. max-width: 80%;
  155. margin: 0 10%;
  156. padding: 0 60px;
  157. }
  158. }
  159. .entry-content {
  160. p {
  161. word-wrap: break-word;
  162. }
  163. .more-link {
  164. @include link-transition;
  165. display: inline;
  166. color: inherit;
  167. &:after {
  168. content: "\02192" #{"/*rtl:\"\02190\"*/"};
  169. display: inline-block;
  170. margin-left: 0.5em;
  171. }
  172. &:hover {
  173. color: $color__link;
  174. text-decoration: none;
  175. }
  176. }
  177. a {
  178. text-decoration: underline;
  179. &.button,
  180. &:hover {
  181. text-decoration: none;
  182. }
  183. &.button {
  184. display: inline-block;
  185. }
  186. &.button:hover {
  187. background: $color__background-button-hover;
  188. color: $color__background-body;
  189. cursor: pointer;
  190. }
  191. }
  192. // Overwrite iframe embeds that have inline styles.
  193. > iframe[style] {
  194. margin: $size__vertical-spacing-unit 0 !important;
  195. max-width: 100% !important;
  196. @include media(tablet) {
  197. max-width: $size__site-tablet-content !important;
  198. }
  199. @include media(desktop) {
  200. max-width: $size__site-desktop-content !important;
  201. }
  202. }
  203. // Page links
  204. .page-links a {
  205. margin: calc(0.5 * #{$size__spacing-unit});
  206. text-decoration: none;
  207. }
  208. // Classic editor audio embeds.
  209. .wp-audio-shortcode {
  210. max-width: calc(100vw - (2 * #{ $size__spacing-unit }));
  211. @include media(tablet) {
  212. max-width: $size__site-tablet-content;
  213. }
  214. @include media(desktop) {
  215. max-width: $size__site-desktop-content;
  216. }
  217. }
  218. }
  219. }
  220. /* Author description */
  221. .author-bio {
  222. margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
  223. @include postContentMaxWidth();
  224. @include media(tablet) {
  225. margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
  226. }
  227. @include media(tablet) {
  228. margin: 32px auto;
  229. max-width: $size__site-tablet-content;
  230. }
  231. @include media(desktop) {
  232. max-width: $size__site-desktop-content;
  233. }
  234. .author-title {
  235. @include post-section-dash-dark;
  236. display: inline;
  237. font-size: $font__size-md;
  238. }
  239. .author-description {
  240. display: inline;
  241. color: $color__text-main-alt;
  242. font-size: $font__size-md;
  243. line-height: $font__line-height-heading;
  244. .author-link {
  245. display: inline-block;
  246. &:hover {
  247. color: $color__link-hover;
  248. text-decoration: none;
  249. }
  250. }
  251. }
  252. }