style.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. Theme Name: Storia
  3. Theme URI: https://wordpress.com/theme/storia/
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: A visual story theme.
  7. Requires at least: 6.0
  8. Tested up to: 6.1.1
  9. Requires PHP: 5.7
  10. Version: 1.0.6
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: storia
  14. Tags: blog, 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. */
  16. /*
  17. * Font smoothing
  18. * https://github.com/WordPress/gutenberg/issues/35934
  19. */
  20. body {
  21. -moz-osx-font-smoothing: grayscale;
  22. -webkit-font-smoothing: antialiased;
  23. }
  24. /*
  25. * Control the hover stylings of outline block style.
  26. * Unnecessary once block styles are configurable via theme.json
  27. * https://github.com/WordPress/gutenberg/issues/42794
  28. */
  29. .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
  30. background-color: var(--wp--preset--color--secondary);
  31. color: var(--wp--preset--color--background);
  32. border-color: var(--wp--preset--color--secondary);
  33. }
  34. /**
  35. * Currently table styles are only available with 'wp-block-styles'
  36. * theme support (block css) thus the following needs to be included
  37. * since 'wp-block-styles' aren't used for this theme.
  38. * https://github.com/WordPress/gutenberg/issues/45065
  39. */
  40. .wp-block-table thead {
  41. border-bottom: 3px solid;
  42. }
  43. .wp-block-table tfoot {
  44. border-top: 3px solid;
  45. }
  46. .wp-block-table td,
  47. .wp-block-table th {
  48. padding: var(--wp--preset--spacing--30);
  49. border: 1px solid;
  50. word-break: normal;
  51. }
  52. .wp-block-table figcaption {
  53. font-size: var(--wp--preset--font-size--small);
  54. text-align: center;
  55. }
  56. /*
  57. * Link styles
  58. * https://github.com/WordPress/gutenberg/issues/42319
  59. */
  60. a {
  61. text-decoration-thickness: .0625em !important;
  62. text-underline-offset: .3em;
  63. }
  64. /* Overrides the Gutenberg styles for the outline button */
  65. .wp-block-button.is-style-outline>.wp-block-button__link {
  66. padding: calc(1.050420168em - 1px) calc(2.100840336em - 1px);
  67. border: 1px solid var(--wp--preset--color--foreground);
  68. }
  69. /* Reset the Gutenberg style for the author byline */
  70. .wp-block-post-author__byline {
  71. font-size: 1em;
  72. }
  73. /* There is no option for border-radius yet */
  74. .wp-block-post-author__avatar img {
  75. border-radius: 999px;
  76. }
  77. /*
  78. * Needed until https://github.com/WordPress/gutenberg/issues/34196 or something like it.
  79. */
  80. .wp-block-tag-cloud.is-style-outline a {
  81. border-radius: 999px;
  82. padding: 0 1rem;
  83. }
  84. .wp-block-tag-cloud.is-style-outline a:hover {
  85. color: var(--wp--preset--color--background);
  86. background-color: var(--wp--preset--color--primary);
  87. }
  88. /*
  89. * Remove the default margin bottom from term description and post excerpt.
  90. */
  91. .wp-block-term-description p:first-child {
  92. margin-top: 0;
  93. }
  94. .wp-block-term-description p:last-child {
  95. margin-bottom: 0;
  96. }
  97. /*
  98. * Needed to style Jetpack Form
  99. */
  100. .wp-block-jetpack-contact-form input:not([type=submit]):not([type=checkbox]),
  101. .wp-block-jetpack-mailchimp input:not([type=submit]):not([type=checkbox]),
  102. .wp-block-jetpack-revue input:not([type=submit]):not([type=checkbox]),
  103. .wp-block-jetpack-contact-form select,
  104. .wp-block-jetpack-contact-form textarea {
  105. background-color: var(--wp--preset--color--background);
  106. border: 1px solid var(--wp--preset--color--tertiary);
  107. font-family: inherit;
  108. font-size: 1em;
  109. padding: 0.75rem;
  110. }
  111. .wp-block-jetpack-contact-form .wp-block-jetpack-button button,
  112. .wp-block-jetpack-mailchimp .wp-block-jetpack-button button,
  113. .wp-block-jetpack-revue .wp-block-jetpack-button button {
  114. border-width: 0;
  115. font-size: var(--wp--preset--font-size--x-small);
  116. font-weight: 700;
  117. letter-spacing: 0.02em;
  118. line-height: inherit;
  119. padding: 1.050420168em 2.100840336em;
  120. }