_posts-and-pages.scss 4.6 KB

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