_posts-and-pages.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. position: relative;
  12. text-transform: uppercase;
  13. top: -$size__spacing-unit;
  14. z-index: 1;
  15. }
  16. .updated:not(.published) {
  17. display: none;
  18. }
  19. .page-links {
  20. clear: both;
  21. margin: 0 0 calc(1.5 * #{$size__spacing-unit});
  22. }
  23. .entry {
  24. margin-top: calc(6 * #{$size__spacing-unit});
  25. &:first-of-type {
  26. margin-top: 0;
  27. }
  28. .entry-header {
  29. margin: calc(3 * #{ $size__spacing-unit}) $size__spacing-unit $size__vertical-spacing-unit;
  30. position: relative;
  31. text-align: center;
  32. @include media(tablet) {
  33. margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__vertical-spacing-unit;
  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-dark;
  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. .entry-footer {
  74. margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
  75. text-align: center;
  76. @include media(tablet) {
  77. margin: $size__spacing-unit auto calc(3 * #{$size__spacing-unit});
  78. max-width: $size__site-tablet-content;
  79. }
  80. @include media(desktop) {
  81. max-width: $size__site-desktop-content;
  82. }
  83. }
  84. .post-thumbnail {
  85. margin: $size__spacing-unit;
  86. @include media(tablet) {
  87. margin: $size__spacing-unit $size__site-margins;
  88. }
  89. &:focus {
  90. outline: none;
  91. }
  92. .post-thumbnail-inner {
  93. display: block;
  94. img {
  95. position: relative;
  96. display: block;
  97. width: 100%;
  98. }
  99. }
  100. }
  101. .image-filters-enabled & {
  102. .post-thumbnail {
  103. position: relative;
  104. display: block;
  105. .post-thumbnail-inner {
  106. filter: grayscale(100%);
  107. &:after {
  108. background: rgba(0, 0, 0, 0.35);
  109. content: "";
  110. display: block;
  111. height: 100%;
  112. opacity: .5;
  113. pointer-events: none;
  114. position: absolute;
  115. top: 0;
  116. width: 100%;
  117. z-index: 4;
  118. @supports (mix-blend-mode: multiply) {
  119. display: none;
  120. }
  121. }
  122. }
  123. &:before,
  124. &:after, {
  125. position: absolute;
  126. display: block;
  127. width: 100%;
  128. height: 100%;
  129. top: 0; left: 0;
  130. content: "\020";
  131. pointer-events: none;
  132. }
  133. @include filter-duotone;
  134. }
  135. }
  136. .entry-content,
  137. .entry-summary {
  138. max-width: calc(100% - (2 * #{ $size__spacing-unit }));
  139. margin: 0 $size__spacing-unit;
  140. @include media(tablet) {
  141. max-width: 80%;
  142. margin: 0 10%;
  143. padding: 0 60px;
  144. }
  145. }
  146. .entry-content {
  147. p {
  148. word-wrap: break-word;
  149. }
  150. .more-link {
  151. @include link-transition;
  152. display: inline;
  153. color: inherit;
  154. &:after {
  155. content: "\02192" #{"/*rtl:\"\02190\"*/"};
  156. display: inline-block;
  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. > h1,
  180. > h2,
  181. > h3,
  182. > h4,
  183. > h5,
  184. > h6 {
  185. text-align: center;
  186. }
  187. // Overwrite iframe embeds that have inline styles.
  188. > iframe[style] {
  189. margin: 32px 0 !important;
  190. max-width: 100% !important;
  191. @include media(tablet) {
  192. max-width: $size__site-tablet-content !important;
  193. }
  194. @include media(desktop) {
  195. max-width: $size__site-desktop-content !important;
  196. }
  197. }
  198. // Page links
  199. .page-links a {
  200. margin: calc(0.5 * #{$size__spacing-unit});
  201. text-decoration: none;
  202. }
  203. // Classic editor audio embeds.
  204. .wp-audio-shortcode {
  205. max-width: calc(100vw - (2 * #{ $size__spacing-unit }));
  206. @include media(tablet) {
  207. max-width: $size__site-tablet-content;
  208. }
  209. @include media(desktop) {
  210. max-width: $size__site-desktop-content;
  211. }
  212. }
  213. }
  214. }
  215. /* Author description */
  216. .author-bio {
  217. margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
  218. @include postContentMaxWidth();
  219. @include media(tablet) {
  220. margin: calc(3 * #{$size__spacing-unit}) auto;
  221. }
  222. @include media(desktop) {
  223. margin: calc(3 * #{$size__spacing-unit}) auto;
  224. }
  225. .author-title {
  226. display: inline;
  227. }
  228. .author-description {
  229. display: inline;
  230. color: $color__text-dark;
  231. font-size: $font__size-md;
  232. line-height: $font__line-height-heading;
  233. .author-link {
  234. display: inline-block;
  235. &:hover {
  236. color: $color__link-hover;
  237. text-decoration: none;
  238. }
  239. }
  240. }
  241. }