-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
I used the "create blank theme" option, and after making my changes, I exported it using the tool the plugin uses in the Site Editor.
In theme.json, I found a settings.layout.definitions which I don't believe is valid and should not be in theme.json?
If it is correct, I would like to learn more, can you provide a link to the documentation?
"layout": {
"contentSize": "620px",
"definitions": {
"constrained": {
"baseStyles": [
{
"rules": {
"float": "left",
"margin-inline-end": "2em",
"margin-inline-start": "0"
},
"selector": " > .alignleft"
},
{
"rules": {
"float": "right",
"margin-inline-end": "0",
"margin-inline-start": "2em"
},
"selector": " > .alignright"
},
{
"rules": {
"margin-left": "auto !important",
"margin-right": "auto !important"
},
"selector": " > .aligncenter"
},
{
"rules": {
"margin-left": "auto !important",
"margin-right": "auto !important",
"max-width": "var(--wp--style--global--content-size)"
},
"selector": " > :where(:not(.alignleft):not(.alignright):not(.alignfull))"
},
{
"rules": {
"max-width": "var(--wp--style--global--wide-size)"
},
"selector": " > .alignwide"
}
],
"className": "is-layout-constrained",
"name": "constrained",
"slug": "constrained",
"spacingStyles": [
{
"rules": {
"margin-block-end": "0",
"margin-block-start": "0"
},
"selector": " > *"
},
{
"rules": {
"margin-block-end": "0"
},
"selector": " > * + *"
}
]
},
"default": {
"baseStyles": [
{
"rules": {
"float": "left",
"margin-inline-end": "2em",
"margin-inline-start": "0"
},
"selector": " > .alignleft"
},
{
"rules": {
"float": "right",
"margin-inline-end": "0",
"margin-inline-start": "2em"
},
"selector": " > .alignright"
},
{
"rules": {
"margin-left": "auto !important",
"margin-right": "auto !important"
},
"selector": " > .aligncenter"
}
],
"className": "is-layout-flow",
"name": "default",
"slug": "flow",
"spacingStyles": [
{
"rules": {
"margin-block-end": "0",
"margin-block-start": "0"
},
"selector": " > *"
},
{
"rules": {
"margin-block-end": "0"
},
"selector": " > * + *"
}
]
},
"flex": {
"baseStyles": [
{
"rules": {
"align-items": "center",
"flex-wrap": "wrap"
}
},
{
"rules": {
"margin": "0"
},
"selector": " > *"
}
],
"className": "is-layout-flex",
"displayMode": "flex",
"name": "flex",
"slug": "flex"
},
"grid": {
"baseStyles": [
{
"rules": {
"margin": "0"
},
"selector": " > *"
}
],
"className": "is-layout-grid",
"displayMode": "grid",
"name": "grid",
"slug": "grid"
}
},
"wideSize": "1100px"
},
Metadata
Metadata
Assignees
Labels
No labels