style.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*
  2. Theme Name: Lynx
  3. Theme URI:
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: A theme for anyone who wants to create a collection of links to their online profiles. It comes with a selection of patterns ready for customization.
  7. Requires at least: 5.7
  8. Tested up to: 5.9
  9. Requires PHP: 5.7
  10. Version: 1.0.28
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: lynx
  14. Tags: block-patterns, 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, style-variations
  15. Lynx WordPress Theme, (C) 2022 Automattic, Inc.
  16. Lynx 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. * This is a niche setting that will not be available via Global Styles.
  29. * https://github.com/WordPress/gutenberg/issues/35934
  30. */
  31. body {
  32. -moz-osx-font-smoothing: grayscale;
  33. -webkit-font-smoothing: antialiased;
  34. }
  35. /*
  36. * Text and navigation link styles.
  37. * Necessary until the following issue is resolved in Gutenberg:
  38. * https://github.com/WordPress/gutenberg/issues/27075
  39. */
  40. a {
  41. text-decoration-thickness: 1px;
  42. text-underline-offset: 0.25ch;
  43. text-decoration-style: underline;
  44. }
  45. a:hover,
  46. a:focus {
  47. text-decoration-style: solid;
  48. }
  49. a:active {
  50. text-decoration: none;
  51. }
  52. .wp-block-navigation .wp-block-navigation-item a:hover,
  53. .wp-block-navigation .wp-block-navigation-item a:focus {
  54. text-decoration: underline;
  55. text-decoration-style: solid;
  56. }
  57. /*
  58. * Search and File Block button styles.
  59. * Necessary until the following issues are resolved in Gutenberg:
  60. * https://github.com/WordPress/gutenberg/issues/36444
  61. * https://github.com/WordPress/gutenberg/issues/27760
  62. */
  63. .wp-block-search__button,
  64. .wp-block-file .wp-block-file__button {
  65. background-color: var(--wp--preset--color--foreground);
  66. border-radius: 0;
  67. border: none;
  68. color: var(--wp--preset--color--background);
  69. font-size: var(--wp--preset--font-size--medium);
  70. padding: calc(.667em + 2px) calc(1.333em + 2px);
  71. }
  72. /*
  73. * Button hover styles.
  74. * Necessary until the following issue is resolved in Gutenberg:
  75. * https://github.com/WordPress/gutenberg/issues/27075
  76. */
  77. .wp-block-search__button:hover,
  78. .wp-block-file .wp-block-file__button:hover,
  79. .wp-block-button__link:hover {
  80. opacity: 0.90;
  81. }
  82. .wp-block-button__link:hover, .wp-block-button__link:focus,
  83. .wp-block-button__link:active, .wp-block-button__link:visited {
  84. color: initial;
  85. }
  86. /*
  87. * Alignment styles.
  88. * These rules are temporary, and should not be relied on or
  89. * modified too heavily by themes or plugins that build on
  90. * Lettre. These are meant to be a precursor to
  91. * a global solution provided by the Block Editor.
  92. *
  93. * Relevant issues:
  94. * https://github.com/WordPress/gutenberg/issues/35607
  95. * https://github.com/WordPress/gutenberg/issues/35884
  96. */
  97. .wp-site-blocks,
  98. body > .is-root-container,
  99. .edit-post-visual-editor__post-title-wrapper,
  100. .wp-block-group.alignfull,
  101. .wp-block-group.has-background,
  102. .wp-block-columns.alignfull.has-background,
  103. .wp-block-cover.alignfull,
  104. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  105. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  106. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  107. padding-left: var(--wp--custom--spacing--outer);
  108. padding-right: var(--wp--custom--spacing--outer);
  109. }
  110. .wp-site-blocks .alignfull,
  111. .wp-site-blocks > .wp-block-group.has-background,
  112. .wp-site-blocks > .wp-block-cover,
  113. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  114. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  115. body > .is-root-container > .wp-block-cover,
  116. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  117. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  118. .is-root-container .wp-block[data-align="full"] {
  119. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  120. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  121. max-width: unset;
  122. width: unset;
  123. }
  124. /* Blocks inside columns don't have negative margins. */
  125. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  126. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  127. /* We also want to avoid stacking negative margins. */
  128. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  129. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  130. margin-left: auto !important;
  131. margin-right: auto !important;
  132. width: inherit;
  133. }
  134. /*
  135. * Custom theme styles.
  136. */
  137. .wp-block-post-title a,
  138. .wp-block-post-date a,
  139. .wp-block-site-title a {
  140. text-decoration: none;
  141. }
  142. .wp-block-post-title a:hover,
  143. .wp-block-post-date a:hover,
  144. .wp-block-site-title a:hover {
  145. text-decoration: underline;
  146. }
  147. .wp-block-site-title[style*="text-transform:uppercase"] {
  148. letter-spacing: 0.15em;
  149. }
  150. /*
  151. * Comment form cleanup.
  152. */
  153. input {
  154. font-family: inherit;
  155. }
  156. textarea,
  157. input:not([type="submit"]):not([type="button"]) {
  158. color: var(--wp--preset--color--foreground);
  159. background: var(--wp--preset--color--background);
  160. border-color: var(--wp--preset--color--foreground);
  161. }
  162. textarea:focus,
  163. input:not([type="submit"]):not([type="button"]):focus {
  164. border-color: var(--wp--preset--color--secondary);
  165. }
  166. .comment-form label {
  167. font-size: var(--wp--preset--font-size--small);
  168. }
  169. .wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
  170. margin-top: 0.2em;
  171. }
  172. .wp-block-post-comments h3#comments {
  173. margin-top: var(--wp--style--block-gap);
  174. }
  175. .wp-block-post-comments .navigation + .comment-respond {
  176. margin-top: calc(3 * var(--wp--style--block-gap));
  177. }
  178. /*
  179. * Drop cap refinements.
  180. */
  181. .has-drop-cap:not(:focus)::first-letter {
  182. font-size: 3.15em;
  183. font-weight: 300;
  184. margin: 0.2em 0.125em 0 0;
  185. }
  186. /*
  187. * Tag cloud refinements.
  188. */
  189. .wp-block-tag-cloud.is-style-outline a {
  190. border-radius: 50px;
  191. border-color: var(--wp--preset--color--primary);
  192. color: var(--wp--preset--color--primary);
  193. /* Core styles use !important here, so the theme needs to use it too. */
  194. font-size: var(--wp--preset--font-size--small) !important;
  195. }