style.css 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. Theme Name: Seedlet (Blocks)
  3. Theme URI: https://github.com/Automattic/themes/seedlet-blocks
  4. Author: Automattic
  5. Author URI: https://automattic.com/
  6. Description: A simple, text-driven, single-column block-based theme.
  7. Requires at least: 4.9.6
  8. Tested up to: 5.4.1
  9. Requires PHP: 7.3
  10. Version: 1.0
  11. License: GNU General Public License v2 or later
  12. License URI: LICENSE
  13. Template: seedlet
  14. Text Domain: seedlet-blocks
  15. Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
  16. Seedlet Blocks WordPress Theme, (C) 2020 Automattic, Inc.
  17. Seedlet Blocks is distributed under the terms of the GNU GPL.
  18. This program is free software: you can redistribute it and/or modify
  19. it under the terms of the GNU General Public License as published by
  20. the Free Software Foundation, either version 2 of the License, or
  21. (at your option) any later version.
  22. This program is distributed in the hope that it will be useful,
  23. but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. GNU General Public License for more details.
  26. */
  27. /* Override Seedlet variables with values from experimental-theme.json.
  28. Doubling up on the :root selector is weird, but it just ensures these have higher specificity than everything else) */
  29. :root:root {
  30. /* Font Size */
  31. --global--font-size-xs: var(--wp--preset--font-size--tiny);
  32. --global--font-size-sm: var(--wp--preset--font-size--small);
  33. --global--font-size-md: var(--wp--preset--font-size--medium);
  34. --global--font-size-lg: var(--wp--preset--font-size--large);
  35. --global--font-size-xl: var(--wp--preset--font-size--extra-large);
  36. --global--font-size-xxl: var(--wp--preset--font-size--huge);
  37. --global--font-size-xxxl: var(--wp--preset--font-size--gigantic);
  38. /* Colors */
  39. --global--color-background: var(--wp--preset--color--background);
  40. --global--color-foreground: var(--wp--preset--color--foreground);
  41. --global--color-primary: var(--wp--preset--color--primary);
  42. --global--color-secondary: var(--wp--preset--color--secondary);
  43. --global--color-tertiary: var(--wp--preset--color--tertiary);
  44. }
  45. /* Set up alignments */
  46. .wp-block-group .wp-block-group__inner-container > * {
  47. max-width: var(--responsive--aligndefault-width);
  48. margin-left: auto;
  49. margin-right: auto;
  50. }
  51. .wp-block-group .wp-block-group__inner-container > .alignwide {
  52. max-width: var(--responsive--alignwide-width);
  53. margin-left: auto;
  54. margin-right: auto;
  55. }
  56. .wp-block-group .wp-block-group__inner-container > .alignfull {
  57. max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
  58. width: calc(100% + (2 * var(--global--spacing-horizontal)));
  59. margin-left: calc(-1 * var(--global--spacing-horizontal));
  60. margin-right: auto;
  61. }
  62. /* Make sure full-width items in entry content show up as full-width. */
  63. .wp-block-group.site-content .wp-block-group__inner-container .entry-content {
  64. max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
  65. width: calc(100% + (2 * var(--global--spacing-horizontal)));
  66. margin-left: calc(-1 * var(--global--spacing-horizontal));
  67. margin-right: auto;
  68. }