From 25b10a95e1f8ce7927bcdb839285808c31c72078 Mon Sep 17 00:00:00 2001 From: Stian Date: Thu, 27 Jun 2024 13:54:21 +0200 Subject: [PATCH] Move gap for buttons and post template into theme json --- packages/themes/block-theme/src/blocks/core/buttons.css | 3 --- .../themes/block-theme/src/blocks/core/post-template.css | 3 --- packages/themes/block-theme/theme.json | 6 ++++++ 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 packages/themes/block-theme/src/blocks/core/buttons.css delete mode 100644 packages/themes/block-theme/src/blocks/core/post-template.css diff --git a/packages/themes/block-theme/src/blocks/core/buttons.css b/packages/themes/block-theme/src/blocks/core/buttons.css deleted file mode 100644 index 9161f21..0000000 --- a/packages/themes/block-theme/src/blocks/core/buttons.css +++ /dev/null @@ -1,3 +0,0 @@ -.wp-block-buttons.is-layout-flex { - gap: var(--wp--preset--spacing--50); -} diff --git a/packages/themes/block-theme/src/blocks/core/post-template.css b/packages/themes/block-theme/src/blocks/core/post-template.css deleted file mode 100644 index cc03d6a..0000000 --- a/packages/themes/block-theme/src/blocks/core/post-template.css +++ /dev/null @@ -1,3 +0,0 @@ -.wp-block-post-template.is-layout-grid { - gap: var(--wp--preset--spacing--50); -} diff --git a/packages/themes/block-theme/theme.json b/packages/themes/block-theme/theme.json index 73a6e7b..291cf85 100644 --- a/packages/themes/block-theme/theme.json +++ b/packages/themes/block-theme/theme.json @@ -178,11 +178,17 @@ "radius": "unset" } }, + "core/buttons": { + "css": "&.is-layout-flex { gap: var(--wp--preset--spacing--50); }" + }, "t2/ingress": { "typography": { "fontSize": "var(--wp--preset--font-size--medium)", "fontWeight": "var(--wp--custom--font-weight--bold)" } + }, + "core/post-template": { + "css": "&.is-layout-grid { gap: var(--wp--preset--spacing--50); }" } } },