From d5c550b7e8347bc6dd193cf2997c78f02bbf88ee Mon Sep 17 00:00:00 2001 From: Brian Gardner Date: Mon, 1 May 2023 10:24:07 -0500 Subject: [PATCH] Move css in theme.json to blocks/variations. --- theme.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/theme.json b/theme.json index 8c798a1e..171d69af 100644 --- a/theme.json +++ b/theme.json @@ -272,8 +272,26 @@ }, "styles": { "blocks": { + "core/button": { + "variations": { + "outline" : { + "border": { + "color": "currentColor", + "style": "solid", + "width": "1px" + }, + "spacing": { + "padding": { + "top": "14px", + "right": "29px", + "bottom": "14px", + "left": "29px" + } + } + } + } + }, "core/buttons": { - "css": "& .is-style-outline .wp-element-button {background-color: transparent;border: 1px solid currentColor;color: var(--wp--preset--color--contrast);padding: 14px 29px;}", "spacing": { "blockGap": "10px" }