style.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. Theme Name: Block Canvas
  3. Theme URI: https://github.com/Automattic/themes/tree/trunk/block-canvas
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: Block canvas is a simple theme that supports full-site editing. It comes with a set of minimal templates and design settings that can be manipulated through Global Styles. Use it to build something beautiful.
  7. Requires at least: 5.7
  8. Tested up to: 5.9
  9. Requires PHP: 5.7
  10. Version: 0.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: block-canvas
  14. Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
  15. Block canvas WordPress Theme, (C) 2021 Automattic, Inc.
  16. Block canvas 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. */
  29. body {
  30. -moz-osx-font-smoothing: grayscale;
  31. -webkit-font-smoothing: antialiased;
  32. }
  33. /*
  34. * Button hover styles.
  35. * Necessary until the following issue is resolved in Gutenberg:
  36. * https://github.com/WordPress/gutenberg/issues/27075
  37. */
  38. .wp-block-search__button:hover,
  39. .wp-block-file .wp-block-file__button:hover,
  40. .wp-block-button__link:hover {
  41. background-color: var(--wp--preset--color--secondary);
  42. }
  43. /*
  44. * Search and File Block button styles.
  45. * Necessary until the following issues are resolved in Gutenberg:
  46. * https://github.com/WordPress/gutenberg/issues/36444
  47. * https://github.com/WordPress/gutenberg/issues/27760
  48. */
  49. .wp-block-search__button,
  50. .wp-block-file .wp-block-file__button {
  51. background-color: var(--wp--preset--color--foreground);
  52. border-radius: 0;
  53. border: none;
  54. color: var(--wp--preset--color--background);
  55. font-size: var(--wp--preset--typography--font-size--normal);
  56. padding: calc(0.667em + 2px) calc(1.333em + 2px);
  57. }
  58. /*
  59. * Alignment styles, borrowed from Twenty Twenty-Two.
  60. * These rules are temporary, and should not be relied on or
  61. * modified too heavily by themes or plugins that build on
  62. * Twenty Twenty-Two. These are meant to be a precursor to
  63. * a global solution provided by the Block Editor.
  64. *
  65. * Relevant issues:
  66. * https://github.com/WordPress/gutenberg/issues/35607
  67. * https://github.com/WordPress/gutenberg/issues/35884
  68. */
  69. .wp-site-blocks,
  70. body > .is-root-container,
  71. .edit-post-visual-editor__post-title-wrapper,
  72. .wp-block-group.alignfull,
  73. .wp-block-group.has-background,
  74. .wp-block-columns.alignfull.has-background,
  75. .wp-block-cover.alignfull,
  76. .is-root-container .wp-block[data-align='full'] > .wp-block-group,
  77. .is-root-container .wp-block[data-align='full'] > .wp-block-columns.has-background,
  78. .is-root-container .wp-block[data-align='full'] > .wp-block-cover {
  79. padding-left: var(--wp--custom--gap--horizontal);
  80. padding-right: var(--wp--custom--gap--horizontal);
  81. }
  82. .wp-site-blocks .alignfull,
  83. .wp-site-blocks > .wp-block-group.has-background,
  84. .wp-site-blocks > .wp-block-cover,
  85. .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
  86. .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
  87. body > .is-root-container > .wp-block-cover,
  88. body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
  89. body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  90. .is-root-container .wp-block[data-align='full'] {
  91. margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  92. margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  93. max-width: unset;
  94. width: unset;
  95. }
  96. /* Blocks inside columns don't have negative margins. */
  97. .wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
  98. .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
  99. /* We also want to avoid stacking negative margins. */
  100. .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
  101. .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
  102. margin-left: auto !important;
  103. margin-right: auto !important;
  104. width: inherit;
  105. }
  106. /*
  107. * Responsive menu container padding.
  108. * This ensures the responsive container inherits the same
  109. * spacing defined above. This behavior may be built into
  110. * the Block Editor in the future.
  111. */
  112. .wp-block-navigation__responsive-container.is-menu-open {
  113. padding-top: var(--wp--custom--gap--horizontal);
  114. padding-bottom: var(--wp--custom--gap--vertical);
  115. padding-right: var(--wp--custom--gap--horizontal);
  116. padding-left: var(--wp--custom--gap--horizontal);
  117. }