style.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. /*
  2. Theme Name: Livro
  3. Theme URI: https://wordpress.com/theme/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.19
  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, auto-loading-homepage
  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. /*
  76. * Alignment styles.
  77. * These rules are temporary, and should not be relied on or
  78. * modified too heavily by themes or plugins that build on
  79. * Livro. These are meant to be a precursor to
  80. * a global solution provided by the Block Editor.
  81. *
  82. * Relevant issues:
  83. * https://github.com/WordPress/gutenberg/issues/35607
  84. * https://github.com/WordPress/gutenberg/issues/35884
  85. */
  86. .wp-site-blocks,
  87. body > .is-root-container,
  88. .edit-post-visual-editor__post-title-wrapper,
  89. .wp-block-group.alignfull,
  90. .wp-block-group.has-background,
  91. .wp-block-columns.alignfull.has-background,
  92. .wp-block-cover.alignfull,
  93. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  94. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  95. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  96. padding-left: var(--wp--custom--spacing--outer);
  97. padding-right: var(--wp--custom--spacing--outer);
  98. }
  99. .wp-site-blocks .alignfull,
  100. .wp-site-blocks > .wp-block-group.has-background,
  101. .wp-site-blocks > .wp-block-cover,
  102. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  103. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  104. body > .is-root-container > .wp-block-cover,
  105. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  106. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  107. .is-root-container .wp-block[data-align="full"] {
  108. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  109. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  110. max-width: unset;
  111. width: unset;
  112. }
  113. /* Blocks inside columns don't have negative margins. */
  114. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  115. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  116. /* We also want to avoid stacking negative margins. */
  117. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  118. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  119. margin-left: auto !important;
  120. margin-right: auto !important;
  121. width: inherit;
  122. }
  123. /*
  124. * Custom theme styles.
  125. */
  126. .wp-block-post-title a,
  127. .wp-block-post-date a {
  128. text-decoration: none;
  129. }
  130. .wp-block-post-title a:hover,
  131. .wp-block-post-date a:hover,
  132. .wp-block-site-title a:hover {
  133. text-decoration: underline;
  134. }
  135. .wp-block-site-title[style*="text-transform:uppercase"] {
  136. letter-spacing: 0.15em;
  137. }
  138. /*
  139. * Comment form cleanup.
  140. */
  141. input {
  142. font-family: inherit;
  143. }
  144. textarea,
  145. input:not([type="submit"]):not([type="button"]) {
  146. color: var(--wp--preset--color--foreground);
  147. background: var(--wp--preset--color--background);
  148. border-color: var(--wp--preset--color--foreground);
  149. }
  150. textarea:focus,
  151. input:not([type="submit"]):not([type="button"]):focus {
  152. border-color: var(--wp--preset--color--secondary);
  153. }
  154. .comment-form label {
  155. font-size: var(--wp--preset--font-size--small);
  156. }
  157. .wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
  158. margin-top: 0.2em;
  159. }
  160. .wp-block-post-comments h3#comments {
  161. margin-top: var(--wp--style--block-gap);
  162. }
  163. .wp-block-post-comments .navigation + .comment-respond {
  164. margin-top: calc(3 * var(--wp--style--block-gap));
  165. }
  166. /*
  167. * Drop cap refinements.
  168. */
  169. .has-drop-cap:not(:focus)::first-letter {
  170. font-size: 3.15em;
  171. font-weight: 300;
  172. margin: 0.25em 0.125em 0 0;
  173. }
  174. /*
  175. * Aside post format.
  176. */
  177. .single-format-aside h1.wp-block-post-title,
  178. .single-format-aside h1.wp-block-post-title + .wp-block-post-date,
  179. .home .post_format-post-format-aside .wp-block-post-title,
  180. .archive .post_format-post-format-aside .wp-block-post-title,
  181. .blog .post_format-post-format-aside .wp-block-post-title {
  182. display: none;
  183. }