style.css 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: 6.0
  8. Tested up to: 6.0
  9. Requires PHP: 5.7
  10. Version: 0.0.20
  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) 2022 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. * https://github.com/WordPress/gutenberg/issues/35934
  29. */
  30. body {
  31. -moz-osx-font-smoothing: grayscale;
  32. -webkit-font-smoothing: antialiased;
  33. }
  34. /*
  35. * Control the hover stylings of outline block style.
  36. * Unnecessary once block styles are configurable via theme.json
  37. * https://github.com/WordPress/gutenberg/issues/42794
  38. */
  39. .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
  40. background-color: var(--wp--preset--color--secondary);
  41. color: var(--wp--preset--color--background);
  42. border-color: var(--wp--preset--color--secondary);
  43. }
  44. /**
  45. * Currently table styles are only available with 'wp-block-styles'
  46. * theme support (block css) thus the following needs to be included
  47. * since 'wp-block-styles' aren't used for this theme.
  48. * https://github.com/WordPress/gutenberg/issues/45065
  49. */
  50. .wp-block-table thead {
  51. border-bottom: 3px solid;
  52. }
  53. .wp-block-table tfoot {
  54. border-top: 3px solid;
  55. }
  56. .wp-block-table td,
  57. .wp-block-table th {
  58. padding: var(--wp--preset--spacing--30);
  59. border: 1px solid;
  60. word-break: normal;
  61. }
  62. .wp-block-table figcaption {
  63. font-size: var(--wp--preset--font-size--small);
  64. text-align: center;
  65. }
  66. /*
  67. * Link styles
  68. * https://github.com/WordPress/gutenberg/issues/42319
  69. */
  70. a {
  71. text-decoration-thickness: .0625em !important;
  72. text-underline-offset: .15em;
  73. }