{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "name": "magazine-blocks/heading",
  "title": "Heading",
  "description": "Create stylish title for each section with various markups from H1 to H6.",
  "keywords": [
    "heading",
    "headline"
  ],
  "category": "magazine-blocks",
  "textdomain": "magazine-blocks",
  "supports": {
    "className": false,
    "customClassName": false
  },
  "example": {
    "attributes": {}
  },
  "attributes": {
    "clientId": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "enableSubHeading": {
      "type": "boolean",
      "default": false
    },
    "label": {
      "type": "string",
      "default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
    },
    "subHeadingColor": {
      "type": "string",
      "default": "#000000",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading {color: {{VALUE}}; }"
        }
      ]
    },
    "subHeadingHoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "subHeadingBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading"
        }
      ]
    },
    "subHeadingHoverBackground": {
      "type": "object",
      "default": {
        "background": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading:hover"
        }
      ]
    },
    "subHeadingTypography": {
      "type": "object",
      "default": {
        "typography": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading p"
        }
      ]
    },
    "subHeadingPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading { padding: {{VALUE}}; }"
        }
      ]
    },
    "subHeadingBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading"
        }
      ]
    },
    "subHeadingHoverBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading:hover"
        }
      ]
    },
    "subHeadingBoxShadow": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading"
        }
      ]
    },
    "subHeadingBoxShadowHover": {
      "type": "object",
      "default": {
        "boxShadow": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-sub-heading:hover"
        }
      ]
    },
    "alignment": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}} {text-align: {{VALUE}}; }"
        }
      ],
      "default": {
        "desktop": "left"
      }
    },
    "markup": {
      "type": "string",
      "default": "h2"
    },
    "headingLayout": {
      "type": "string",
      "default": "heading-layout-1"
    },
    "headingLayout1AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-1-style-2"
    },
    "headingLayout2AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-2-style-1"
    },
    "headingLayout3AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-3-style-1"
    },
    "headingLayout4AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-4-style-1"
    },
    "headingLayout5AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-5-style-1"
    },
    "headingLayout6AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-6-style-1"
    },
    "headingLayout7AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-7-style-1"
    },
    "headingLayout8AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-8-style-1"
    },
    "headingLayout9AdvancedStyle": {
      "type": "string",
      "default": "heading-layout-9-style-1"
    },
    "dotColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-4-style-1 .mzb-post-heading .mzb-heading-text::before {background-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-5-style-1 .mzb-post-heading .mzb-heading-text::before {background-color: {{VALUE}}; }"
        }
      ]
    },
    "lineAccent": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-1-style-1 .mzb-heading-text::before {border-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-3-style-1 .mzb-heading-inner::before {border-bottom-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-8-style-1 .mzb-heading-inner::before {border-bottom-color: {{VALUE}}; }"
        }
      ]
    },
    "lineColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-2-style-1 .mzb-heading-inner, {{WRAPPER}}.mzb-heading.mzb-heading-layout-3-style-1 .mzb-heading-inner {border-bottom-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-7-style-1 .mzb-heading-inner::after {border-bottom-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-6-style-1 .mzb-heading-inner::after, {{WRAPPER}}.mzb-heading.mzb-heading-layout-6-style-1 .mzb-heading-inner::before {border-bottom-color: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading.mzb-heading-layout-9-style-1 .mzb-post-heading { border-top-color:{{VALUE}}; }"
        }
      ]
    },
    "margin": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-2 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-3-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-4-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-5-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-7-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-8-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-9-style-1 .mzb-heading-inner { margin: {{VALUE}}; }"
        }
      ]
    },
    "color": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-heading-text, {{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-heading-text, {{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-heading-text {color: {{VALUE}}; }"
        }
      ]
    },
    "hoverColor": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-heading-text:hover {color: {{VALUE}}; }"
        }
      ]
    },
    "background": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-heading-text::before, {{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-heading-text {background-color: {{VALUE}}; }"
        }
      ]
    },
    "hoverBackground": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-heading-text:hover{background-color: {{VALUE}}; }"
        }
      ]
    },
    "headingBackground": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading.mzb-heading-layout-2-style-1 .mzb-heading-text {background-color: {{VALUE}}; }"
        }
      ]
    },
    "typography": {
      "type": "object",
      "default": {
        "typography": 1
      },
      "style": [
        {
          "selector": "{{WRAPPER}} .mzb-post-heading .mzb-heading-text, {{WRAPPER}} .mzb-heading-inner .mzb-heading-text"
        }
      ]
    },
    "size": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1 {border-width: {{VALUE}}; }"
        }
      ]
    },
    "headingPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-1 .mzb-heading-inner { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-2 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-3-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-4-style-1 .mzb-heading-inner { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-5-style-1 .mzb-heading-inner { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-7-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-8-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-9-style-1 .mzb-heading-inner .mzb-heading-text { padding: {{VALUE}}; }"
        }
      ]
    },
    "headingBorder": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-2 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-3-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-4-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-5-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-7-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-8-style-1 .mzb-post-heading"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-9-style-1 .mzb-post-heading"
        }
      ]
    },
    "headingBorderBefore": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-1-style-1 .mzb-post-heading .mzb-heading-text::before"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-3-style-1 .mzb-heading-inner::before"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-heading-inner::before"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-8-style-1 .mzb-heading-inner::before"
        }
      ]
    },
    "headingBorderAfter": {
      "type": "object",
      "default": {
        "border": 1,
        "radius": {
          "desktop": {
            "lock": true
          }
        },
        "size": {
          "desktop": {
            "lock": true
          }
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-6-style-1 .mzb-heading-inner::after"
        },
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-7-style-1 .mzb-heading-inner::after"
        }
      ]
    },
    "headingBorderBottomInset": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-3-style-1 .mzb-heading-inner::before {bottom: {{VALUE}}; }"
        }
      ]
    },
    "sizeHover": {
      "type": "object",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1:hover {border-width: {{VALUE}}; }"
        }
      ]
    },
    "borderBottomColorHover": {
      "type": "string",
      "style": [
        {
          "selector": "{{WRAPPER}}.mzb-heading-layout-2-style-1:hover {border-bottom-color: {{VALUE}}; }"
        }
      ]
    },
    "blockHTML": {
      "type": "string",
      "default": "div"
    },
    "blockMargin": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} { margin: {{VALUE}}; }"
        }
      ]
    },
    "blockPadding": {
      "type": "object",
      "default": {
        "dimension": 1,
        "desktop": {
          "lock": true
        }
      },
      "style": [
        {
          "selector": "{{WRAPPER}} { padding: {{VALUE}}; }"
        }
      ]
    },
    "blockZIndex": {
      "type": "number",
      "style": [
        {
          "selector": "{{WRAPPER}} { z-index: {{VALUE}}; }"
        }
      ]
    },
    "cssID": {
      "type": "string"
    },
    "hideOnDesktop": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (min-width:62em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "hideOnTablet": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (min-width:48em) and (max-width:62em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "hideOnMobile": {
      "type": "boolean",
      "style": [
        {
          "selector": "@media (max-width:48em) { {{WRAPPER}} { display: none; } }"
        }
      ]
    },
    "blockCSS": {
      "type": "string"
    },
    "className": {
      "type": "string"
    }
  },
  "style": "magazine-blocks-blocks",
  "editorScript": "magazine-blocks-blocks",
  "editorStyle": "magazine-blocks-blocks-editor"
}
