style.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. Theme Name: Pendant
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/pendant
  4. Author: Automattic
  5. Author URI: https://automattic.com
  6. Description: An elegant product-focused theme
  7. Requires at least: 5.8
  8. Tested up to: 5.9
  9. Requires PHP: 5.7
  10. Version: 0.0.9
  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: pendant
  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. * Opinionated Style for Anchors.
  26. * Anchors get a thin underline offset more than default.
  27. * Headings get slightly different dimensions.
  28. * Any anchors IN the content are underlined by default, then none on hover.
  29. * Any anchors OUT of the content behave the opposite.
  30. * Buttons have no underlines.
  31. */
  32. a {
  33. cursor: pointer;
  34. text-underline-offset: 0.3em;
  35. text-decoration-thickness: 0.05em;
  36. text-decoration-line: none;
  37. }
  38. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  39. text-underline-offset: 0.15em;
  40. text-decoration-thickness: 0.02em;
  41. }
  42. a:hover,
  43. a:focus {
  44. text-decoration-line: underline;
  45. }
  46. .block-editor-block-list__layout a,
  47. .wp-block-post-content a {
  48. text-decoration-line: underline;
  49. }
  50. .block-editor-block-list__layout a:hover,
  51. .block-editor-block-list__layout a:focus,
  52. .wp-block-post-content a:focus,
  53. .wp-block-post-content a:hover {
  54. text-decoration: none;
  55. }
  56. .wp-block-post-content .wp-block-button a {
  57. text-decoration: none;
  58. }
  59. /*
  60. * Button hover styles.
  61. * Necessary until the following issue is resolved in Gutenberg:
  62. * https://github.com/WordPress/gutenberg/issues/27075
  63. */
  64. .wp-block-search__button:hover,
  65. .wp-block-file .wp-block-file__button:hover,
  66. .wp-block-button__link:hover {
  67. background-color: var(--wp--preset--color--background);
  68. color: var(--wp--preset--color--foreground);
  69. border: 2px solid var(--wp--preset--color--foreground);
  70. padding: 0.667em 1.333em !important;
  71. }
  72. .wp-block-button.is-style-outline .wp-block-button__link:hover {
  73. background-color: var(--wp--preset--color--foreground);
  74. color: var(--wp--preset--color--background);
  75. border: 2px solid var(--wp--preset--color--foreground);
  76. }
  77. /*
  78. * Search and File Block button styles.
  79. * Necessary until the following issues are resolved in Gutenberg:
  80. * https://github.com/WordPress/gutenberg/issues/36444
  81. * https://github.com/WordPress/gutenberg/issues/27760
  82. */
  83. .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  84. padding: 0;
  85. border-color: var(--wp--preset--color--foreground);
  86. }
  87. .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input {
  88. padding-left: 1em;
  89. }
  90. .wp-block-search__button,
  91. .wp-block-file .wp-block-file__button {
  92. background-color: var(--wp--preset--color--foreground);
  93. color: var(--wp--preset--color--background);
  94. font-size: var(--wp--preset--typography--font-size--medium);
  95. letter-spacing: 0.1em;
  96. text-transform: uppercase;
  97. font-weight: 600;
  98. line-height: 1.7;
  99. border:none;
  100. padding: calc(0.667em + 2px) calc(1.333em + 2px) !important;
  101. }
  102. /*
  103. * Decrease the size of social icons
  104. */
  105. .wp-block-social-links.is-style-logos-only .wp-social-link svg {
  106. height: 1em;
  107. width: 1em;
  108. }
  109. /*
  110. * Alignment styles, borrowed from Twenty Twenty-Two.
  111. * These rules are temporary, and should not be relied on or
  112. * modified too heavily by themes or plugins that build on
  113. * Twenty Twenty-Two. These are meant to be a precursor to
  114. * a global solution provided by the Block Editor.
  115. *
  116. * Relevant issues:
  117. * https://github.com/WordPress/gutenberg/issues/35607
  118. * https://github.com/WordPress/gutenberg/issues/35884
  119. */
  120. .wp-site-blocks,
  121. body > .is-root-container,
  122. .edit-post-visual-editor__post-title-wrapper,
  123. .wp-block-group.alignfull,
  124. .wp-block-group.has-background,
  125. .wp-block-columns.alignfull.has-background,
  126. .wp-block-cover.alignfull,
  127. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  128. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  129. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  130. padding-left: var(--wp--custom--gap--horizontal);
  131. padding-right: var(--wp--custom--gap--horizontal);
  132. }
  133. .wp-site-blocks .alignfull,
  134. .wp-site-blocks > .wp-block-group.has-background,
  135. .wp-site-blocks > .wp-block-cover,
  136. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  137. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  138. body > .is-root-container > .wp-block-cover,
  139. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  140. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  141. .is-root-container .wp-block[data-align='full'] {
  142. margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  143. margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  144. max-width: unset;
  145. width: unset;
  146. }
  147. /* Blocks inside columns don't have negative margins. */
  148. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  149. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  150. /* We also want to avoid stacking negative margins. */
  151. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  152. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  153. margin-left: auto !important;
  154. margin-right: auto !important;
  155. width: inherit;
  156. }
  157. /* We are unable to style the "cite" element in the quote block */
  158. .wp-block-quote cite {
  159. font-family: var(--wp--preset--font-family--body-font);
  160. font-style: italic;
  161. font-size: var(--wp--preset--font-size--x-small);
  162. }
  163. /* The plain quote block has a left-padding that doesn't work well with our design */
  164. .wp-block-quote.is-style-plain {
  165. padding-left: 0;
  166. }
  167. /** Navigation sub-menu items **/
  168. .wp-block-navigation .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
  169. text-transform: uppercase;
  170. font-weight: 500;
  171. line-height: 2.6;
  172. font-size: var(--wp--preset--font-size--x-small);
  173. letter-spacing: 0.1em;
  174. }