Skip to content

Commit

Permalink
Supply default style values for code block
Browse files Browse the repository at this point in the history
Supplied typeography, padding and border style values for code block
style defaults
  • Loading branch information
pbking committed Dec 17, 2020
1 parent bd512eb commit 12c89c3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tt1-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,26 @@
"lineHeight": "var(--wp--custom--line-height--body)"
}
}
},
"core/code": {
"styles": {
"typography": {
"fontSize": "var(--wp--preset--font-size--extra-small)"
},
"spacing": {
"padding": {
"top": "var(--wp--custom--spacing--unit)",
"bottom": "var(--wp--custom--spacing--unit)",
"left": "var(--wp--custom--spacing--unit)",
"right": "var(--wp--custom--spacing--unit)"
}
},
"border": {
"radius": "0px",
"color": "var(--wp--preset--color--dark-gray)",
"style": "solid",
"width": "0.1rem"
}
}
}
}

0 comments on commit 12c89c3

Please sign in to comment.