_posts-and-pages.scss 4.9 KB

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