block.json
48 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "surecart/columns", |
| 5 | "title": "Columns", |
| 6 | "category": "surecart", |
| 7 | "description": "Display content in multiple columns, with blocks added to each column.", |
| 8 | "textdomain": "surecart", |
| 9 | "ancestor": ["surecart/form"], |
| 10 | "attributes": { |
| 11 | "verticalAlignment": { |
| 12 | "type": "string" |
| 13 | }, |
| 14 | "isStackedOnMobile": { |
| 15 | "type": "boolean", |
| 16 | "default": true |
| 17 | } |
| 18 | }, |
| 19 | "supports": { |
| 20 | "anchor": true, |
| 21 | "align": ["wide", "full"], |
| 22 | "html": false, |
| 23 | "color": { |
| 24 | "gradients": true, |
| 25 | "link": true |
| 26 | }, |
| 27 | "spacing": { |
| 28 | "blockGap": "25px", |
| 29 | "margin": ["top", "bottom"], |
| 30 | "padding": true, |
| 31 | "__experimentalDefaultControls": { |
| 32 | "padding": true |
| 33 | } |
| 34 | }, |
| 35 | "__experimentalLayout": { |
| 36 | "allowSwitching": false, |
| 37 | "allowInheriting": false, |
| 38 | "allowEditing": false, |
| 39 | "default": { |
| 40 | "type": "flex", |
| 41 | "flexWrap": "nowrap" |
| 42 | } |
| 43 | } |
| 44 | }, |
| 45 | "editorStyle": "file:./editor-style.css", |
| 46 | "style": "file:./style.css" |
| 47 | } |
| 48 |