style.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. /*
  2. Theme Name: Vivre
  3. Theme URI: https://wordpress.com/theme/vivre
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Vivre is a bold, opinionated blogging theme, heavily inspired by fashion and lifestyle magazines and websites.
  7. Requires at least: 5.8
  8. Tested up to: 6.0
  9. Requires PHP: 5.7
  10. Version: 1.0.8
  11. License: GNU General Public License v2 or later
  12. License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
  13. Template:
  14. Text Domain: vivre
  15. Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
  16. */
  17. /*
  18. * Font smoothing
  19. */
  20. body {
  21. -moz-osx-font-smoothing: grayscale;
  22. -webkit-font-smoothing: antialiased;
  23. }
  24. /*
  25. * Button pseudo-class styles.
  26. * Necessary until the following issue is resolved in Gutenberg:
  27. * https://github.com/WordPress/gutenberg/issues/27075
  28. */
  29. .wp-block-button__link:visited {
  30. color: currentColor;
  31. }
  32. .wp-block-button:not(.is-style-outline, .form-submit) .wp-block-button__link:hover {
  33. text-decoration: underline;
  34. color: var(--wp--preset--color--primary);
  35. }
  36. .wp-block-button:is(.is-style-outline) .wp-block-button__link:hover {
  37. background: var(--wp--preset--color--foreground);
  38. border-color: var(--wp--preset--color--foreground);
  39. color: var(--wp--preset--color--background);
  40. text-decoration: none;
  41. }
  42. .wp-block-button__link.wp-block-button__link:active {
  43. color: var(--wp--preset--color--primary);
  44. }
  45. .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus {
  46. color: var(--wp--preset--color--primary);
  47. text-decoration-line: underline;
  48. text-decoration-thickness: .08rem;
  49. text-decoration-style: dotted;
  50. text-underline-offset: .1rem;
  51. }
  52. .wp-block-button:is(.is-style-outline) .wp-block-button__link:focus {
  53. background-color: var(--wp--preset--color--primary);
  54. border-color: var(--wp--preset--color--primary);
  55. color: var(--wp--preset--color--background);
  56. outline: 1px dotted var(--wp--preset--color--primary);
  57. }
  58. :is(
  59. .wp-block-search__button,
  60. .wp-block-file .wp-block-file__button
  61. ):is(
  62. :hover,
  63. :focus
  64. ) {
  65. background-color: var(--wp--preset--color--foreground);
  66. text-decoration: none;
  67. }
  68. :is(
  69. .wp-block-search__button,
  70. .wp-block-file .wp-block-file__button
  71. ):is(
  72. :focus
  73. ) {
  74. border: 1px solid var(--wp--preset--color--background);
  75. outline: 1px dotted var(--wp--preset--color--foreground);
  76. }
  77. .wp-block-post-comments-form .wp-block-button__link:hover {
  78. color: var(--wp--preset--color--primary);
  79. text-decoration: underline;
  80. }
  81. /*
  82. * Search input styles
  83. * Needed until this is resolved in Gutenberg:
  84. * https://github.com/WordPress/gutenberg/issues/34198
  85. */
  86. .wp-block-search__input {
  87. border-color: var(--wp--preset--color--foreground);
  88. }
  89. /*
  90. * Link Styles
  91. */
  92. a:not(
  93. .wp-block-search__button,
  94. .wp-block-button__link
  95. ) {
  96. text-underline-offset: .1rem;
  97. }
  98. .wp-block-site-title a {
  99. padding: .4rem 0;
  100. text-decoration: inherit; /* Needed so the link styles will be inherited correctly from theme.json */
  101. text-underline-offset: .1rem;
  102. }
  103. a:not(
  104. .wp-block-search__button,
  105. .wp-block-button__link
  106. ):focus {
  107. text-decoration: underline;
  108. text-decoration-style: dotted;
  109. }
  110. /*
  111. * Navigation and Other Link Styles
  112. */
  113. .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  114. border-color: var(--wp--preset--color--foreground);
  115. }
  116. :is(
  117. .wp-block-pages-list__item .wp-block-pages-list__item__link,
  118. ):hover {
  119. text-decoration: underline;
  120. }
  121. :is(
  122. .wp-block-pages-list__item .wp-block-pages-list__item__link,
  123. .wp-block-navigation-link__content,
  124. .wp-block-navigation-item__content,
  125. .wp-block-site-title a,
  126. .wp-block-post-navigation-link a,
  127. .wp-block-post-terms a
  128. ):focus {
  129. text-decoration-line: underline;
  130. text-decoration-style: dotted;
  131. }
  132. :is(
  133. .wp-block-pages-list__item .wp-block-pages-list__item__link
  134. ):active {
  135. text-decoration: underline;
  136. }
  137. .wp-block-post-title a:where(:not(.wp-element-button)):is(:hover, :focus) {
  138. text-underline-offset: 0.25rem;
  139. text-decoration-thickness: 0.25rem;
  140. }
  141. /*
  142. * Needed until https://github.com/WordPress/gutenberg/issues/39142 is fixed.
  143. */
  144. .wp-block-navigation__responsive-container.is-menu-open ul {
  145. font-size: 2.75rem;
  146. font-weight: 300;
  147. }
  148. /*
  149. * Hero post
  150. * The following style are required because variable fontSize doen't work in templates
  151. * Feature request: https://github.com/WordPress/gutenberg/issues/41859
  152. */
  153. .wp-block-post-title.hero-post-title {
  154. font-size: clamp(3.75rem, 10vw, 8rem);
  155. }
  156. .wp-block-post-excerpt.hero-post-excerpt {
  157. font-size: clamp(1.5rem, 4vw, 2rem);
  158. }
  159. /*
  160. * Alignment styles, borrowed from Twenty Twenty-Two.
  161. * These rules are temporary, and should not be relied on or
  162. * modified too heavily by themes or plugins that build on
  163. * Twenty Twenty-Two. These are meant to be a precursor to
  164. * a global solution provided by the Block Editor.
  165. *
  166. * Relevant issues:
  167. * https://github.com/WordPress/gutenberg/issues/35607
  168. * https://github.com/WordPress/gutenberg/issues/35884
  169. */
  170. .wp-site-blocks,
  171. body > .is-root-container,
  172. .edit-post-visual-editor__post-title-wrapper,
  173. .wp-block-group.alignfull,
  174. .wp-block-group.has-background,
  175. .wp-block-columns.alignfull.has-background,
  176. .wp-block-cover.alignfull,
  177. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  178. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  179. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  180. padding-left: var(--wp--custom--spacing--outer);
  181. padding-right: var(--wp--custom--spacing--outer);
  182. }
  183. .wp-site-blocks .alignfull,
  184. .wp-site-blocks > .wp-block-group.has-background,
  185. .wp-site-blocks > .wp-block-cover,
  186. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  187. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  188. body > .is-root-container > .wp-block-cover,
  189. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  190. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  191. .is-root-container .wp-block[data-align='full'] {
  192. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  193. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  194. max-width: unset;
  195. width: unset;
  196. }
  197. /* Blocks inside columns don't have negative margins. */
  198. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  199. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  200. /* We also want to avoid stacking negative margins. */
  201. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  202. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  203. margin-left: auto !important;
  204. margin-right: auto !important;
  205. width: inherit;
  206. }
  207. /*
  208. * Responsive menu container padding.
  209. * This ensures the responsive container inherits the same
  210. * spacing defined above. This behavior may be built into
  211. * the Block Editor in the future.
  212. */
  213. .wp-block-navigation__responsive-container.is-menu-open {
  214. padding-top: var(--wp--custom--gap--horizontal);
  215. padding-bottom: var(--wp--custom--gap--vertical);
  216. padding-right: var(--wp--custom--gap--horizontal);
  217. padding-left: var(--wp--custom--gap--horizontal);
  218. }
  219. /*
  220. * Allows comment count to be displayed in line.
  221. * i.e. "Comments (0)"
  222. */
  223. .wp-block-post-comments-count {
  224. display: inline;
  225. }
  226. /*
  227. * Pagination
  228. */
  229. :is(
  230. .wp-block-query-pagination .wp-block-query-pagination-previous,
  231. .wp-block-query-pagination .wp-block-query-pagination-next
  232. ):hover {
  233. text-decoration: underline;
  234. }
  235. .is-arrow-arrow.wp-block-query-pagination-next-arrow {
  236. margin-left: 0.375rem;
  237. font-weight: 400;
  238. }
  239. .is-arrow-arrow.wp-block-query-pagination-previous-arrow {
  240. margin-right: 0.375rem;
  241. font-weight: 400;
  242. }
  243. .wp-block-query-pagination-numbers .page-numbers:not(.current):not(.dots):hover {
  244. text-decoration: underline;
  245. }
  246. .wp-block-query-pagination-numbers .page-numbers.current {
  247. text-decoration: underline;
  248. }
  249. @media (max-width: 599px) {
  250. .wp-block-query-pagination-numbers {
  251. display: none;
  252. }
  253. }