Skip to content

Commit

Permalink
Now that background styles can be used in block styles, move them to …
Browse files Browse the repository at this point in the history
…styles complete ref
  • Loading branch information
ramonjd committed Jul 3, 2024
1 parent 9464545 commit bc88b69
Showing 1 changed file with 3 additions and 70 deletions.
73 changes: 3 additions & 70 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1170,20 +1170,14 @@
"description": "Sets the `background-image` CSS property.",
"oneOf": [
{
"description": "A valid CSS value for the background-image property.",
"description": "A valid CSS value for the background-image CSS property.",
"type": "string"
},
{
"type": "object",
"properties": {
"source": {
"description": "The origin of the image. 'file' denotes that the 'url' is a path to an image or other file.",
"type": "string",
"enum": [ "file" ],
"default": "file"
},
"url": {
"description": "A URL to an image file.",
"description": "A URL to an image file, or a path to a file relative to the theme root directory, and prefixed with `file:`, e.g., 'file:./path/to/file.png'.",
"type": "string"
}
},
Expand Down Expand Up @@ -2814,6 +2808,7 @@
},
{
"properties": {
"background": {},
"border": {},
"color": {},
"spacing": {},
Expand All @@ -2830,68 +2825,6 @@
"description": "Styles defined on a per-block basis using the block's selector.",
"$ref": "#/definitions/stylesBlocksPropertiesComplete"
},
"background": {
"description": "Background styles.",
"type": "object",
"properties": {
"backgroundImage": {
"description": "Sets the `background-image` CSS property.",
"oneOf": [
{
"description": "A valid CSS value for the background-image property, or a path to a file relative to the theme root directory, and prefixed with `file:`, e.g., 'file:./path/to/file.png'.",
"type": "string"
},
{
"type": "object",
"properties": {
"url": {
"description": "A URL to an image file.",
"type": "string"
}
},
"additionalProperties": false
},
{
"$ref": "#/definitions/refComplete"
}
]
},
"backgroundPosition": {
"description": "Sets the `background-position` CSS property.",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/refComplete"
}
]
},
"backgroundRepeat": {
"description": "Sets the `background-repeat` CSS property.",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/refComplete"
}
]
},
"backgroundSize": {
"description": "Sets the `background-size` CSS property.",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/refComplete"
}
]
}
},
"additionalProperties": false
},
"variations": {
"$ref": "#/definitions/stylesVariationsProperties"
}
Expand Down

0 comments on commit bc88b69

Please sign in to comment.