Skip to content

Commit

Permalink
Move css in theme.json to blocks/variations.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgardner committed May 1, 2023
1 parent e471871 commit d5c550b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit d5c550b

Please sign in to comment.