Hi @KeithKings ,
Please change all code:
{%- style -%}
.sectionDivider-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top_mobile | append: 'em' }};
padding-bottom: {{ section.settings.padding_bottom_mobile | append: 'em' }};
}
@media screen and (min-width: 768px) {
.sectionDivider-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | append: 'em' }};
padding-bottom: {{ section.settings.padding_bottom | append: 'em' }};
}
}
{%- endstyle -%}
Debug Info:
Full Width: {{ section.settings.full_width }}
Color: {{ section.settings.color }}
Height: {{ section.settings.height | append: 'px' }}
Padding Top Mobile: {{ section.settings.padding_top_mobile | append: 'em' }}
Padding Bottom Mobile: {{ section.settings.padding_bottom_mobile | append: 'em' }}
Padding Top: {{ section.settings.padding_top | append: 'em' }}
Padding Bottom: {{ section.settings.padding_bottom | append: 'em' }}
{% schema %}
{
"name": "Section divider",
"settings": [
{
"type": "range",
"id": "padding_top",
"min": 0,
"max": 10,
"step": 0.1,
"unit": "em",
"label": "Padding top",
"default": 1
},
{
"type": "range",
"id": "padding_top_mobile",
"min": 0,
"max": 10,
"step": 0.1,
"unit": "em",
"label": "Padding top mobile",
"default": 1
},
{
"type": "range",
"id": "padding_bottom",
"min": 0,
"max": 10,
"step": 0.1,
"unit": "em",
"label": "Padding bottom",
"default": 0
},
{
"type": "range",
"id": "padding_bottom_mobile",
"min": 0,
"max": 10,
"step": 0.1,
"unit": "em",
"label": "Padding bottom mobile",
"default": 0
},
{
"type": "range",
"id": "height",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"label": "Height of the divider",
"default": 10
},
{
"type": "color",
"id": "color",
"default": "#000",
"label": "Divider color"
},
{
"type": "checkbox",
"id": "full_width",
"default": false,
"label": "Section full-width"
}
],
"presets": [
{
"name": "Section divider"
}
]
}
{% endschema %}