mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Update theme.json classes for WordPress 5.9.
This commit ports to core the changes to the classes that deal with theme.json code. See #54336. Props oandregal, spacedmonkey, noisysocks, hellofromtonya, youknowriad. git-svn-id: https://develop.svn.wordpress.org/trunk@52049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
{
|
||||
"version": 1,
|
||||
"version": 2,
|
||||
"settings": {
|
||||
"border": {
|
||||
"customRadius": false
|
||||
"color": false,
|
||||
"radius": false,
|
||||
"style": false,
|
||||
"width": false
|
||||
},
|
||||
"color": {
|
||||
"custom": true,
|
||||
"customDuotone": true,
|
||||
"customGradient": true,
|
||||
"link": false,
|
||||
"background": true,
|
||||
"text": true,
|
||||
"duotone": [
|
||||
{
|
||||
"name": "Dark grayscale" ,
|
||||
@@ -177,14 +182,20 @@
|
||||
]
|
||||
},
|
||||
"spacing": {
|
||||
"customMargin": false,
|
||||
"customPadding": false,
|
||||
"blockGap": null,
|
||||
"margin": false,
|
||||
"padding": false,
|
||||
"units": [ "px", "em", "rem", "vh", "vw", "%" ]
|
||||
},
|
||||
"typography": {
|
||||
"customFontSize": true,
|
||||
"customLineHeight": false,
|
||||
"dropCap": true,
|
||||
"fontStyle": true,
|
||||
"fontWeight": true,
|
||||
"letterSpacing": true,
|
||||
"lineHeight": false,
|
||||
"textDecoration": true,
|
||||
"textTransform": true,
|
||||
"fontSizes": [
|
||||
{
|
||||
"name": "Small",
|
||||
@@ -216,9 +227,20 @@
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"border": {
|
||||
"customRadius": true
|
||||
"radius": true
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"border": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"spacing": { "blockGap": "24px" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user