style.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. /*
  2. Theme Name: Curator
  3. Theme URI: https://wordpress.com/theme/curator
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description:
  7. Requires at least: 5.8
  8. Tested up to: 5.9
  9. Requires PHP: 5.7
  10. Version: 0.0.3
  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: curator
  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. * Font smoothing
  18. */
  19. body {
  20. -moz-osx-font-smoothing: grayscale;
  21. -webkit-font-smoothing: antialiased;
  22. }
  23. /*
  24. * Button hover styles.
  25. * Necessary until the following issue is resolved in Gutenberg:
  26. * https://github.com/WordPress/gutenberg/issues/27075
  27. */
  28. .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  29. padding: 0;
  30. }
  31. .wp-block-button__link:hover {
  32. text-decoration: underline;
  33. color: var(--wp--preset--color--foreground);
  34. }
  35. .wp-block-button__link.wp-block-button__link:active {
  36. color: var(--wp--preset--color--background);
  37. background-color: var(--wp--preset--color--primary);
  38. }
  39. .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus {
  40. color: var(--wp--preset--color--foreground);
  41. border-bottom: 1px dashed var(--wp--preset--color--foreground);
  42. }
  43. .wp-block-button:is(.is-style-outline) .wp-block-button__link:focus {
  44. outline: 1px dashed var(--wp--preset--color--foreground);
  45. }
  46. .wp-block-search__button.wp-block-search__button,
  47. .wp-block-file .wp-block-file__button.wp-block-file__button {
  48. background-color: var(--wp--preset--color--primary);
  49. color: var(--wp--preset--color--background);
  50. font-family: var(--wp--preset--font-family--heading-font);
  51. font-size: var(--wp--custom--button--typography--font-size);
  52. font-weight: 900;
  53. }
  54. :is(
  55. .wp-block-search__button,
  56. .wp-block-file .wp-block-file__button
  57. ):is(
  58. :hover,
  59. :focus
  60. ) {
  61. background-color: var(--wp--preset--color--foreground);
  62. }
  63. :is(
  64. .wp-block-search__button,
  65. .wp-block-file .wp-block-file__button
  66. ):is(
  67. :focus
  68. ) {
  69. outline: 1px dashed var(--wp--preset--color--foreground);
  70. }
  71. /*
  72. * Search and File Block button styles.
  73. * Necessary until the following issues are resolved in Gutenberg:
  74. * https://github.com/WordPress/gutenberg/issues/36444
  75. * https://github.com/WordPress/gutenberg/issues/27760
  76. */
  77. .wp-block-search__button,
  78. .wp-block-file .wp-block-file__button {
  79. background-color: var(--wp--preset--color--foreground);
  80. border-radius: 0;
  81. border: none;
  82. color: var(--wp--preset--color--background);
  83. font-size: var(--wp--preset--typography--font-size--normal);
  84. padding: calc(0.667em + 2px) calc(1.333em + 2px);
  85. }
  86. /*
  87. * Link Styles
  88. */
  89. a:not(
  90. .wp-block-search__button,
  91. .wp-block-button__link
  92. ) {
  93. padding: .4rem 0;
  94. text-underline-offset: .1rem;
  95. }
  96. a:not(
  97. .wp-block-search__button,
  98. .wp-block-button__link
  99. ):hover {
  100. text-decoration: none;
  101. }
  102. a:not(
  103. .wp-block-search__button,
  104. .wp-block-button__link
  105. ):focus {
  106. text-decoration-style: dotted;
  107. }
  108. a:not(
  109. .wp-block-search__button,
  110. .wp-block-button__link
  111. ):active {
  112. text-decoration: none;
  113. background-color: var(--wp--preset--color--tertiary);
  114. }
  115. /*
  116. * Navigation Link Styles
  117. */
  118. :is(
  119. .wp-block-pages-list__item .wp-block-pages-list__item__link,
  120. .wp-block-navigation-link__content
  121. ):hover {
  122. text-decoration: underline;
  123. }
  124. :is(
  125. .wp-block-pages-list__item .wp-block-pages-list__item__link,
  126. .wp-block-navigation-link__content
  127. ):focus {
  128. text-decoration-line: underline;
  129. text-decoration-style: dotted;
  130. }
  131. :is(
  132. .wp-block-pages-list__item .wp-block-pages-list__item__link,
  133. .wp-block-navigation-link__content
  134. ):active {
  135. background-color: var(--wp--preset--color--tertiary);
  136. }
  137. /*
  138. * Alignment styles, borrowed from Twenty Twenty-Two.
  139. * These rules are temporary, and should not be relied on or
  140. * modified too heavily by themes or plugins that build on
  141. * Twenty Twenty-Two. These are meant to be a precursor to
  142. * a global solution provided by the Block Editor.
  143. *
  144. * Relevant issues:
  145. * https://github.com/WordPress/gutenberg/issues/35607
  146. * https://github.com/WordPress/gutenberg/issues/35884
  147. */
  148. .wp-site-blocks,
  149. body > .is-root-container,
  150. .edit-post-visual-editor__post-title-wrapper,
  151. .wp-block-group.alignfull,
  152. .wp-block-group.has-background,
  153. .wp-block-columns.alignfull.has-background,
  154. .wp-block-cover.alignfull,
  155. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  156. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  157. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  158. padding-left: var(--wp--custom--spacing--outer);
  159. padding-right: var(--wp--custom--spacing--outer);
  160. }
  161. .wp-site-blocks .alignfull,
  162. .wp-site-blocks > .wp-block-group.has-background,
  163. .wp-site-blocks > .wp-block-cover,
  164. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  165. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  166. body > .is-root-container > .wp-block-cover,
  167. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  168. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  169. .is-root-container .wp-block[data-align='full'] {
  170. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  171. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  172. max-width: unset;
  173. width: unset;
  174. }
  175. /* Blocks inside columns don't have negative margins. */
  176. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  177. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  178. /* We also want to avoid stacking negative margins. */
  179. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  180. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  181. margin-left: auto !important;
  182. margin-right: auto !important;
  183. width: inherit;
  184. }
  185. /*
  186. * Responsive menu container padding.
  187. * This ensures the responsive container inherits the same
  188. * spacing defined above. This behavior may be built into
  189. * the Block Editor in the future.
  190. */
  191. .wp-block-navigation__responsive-container.is-menu-open {
  192. padding-top: var(--wp--custom--gap--horizontal);
  193. padding-bottom: var(--wp--custom--gap--vertical);
  194. padding-right: var(--wp--custom--gap--horizontal);
  195. padding-left: var(--wp--custom--gap--horizontal);
  196. }