You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.8 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/columns",
  5. "title": "Columns",
  6. "category": "design",
  7. "description": "Display content in multiple columns, with blocks added to each column.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "verticalAlignment": {
  11. "type": "string"
  12. },
  13. "isStackedOnMobile": {
  14. "type": "boolean",
  15. "default": true
  16. },
  17. "templateLock": {
  18. "type": [ "string", "boolean" ],
  19. "enum": [ "all", "insert", "contentOnly", false ]
  20. }
  21. },
  22. "supports": {
  23. "anchor": true,
  24. "align": [ "wide", "full" ],
  25. "html": false,
  26. "color": {
  27. "gradients": true,
  28. "link": true,
  29. "heading": true,
  30. "button": true,
  31. "__experimentalDefaultControls": {
  32. "background": true,
  33. "text": true
  34. }
  35. },
  36. "spacing": {
  37. "blockGap": {
  38. "__experimentalDefault": "2em",
  39. "sides": [ "horizontal", "vertical" ]
  40. },
  41. "margin": [ "top", "bottom" ],
  42. "padding": true,
  43. "__experimentalDefaultControls": {
  44. "padding": true,
  45. "blockGap": true
  46. }
  47. },
  48. "layout": {
  49. "allowSwitching": false,
  50. "allowInheriting": false,
  51. "allowEditing": false,
  52. "default": {
  53. "type": "flex",
  54. "flexWrap": "nowrap"
  55. }
  56. },
  57. "__experimentalBorder": {
  58. "color": true,
  59. "radius": true,
  60. "style": true,
  61. "width": true,
  62. "__experimentalDefaultControls": {
  63. "color": true,
  64. "radius": true,
  65. "style": true,
  66. "width": true
  67. }
  68. },
  69. "typography": {
  70. "fontSize": true,
  71. "lineHeight": true,
  72. "__experimentalFontFamily": true,
  73. "__experimentalFontWeight": true,
  74. "__experimentalFontStyle": true,
  75. "__experimentalTextTransform": true,
  76. "__experimentalTextDecoration": true,
  77. "__experimentalLetterSpacing": true,
  78. "__experimentalDefaultControls": {
  79. "fontSize": true
  80. }
  81. }
  82. },
  83. "editorStyle": "wp-block-columns-editor",
  84. "style": "wp-block-columns"
  85. }