Skip to content

Commit

Permalink
Move gap for buttons and post template into theme json
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen committed Jun 27, 2024
1 parent 1ae8291 commit 25b10a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/themes/block-theme/src/blocks/core/buttons.css

This file was deleted.

3 changes: 0 additions & 3 deletions packages/themes/block-theme/src/blocks/core/post-template.css

This file was deleted.

6 changes: 6 additions & 0 deletions packages/themes/block-theme/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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); }"
}
}
},
Expand Down

0 comments on commit 25b10a9

Please sign in to comment.