_posts-and-pages.scss 5.0 KB

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