style.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. /*
  2. Theme Name: Livro
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/livro
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Livro is a simple theme designed to evoke the calm feeling you get when you settle in with a classic book.
  7. Requires at least: 5.8
  8. Tested up to: 5.8.3
  9. Requires PHP: 5.6
  10. Requires Gutenberg: 12.8
  11. Version: 1.0.10
  12. License: GNU General Public License v2 or later
  13. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  14. Text Domain: livro
  15. Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
  16. Livro WordPress Theme, (C) 2022 Automattic, Inc.
  17. Livro is distributed under the terms of the GNU GPL.
  18. */
  19. /*
  20. * Font smoothing.
  21. * This is a niche setting that will not be available via Global Styles.
  22. * https://github.com/WordPress/gutenberg/issues/35934
  23. */
  24. body {
  25. -moz-osx-font-smoothing: grayscale;
  26. -webkit-font-smoothing: antialiased;
  27. }
  28. /*
  29. * Text and navigation link styles.
  30. * Necessary until the following issue is resolved in Gutenberg:
  31. * https://github.com/WordPress/gutenberg/issues/27075
  32. */
  33. a {
  34. text-decoration-thickness: 1px;
  35. text-underline-offset: 0.25ch;
  36. text-decoration-style: dotted;
  37. }
  38. a:hover,
  39. a:focus {
  40. text-decoration-style: solid;
  41. }
  42. a:active {
  43. text-decoration: none;
  44. }
  45. .wp-block-navigation .wp-block-navigation-item a:hover,
  46. .wp-block-navigation .wp-block-navigation-item a:focus {
  47. text-decoration: underline;
  48. text-decoration-style: solid;
  49. }
  50. /*
  51. * Search and File Block button styles.
  52. * Necessary until the following issues are resolved in Gutenberg:
  53. * https://github.com/WordPress/gutenberg/issues/36444
  54. * https://github.com/WordPress/gutenberg/issues/27760
  55. */
  56. .wp-block-search__button,
  57. .wp-block-file .wp-block-file__button {
  58. background-color: var(--wp--preset--color--foreground);
  59. border-radius: 0;
  60. border: none;
  61. color: var(--wp--preset--color--background);
  62. font-size: var(--wp--preset--font-size--medium);
  63. padding: calc(.667em + 2px) calc(1.333em + 2px);
  64. }
  65. /*
  66. * Button hover styles.
  67. * Necessary until the following issue is resolved in Gutenberg:
  68. * https://github.com/WordPress/gutenberg/issues/27075
  69. */
  70. .wp-block-search__button:hover,
  71. .wp-block-file .wp-block-file__button:hover,
  72. .wp-block-button__link:hover {
  73. opacity: 0.90;
  74. }
  75. .wp-block-button__link:hover, .wp-block-button__link:focus,
  76. .wp-block-button__link:active, .wp-block-button__link:visited {
  77. color: initial;
  78. }
  79. /*
  80. * Alignment styles.
  81. * These rules are temporary, and should not be relied on or
  82. * modified too heavily by themes or plugins that build on
  83. * Livro. These are meant to be a precursor to
  84. * a global solution provided by the Block Editor.
  85. *
  86. * Relevant issues:
  87. * https://github.com/WordPress/gutenberg/issues/35607
  88. * https://github.com/WordPress/gutenberg/issues/35884
  89. */
  90. .wp-site-blocks,
  91. body > .is-root-container,
  92. .edit-post-visual-editor__post-title-wrapper,
  93. .wp-block-group.alignfull,
  94. .wp-block-group.has-background,
  95. .wp-block-columns.alignfull.has-background,
  96. .wp-block-cover.alignfull,
  97. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  98. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  99. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  100. padding-left: var(--wp--custom--spacing--outer);
  101. padding-right: var(--wp--custom--spacing--outer);
  102. }
  103. .wp-site-blocks .alignfull,
  104. .wp-site-blocks > .wp-block-group.has-background,
  105. .wp-site-blocks > .wp-block-cover,
  106. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  107. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  108. body > .is-root-container > .wp-block-cover,
  109. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  110. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  111. .is-root-container .wp-block[data-align="full"] {
  112. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  113. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  114. max-width: unset;
  115. width: unset;
  116. }
  117. /* Blocks inside columns don't have negative margins. */
  118. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  119. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  120. /* We also want to avoid stacking negative margins. */
  121. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  122. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  123. margin-left: auto !important;
  124. margin-right: auto !important;
  125. width: inherit;
  126. }
  127. /*
  128. * Custom theme styles.
  129. */
  130. .wp-block-post-title a,
  131. .wp-block-post-date a,
  132. .wp-block-site-title a {
  133. text-decoration: none;
  134. }
  135. .wp-block-post-title a:hover,
  136. .wp-block-post-date a:hover,
  137. .wp-block-site-title a:hover {
  138. text-decoration: underline;
  139. }
  140. .wp-block-site-title[style*="text-transform:uppercase"] {
  141. letter-spacing: 0.15em;
  142. }
  143. /*
  144. * Comment form cleanup.
  145. */
  146. input {
  147. font-family: inherit;
  148. }
  149. textarea,
  150. input:not([type="submit"]):not([type="button"]) {
  151. color: var(--wp--preset--color--foreground);
  152. background: var(--wp--preset--color--background);
  153. border-color: var(--wp--preset--color--foreground);
  154. }
  155. textarea:focus,
  156. input:not([type="submit"]):not([type="button"]):focus {
  157. border-color: var(--wp--preset--color--secondary);
  158. }
  159. .comment-form label {
  160. font-size: var(--wp--preset--font-size--small);
  161. }
  162. .wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
  163. margin-top: 0.2em;
  164. }
  165. .wp-block-post-comments h3#comments {
  166. margin-top: var(--wp--style--block-gap);
  167. }
  168. .wp-block-post-comments .navigation + .comment-respond {
  169. margin-top: calc(3 * var(--wp--style--block-gap));
  170. }
  171. /*
  172. * Drop cap refinements.
  173. */
  174. .has-drop-cap:not(:focus)::first-letter {
  175. font-size: 3.15em;
  176. font-weight: 300;
  177. margin: 0.25em 0.125em 0 0;
  178. }
  179. /*
  180. * Aside post format.
  181. */
  182. .single-format-aside h1.wp-block-post-title,
  183. .single-format-aside h1.wp-block-post-title + .wp-block-post-date,
  184. .home .post_format-post-format-aside .wp-block-post-title,
  185. .archive .post_format-post-format-aside .wp-block-post-title,
  186. .blog .post_format-post-format-aside .wp-block-post-title {
  187. display: none;
  188. }