_posts-and-pages.scss 4.7 KB

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