forked from kondasoft/ks-bootshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseparator.liquid
68 lines (63 loc) · 1.66 KB
/
separator.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% assign mt = section.settings.margin_top | prepend: 'mt-' %}
{% assign mb = section.settings.margin_bottom | prepend: 'mb-' %}
<div
id="separator-{{ section.id }}"
class="separator">
<div class="{% if section.settings.container %} container {% else %} container-fluid {% endif %}">
<hr
class="{{ mt }} {{ mb }}"
style="{{ section.settings.bg_color | prepend: 'background-color: ' | append: ';' }};">
</div>
</div>
{% schema %}
{
"name": "Separator",
"settings": [
{
"type": "header",
"content": "General settings"
},
{
"type": "checkbox",
"id": "container",
"label": "Wrap in container",
"default": true
},
{
"type": "color",
"id": "bg_color",
"label": "Border color",
"default": "#dee2e6"
},
{
"type": "header",
"content": "Spacing",
"info": "Based on Bootstrap spacing utility classes [Learn more](https://getbootstrap.com/docs/5.0/utilities/spacing/)"
},
{
"type": "range",
"id": "margin_top",
"label": "Margin top",
"min": 0,
"max": 12,
"step": 1,
"default": 7
},
{
"type": "range",
"id": "margin_bottom",
"label": "Margin bottom",
"min": 0,
"max": 12,
"step": 1,
"default": 7
}
],
"presets": [
{
"name": "Separator",
"category": "Layout"
}
]
}
{% endschema %}