wp/wp-includes/blocks/columns/block.json
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 {
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"apiVersion": 2,
     3 	"apiVersion": 2,
     3 	"name": "core/columns",
     4 	"name": "core/columns",
     4 	"title": "Columns",
     5 	"title": "Columns",
     5 	"category": "design",
     6 	"category": "design",
     6 	"description": "Add a block that displays content in multiple columns, then add whatever content blocks you’d like.",
     7 	"description": "Display content in multiple columns, with blocks added to each column.",
     7 	"textdomain": "default",
     8 	"textdomain": "default",
     8 	"attributes": {
     9 	"attributes": {
     9 		"verticalAlignment": {
    10 		"verticalAlignment": {
    10 			"type": "string"
    11 			"type": "string"
       
    12 		},
       
    13 		"isStackedOnMobile": {
       
    14 			"type": "boolean",
       
    15 			"default": true
    11 		}
    16 		}
    12 	},
    17 	},
    13 	"supports": {
    18 	"supports": {
    14 		"anchor": true,
    19 		"anchor": true,
    15 		"align": [ "wide", "full" ],
    20 		"align": [ "wide", "full" ],
    16 		"html": false,
    21 		"html": false,
    17 		"color": {
    22 		"color": {
    18 			"gradients": true,
    23 			"gradients": true,
    19 			"link": true
    24 			"link": true,
       
    25 			"__experimentalDefaultControls": {
       
    26 				"background": true,
       
    27 				"text": true
       
    28 			}
       
    29 		},
       
    30 		"spacing": {
       
    31 			"blockGap": {
       
    32 				"__experimentalDefault": "2em"
       
    33 			},
       
    34 			"margin": [ "top", "bottom" ],
       
    35 			"padding": true,
       
    36 			"__experimentalDefaultControls": {
       
    37 				"padding": true
       
    38 			}
       
    39 		},
       
    40 		"__experimentalLayout": {
       
    41 			"allowSwitching": false,
       
    42 			"allowInheriting": false,
       
    43 			"allowEditing": false,
       
    44 			"default": {
       
    45 				"type": "flex",
       
    46 				"flexWrap": "nowrap"
       
    47 			}
       
    48 		},
       
    49 		"__experimentalBorder": {
       
    50 			"color": true,
       
    51 			"radius": true,
       
    52 			"style": true,
       
    53 			"width": true,
       
    54 			"__experimentalDefaultControls": {
       
    55 				"color": true,
       
    56 				"radius": true,
       
    57 				"style": true,
       
    58 				"width": true
       
    59 			}
    20 		}
    60 		}
    21 	},
    61 	},
    22 	"editorStyle": "wp-block-columns-editor",
    62 	"editorStyle": "wp-block-columns-editor",
    23 	"style": "wp-block-columns"
    63 	"style": "wp-block-columns"
    24 }
    64 }