style.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. Theme Name: Stewart
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/stewart
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Stewart is a modern blogging theme with a left sidebar. Its default color scheme is a striking combination of orange and light gray, to give your blog a sophisticated appearance from day one.
  7. Requires at least: 5.8
  8. Tested up to: 5.8
  9. Requires PHP: 5.7
  10. Version: 1.8
  11. License: GNU General Public License v2 or later
  12. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  13. Text Domain: stewart
  14. Tags: two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
  15. Stewart WordPress Theme, (C) 2022 Automattic, Inc.
  16. Stewart 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. This theme uses the following third-party resource in its theme screenshot:
  26. "Swedish Windows / Fönster no. 1" by Fons Heijnsbroek
  27. https://www.flickr.com/photos/abstract-art-fons/28822761186/
  28. */
  29. /*
  30. * Font smoothing.
  31. * This is a niche setting that will not be available via Global Styles.
  32. * https://github.com/WordPress/gutenberg/issues/35934
  33. */
  34. body {
  35. -moz-osx-font-smoothing: grayscale;
  36. -webkit-font-smoothing: antialiased;
  37. }
  38. /*
  39. * Link Details
  40. */
  41. a {
  42. text-decoration-thickness: 0.075ex;
  43. text-underline-offset: 0.125em;
  44. }
  45. .wp-block-site-title a {
  46. text-decoration: none;
  47. }
  48. a:hover,
  49. .wp-block-site-title a:hover,
  50. .wp-block-post-title a:hover,
  51. .wp-block-post-date a:hover {
  52. color: var(--wp--preset--color--primary);
  53. }
  54. .wp-block-navigation .wp-block-navigation-link a,
  55. .wp-block-navigation .wp-block-page-list a,
  56. .wp-block-navigation .wp-block-pages-list__item a,
  57. .wp-block-navigation .wp-block-post-title a {
  58. text-decoration: underline;
  59. }
  60. .wp-block-navigation .wp-block-navigation-link a:hover,
  61. .wp-block-navigation .wp-block-page-list a:hover,
  62. .wp-block-navigation .wp-block-pages-list__item a:hover,
  63. .wp-block-navigation .wp-block-post-title a:hover {
  64. color: var(--wp--preset--color--primary);
  65. text-decoration: none;
  66. }
  67. /*
  68. * Button hover styles.
  69. * Necessary until the following issue is resolved in Gutenberg:
  70. * https://github.com/WordPress/gutenberg/issues/27075
  71. */
  72. .wp-block-search__button:hover,
  73. .wp-block-file .wp-block-file__button:hover,
  74. .wp-block-button__link:hover {
  75. opacity: 0.90;
  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__button,
  84. .wp-block-file .wp-block-file__button {
  85. background-color: var(--wp--preset--color--primary);
  86. border-radius: 0;
  87. border: none;
  88. color: var(--wp--preset--color--background);
  89. font-size: var(--wp--preset--typography--font-size--normal);
  90. padding: calc(.667em + 2px) calc(1.333em + 2px);
  91. }
  92. /*
  93. * Comment Form Fields
  94. */
  95. .wp-block-post-comments input:not([type=submit]),
  96. .wp-block-post-comments textarea {
  97. background-color: var(--wp--preset--color--background);
  98. border-color: var(--wp--preset--color--foreground);
  99. }
  100. /*
  101. * Alignment styles, borrowed from Twenty Twenty-Two.
  102. * These rules are temporary, and should not be relied on or
  103. * modified too heavily by themes or plugins that build on
  104. * Twenty Twenty-Two. These are meant to be a precursor to
  105. * a global solution provided by the Block Editor.
  106. *
  107. * Relevant issues:
  108. * https://github.com/WordPress/gutenberg/issues/35607
  109. * https://github.com/WordPress/gutenberg/issues/35884
  110. */
  111. .wp-site-blocks,
  112. body > .is-root-container,
  113. .edit-post-visual-editor__post-title-wrapper,
  114. .wp-block-group.alignfull,
  115. .wp-block-group.has-background,
  116. .wp-block-columns.alignfull.has-background,
  117. .wp-block-cover.alignfull,
  118. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  119. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  120. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  121. padding-left: var(--wp--custom--spacing--outer);
  122. padding-right: var(--wp--custom--spacing--outer);
  123. }
  124. .wp-site-blocks .alignfull,
  125. .wp-site-blocks > .wp-block-group.has-background,
  126. .wp-site-blocks > .wp-block-cover,
  127. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  128. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  129. body > .is-root-container > .wp-block-cover,
  130. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  131. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  132. .is-root-container .wp-block[data-align="full"] {
  133. margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  134. margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
  135. max-width: unset;
  136. width: unset;
  137. }
  138. /* Blocks inside columns don't have negative margins. */
  139. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  140. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  141. /* We also want to avoid stacking negative margins. */
  142. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  143. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  144. margin-left: auto !important;
  145. margin-right: auto !important;
  146. width: inherit;
  147. }