From bc88b69b475e8bcf66900684046abc649480a2c5 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 3 Jul 2024 16:23:22 +1000 Subject: [PATCH] Now that background styles can be used in block styles, move them to styles complete ref --- schemas/json/theme.json | 73 ++--------------------------------------- 1 file changed, 3 insertions(+), 70 deletions(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 79994646667ddd..f1666253e3de3e 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -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" } }, @@ -2814,6 +2808,7 @@ }, { "properties": { + "background": {}, "border": {}, "color": {}, "spacing": {}, @@ -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" }