style.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*
  2. Theme Name: Club
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/club
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Club is a funky, bright theme with vibrant colors and a quirky aesthetic that speaks to a younger audience.
  7. Requires at least: 5.8
  8. Tested up to: 6.0
  9. Requires PHP: 5.7
  10. Version: 0.0.13
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: club
  14. Tags:
  15. Club WordPress Theme, (C) 2021 Automattic, Inc.
  16. Club is distributed under the terms of the GNU GPL.
  17. This program is free software: you can redistribute it and/or modify
  18. it under the terms of the GNU General Public License as published by
  19. the Free Software Foundation, either version 2 of the License, or
  20. (at your option) any later version.
  21. This program is distributed in the hope that it will be useful,
  22. but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. GNU General Public License for more details.
  25. */
  26. /*
  27. * Font smoothing
  28. */
  29. body {
  30. -moz-osx-font-smoothing: grayscale;
  31. -webkit-font-smoothing: antialiased;
  32. }
  33. /*
  34. * Button hover styles.
  35. * Necessary until the following issue is resolved in Gutenberg:
  36. * https://github.com/WordPress/gutenberg/issues/27075
  37. */
  38. :is(
  39. .wp-block-search__button,
  40. .wp-block-file .wp-block-file__button,
  41. .wp-block-button__link,
  42. .wp-elements-button,
  43. ):where(:hover, :focus, :active) {
  44. background-color: var(--wp--preset--color--background);
  45. color: var(--wp--preset--color--foreground);
  46. border: 1.5px solid var(--wp--preset--color--foreground);
  47. }
  48. :is(
  49. .wp-block-search__button,
  50. .wp-block-file .wp-block-file__button,
  51. .wp-block-button__link,
  52. .wp-elements-button,
  53. ):where(:active) {
  54. border-style: dotted;
  55. }
  56. :is(
  57. .wp-block-search__button,
  58. .wp-block-file .wp-block-file__button,
  59. .wp-block-button__link,
  60. .wp-elements-button,
  61. ):where(:active) {
  62. border-style: dotted;
  63. }
  64. :is(
  65. .is-style-outline .wp-block-button__link,
  66. .is-style-outline .wp-element-button,
  67. .wp-block-post-comments-form input[type=submit],
  68. ):is(
  69. :hover,
  70. :focus
  71. ) {
  72. background: var(--wp--preset--color--foreground);
  73. color: var(--wp--preset--color--background);
  74. }
  75. :is(
  76. .is-style-outline .wp-block-button__link,
  77. .is-style-outline .wp-element-button,
  78. .wp-block-post-comments-form input[type=submit],
  79. ):is(
  80. :active
  81. ) {
  82. background: var(--wp--preset--color--background);
  83. color: var(--wp--preset--color--foreground);
  84. border-style: dotted;
  85. }
  86. /* This is necesary to fix the outline style for the button in the editor */
  87. :where(.is-style-outline)
  88. :is(
  89. .wp-block-button__link,
  90. .wp-element-button
  91. ) {
  92. border: 1px solid var(--wp--preset--color--foreground);
  93. }
  94. /* This is necesary to make the post list item the same height when the post has or lacks a featured image */
  95. .club-post-list-pattern .wp-block-post-title {
  96. min-height: 60px; /* 60px is the height of the featured image used */
  97. display: flex;
  98. justify-content: center;
  99. flex-direction: column;
  100. }
  101. /*
  102. * Alignment styles, borrowed from Twenty Twenty-Two.
  103. * These rules are temporary, and should not be relied on or
  104. * modified too heavily by themes or plugins that build on
  105. * Twenty Twenty-Two. These are meant to be a precursor to
  106. * a global solution provided by the Block Editor.
  107. *
  108. * Relevant issues:
  109. * https://github.com/WordPress/gutenberg/issues/35607
  110. * https://github.com/WordPress/gutenberg/issues/35884
  111. */
  112. .wp-site-blocks,
  113. body > .is-root-container,
  114. .edit-post-visual-editor__post-title-wrapper,
  115. .wp-block-group.alignfull,
  116. .wp-block-group.has-background,
  117. .wp-block-columns.alignfull.has-background,
  118. .wp-block-cover.alignfull,
  119. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  120. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  121. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  122. padding-left: var(--wp--custom--gap--horizontal);
  123. padding-right: var(--wp--custom--gap--horizontal);
  124. }
  125. .wp-site-blocks .alignfull,
  126. .wp-site-blocks > .wp-block-group.has-background,
  127. .wp-site-blocks > .wp-block-cover,
  128. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  129. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  130. body > .is-root-container > .wp-block-cover,
  131. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  132. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  133. .is-root-container .wp-block[data-align='full'] {
  134. margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  135. margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  136. max-width: unset;
  137. width: unset;
  138. }
  139. /* Blocks inside columns don't have negative margins. */
  140. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  141. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  142. /* We also want to avoid stacking negative margins. */
  143. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  144. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  145. margin-left: auto !important;
  146. margin-right: auto !important;
  147. width: inherit;
  148. }
  149. /*
  150. * Responsive menu container padding.
  151. * This ensures the responsive container inherits the same
  152. * spacing defined above. This behavior may be built into
  153. * the Block Editor in the future.
  154. */
  155. .wp-block-navigation__responsive-container.is-menu-open {
  156. padding-top: var(--wp--custom--gap--horizontal);
  157. padding-bottom: var(--wp--custom--gap--vertical);
  158. padding-right: var(--wp--custom--gap--horizontal);
  159. padding-left: var(--wp--custom--gap--horizontal);
  160. }