rebly-sections 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/assets/data/block-patterns.csv +160 -0
  2. package/assets/data/component-library/GDPR-modal.liquid +183 -0
  3. package/assets/data/component-library/Ishi_parallaxblockstyle1.liquid +331 -0
  4. package/assets/data/component-library/_index.csv +157 -19
  5. package/assets/data/component-library/about.liquid +1557 -0
  6. package/assets/data/component-library/adv-header.liquid +344 -0
  7. package/assets/data/component-library/adv-navigation.liquid +542 -0
  8. package/assets/data/component-library/announcement-bar.liquid +42 -60
  9. package/assets/data/component-library/article.liquid +242 -0
  10. package/assets/data/component-library/axeo-perfume-cosmetics-store-shopify-theme-about.liquid +1557 -0
  11. package/assets/data/component-library/basel-gl_newsletter_pets.liquid +612 -0
  12. package/assets/data/component-library/bixbang-fullpackage-collection-template.liquid +990 -0
  13. package/assets/data/component-library/blog-sidebar-article.liquid +51 -0
  14. package/assets/data/component-library/blog-sidebar-deals.liquid +189 -0
  15. package/assets/data/component-library/blog-sidebar-instagram.liquid +126 -0
  16. package/assets/data/component-library/blog-sidebar-tags.liquid +30 -0
  17. package/assets/data/component-library/blog.liquid +371 -0
  18. package/assets/data/component-library/brands-page.liquid +114 -0
  19. package/assets/data/component-library/cake-shop-shopify-theme-for-bakery-and-cafe-home-support-blo.liquid +780 -0
  20. package/assets/data/component-library/collection-template-promotion.liquid +1139 -0
  21. package/assets/data/component-library/collection-template.liquid +146 -0
  22. package/assets/data/component-library/contact-us.liquid +663 -0
  23. package/assets/data/component-library/contact.liquid +256 -0
  24. package/assets/data/component-library/copyright_payment.liquid +95 -0
  25. package/assets/data/component-library/custom-content.liquid +832 -0
  26. package/assets/data/component-library/faq-template-3.liquid +1014 -0
  27. package/assets/data/component-library/footer-model-1.liquid +503 -0
  28. package/assets/data/component-library/footer-model-10.liquid +210 -0
  29. package/assets/data/component-library/footer-model-2.liquid +460 -0
  30. package/assets/data/component-library/footer-model-3.liquid +548 -0
  31. package/assets/data/component-library/footer-model-4.liquid +455 -0
  32. package/assets/data/component-library/footer-model-5.liquid +407 -0
  33. package/assets/data/component-library/footer-model-6.liquid +543 -0
  34. package/assets/data/component-library/footer-model-7.liquid +345 -0
  35. package/assets/data/component-library/footer-model-8.liquid +279 -0
  36. package/assets/data/component-library/footer-model-9.liquid +376 -0
  37. package/assets/data/component-library/gallery.liquid +236 -0
  38. package/assets/data/component-library/gecko-shopify-v5-7-6-nulled-manual_blog.liquid +720 -0
  39. package/assets/data/component-library/gl_newsletter_pets.liquid +612 -0
  40. package/assets/data/component-library/gp-logo-list.liquid +362 -0
  41. package/assets/data/component-library/grid-banner-type-3-b.liquid +655 -0
  42. package/assets/data/component-library/header-model-1.liquid +427 -0
  43. package/assets/data/component-library/header-model-10.liquid +599 -0
  44. package/assets/data/component-library/header-model-2.liquid +633 -0
  45. package/assets/data/component-library/header-model-3.liquid +415 -0
  46. package/assets/data/component-library/header-model-4.liquid +754 -0
  47. package/assets/data/component-library/header-model-5.liquid +562 -0
  48. package/assets/data/component-library/header-model-6.liquid +713 -0
  49. package/assets/data/component-library/header-model-7.liquid +743 -0
  50. package/assets/data/component-library/header-model-8.liquid +500 -0
  51. package/assets/data/component-library/header-model-9.liquid +506 -0
  52. package/assets/data/component-library/home-blog-posts-1.liquid +399 -0
  53. package/assets/data/component-library/home-blog-posts-2.liquid +393 -0
  54. package/assets/data/component-library/home-blog-posts-3.liquid +545 -0
  55. package/assets/data/component-library/home-brand-slider.liquid +224 -0
  56. package/assets/data/component-library/home-circled-block.liquid +332 -0
  57. package/assets/data/component-library/home-contact-block-1.liquid +395 -0
  58. package/assets/data/component-library/home-contact-block-2.liquid +372 -0
  59. package/assets/data/component-library/home-content-block-1.liquid +320 -0
  60. package/assets/data/component-library/home-donut-chart.liquid +335 -0
  61. package/assets/data/component-library/home-fade-in-banner.liquid +277 -0
  62. package/assets/data/component-library/home-faq-model.liquid +323 -0
  63. package/assets/data/component-library/home-featured-blog.liquid +1462 -0
  64. package/assets/data/component-library/home-featured-collections.liquid +484 -0
  65. package/assets/data/component-library/home-gallery-block1.liquid +276 -0
  66. package/assets/data/component-library/home-gallery-block2.liquid +396 -0
  67. package/assets/data/component-library/home-grid-banner-type-1.liquid +371 -0
  68. package/assets/data/component-library/home-grid-banner-type-2.liquid +362 -0
  69. package/assets/data/component-library/home-grid-banner-type-3.liquid +374 -0
  70. package/assets/data/component-library/home-grid-banner-type-4.liquid +900 -0
  71. package/assets/data/component-library/home-grid-banner-type-5.liquid +368 -0
  72. package/assets/data/component-library/home-grid-banner-type-6.liquid +382 -0
  73. package/assets/data/component-library/home-grid-banner-type-7.liquid +371 -0
  74. package/assets/data/component-library/home-hotspot-with-product-carousel.liquid +1425 -0
  75. package/assets/data/component-library/home-image-gallery.liquid +1087 -0
  76. package/assets/data/component-library/home-instagram.liquid +356 -0
  77. package/assets/data/component-library/home-newsletter.liquid +246 -0
  78. package/assets/data/component-library/home-number-counter.liquid +790 -0
  79. package/assets/data/component-library/home-price-table.liquid +416 -0
  80. package/assets/data/component-library/home-pricing-table.liquid +1076 -0
  81. package/assets/data/component-library/home-product-grid.liquid +413 -0
  82. package/assets/data/component-library/home-product-tab-1.liquid +528 -0
  83. package/assets/data/component-library/home-product-tab-2.liquid +342 -0
  84. package/assets/data/component-library/home-product-tab-3.liquid +357 -0
  85. package/assets/data/component-library/home-product-vertical-carousel.liquid +477 -0
  86. package/assets/data/component-library/home-quotes-1.liquid +274 -0
  87. package/assets/data/component-library/home-quotes-2.liquid +239 -0
  88. package/assets/data/component-library/home-quotes-3.liquid +244 -0
  89. package/assets/data/component-library/home-quotes-4.liquid +258 -0
  90. package/assets/data/component-library/home-slider-width-promo-images.liquid +1377 -0
  91. package/assets/data/component-library/home-slideshow-type-1.liquid +656 -0
  92. package/assets/data/component-library/home-slideshow-type-2.liquid +570 -0
  93. package/assets/data/component-library/home-specification-block-1.liquid +468 -0
  94. package/assets/data/component-library/home-specification-block-2.liquid +291 -0
  95. package/assets/data/component-library/home-specification-block-3.liquid +429 -0
  96. package/assets/data/component-library/home-support-block.liquid +392 -0
  97. package/assets/data/component-library/home-testimonial.liquid +1348 -0
  98. package/assets/data/component-library/home-video-banner.liquid +317 -0
  99. package/assets/data/component-library/home-wide-banner.liquid +327 -0
  100. package/assets/data/component-library/icon-with-content.liquid +478 -0
  101. package/assets/data/component-library/instafeed.liquid +1 -0
  102. package/assets/data/component-library/kea-ecommerce-interior-furniture-shopify-theme-about.liquid +1300 -0
  103. package/assets/data/component-library/kidslife-responsive-shopify-theme-home-number-counter.liquid +729 -0
  104. package/assets/data/component-library/logo-bar.liquid +314 -0
  105. package/assets/data/component-library/lookbook.liquid +367 -0
  106. package/assets/data/component-library/manual_blog.liquid +724 -0
  107. package/assets/data/component-library/navigation-etc.liquid +642 -0
  108. package/assets/data/component-library/newsletter.liquid +246 -0
  109. package/assets/data/component-library/order-form.liquid +96 -0
  110. package/assets/data/component-library/page-catev1-template.liquid +344 -0
  111. package/assets/data/component-library/popup_video.liquid +396 -0
  112. package/assets/data/component-library/product-sidebar-bestsellers.liquid +99 -0
  113. package/assets/data/component-library/product-sidebar-deals.liquid +158 -0
  114. package/assets/data/component-library/product-template-2.liquid +629 -0
  115. package/assets/data/component-library/product-template-3.liquid +670 -0
  116. package/assets/data/component-library/product-template-4.liquid +627 -0
  117. package/assets/data/component-library/product-template-5.liquid +652 -0
  118. package/assets/data/component-library/product-template.liquid +698 -0
  119. package/assets/data/component-library/rich-text.liquid +541 -0
  120. package/assets/data/component-library/section-countdown-v2.liquid +215 -0
  121. package/assets/data/component-library/services.liquid +596 -0
  122. package/assets/data/component-library/shipping_info.liquid +327 -0
  123. package/assets/data/component-library/sidebar-bestsellers.liquid +109 -0
  124. package/assets/data/component-library/sidebar-category.liquid +105 -0
  125. package/assets/data/component-library/sidebar-colors.liquid +104 -0
  126. package/assets/data/component-library/single_product_feature.liquid +1892 -0
  127. package/assets/data/component-library/social-links-menu.liquid +244 -0
  128. package/assets/data/component-library/someone-purchased.liquid +190 -0
  129. package/assets/data/component-library/special-offer-area.liquid +530 -0
  130. package/assets/data/component-library/theno-minimal-clean-watch-store-shopify-theme-page-catev1-te.liquid +344 -0
  131. package/assets/data/component-library/top-bar-type-1.liquid +200 -0
  132. package/assets/data/component-library/top-bar-type-10.liquid +395 -0
  133. package/assets/data/component-library/top-bar-type-11.liquid +395 -0
  134. package/assets/data/component-library/top-bar-type-2.liquid +106 -0
  135. package/assets/data/component-library/top-bar-type-3.liquid +205 -0
  136. package/assets/data/component-library/top-countdown-bar.liquid +116 -0
  137. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-image-gallery.liquid +783 -0
  138. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-pricing-table.liquid +1043 -0
  139. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-testimonial.liquid +1338 -0
  140. package/assets/data/component-library/video.liquid +511 -0
  141. package/assets/data/component-library/waffy-spices-dry-fruits-store-shopify-theme-v-1-1-contact-us.liquid +523 -0
  142. package/assets/data/design-tokens.csv +93 -57
  143. package/assets/data/schema-library.csv +48 -46
  144. package/assets/data/settings-profiles.csv +235 -0
  145. package/assets/data/shopify-best-practices.csv +58 -36
  146. package/assets/scripts/backfill-component-index.py +102 -0
  147. package/assets/scripts/core.py +30 -8
  148. package/assets/scripts/fix-schema-library.py +42 -0
  149. package/assets/scripts/kb-analyzer-helpers.py +136 -0
  150. package/assets/scripts/kb-analyzer.py +186 -0
  151. package/assets/scripts/kb-builder.py +32 -63
  152. package/assets/scripts/kb-constants.py +62 -0
  153. package/assets/scripts/kb-extractor-helpers.py +178 -0
  154. package/assets/scripts/kb-extractor.py +106 -170
  155. package/assets/scripts/kb-synthesizer.py +251 -0
  156. package/assets/scripts/quality-gate-checks.py +55 -0
  157. package/assets/scripts/quality-gate.py +56 -2
  158. package/assets/scripts/section-generator-helpers.py +74 -0
  159. package/assets/scripts/section-generator.py +59 -49
  160. package/assets/templates/generation-prompt.md +78 -14
  161. package/package.json +1 -1
@@ -0,0 +1,729 @@
1
+ {% assign margin = section.settings.margin | split: ',' %}
2
+ {% assign margin_top = margin[0] %}
3
+ {% assign margin_bottom = margin[1] %}
4
+ {% assign padding = section.settings.padding | split: ',' %}
5
+ {% assign padding_top = padding[0] %}
6
+ {% assign padding_bottom = padding[1] %}
7
+
8
+ {% case section.settings.grid %}
9
+ {% when '1' %}
10
+ {% when '2' %}
11
+ {%- assign column = 'two-column' -%}
12
+ {% when '3' %}
13
+ {%- assign column = 'three-column' -%}
14
+ {% when '4' %}
15
+ {%- assign column = 'four-column' -%}
16
+ {% when '5' %}
17
+ {%- assign column = 'five-column' -%}
18
+ {% when '6' %}
19
+ {%- assign column = 'six-column' -%}
20
+ {% else %}
21
+ {%- assign column = 'three-column' -%}
22
+ {% endcase %}
23
+ {% if section.settings.counter_style == 'grid' %}
24
+ {% assign dt_style = 'grid-style' %}
25
+ {% elsif section.settings.counter_style == 'list' %}
26
+ {% assign verticalAlign = section.settings.vertical_position %}
27
+ {% assign dt_style = 'list-style' %}
28
+ {% endif %}
29
+ {% if section.settings.enable_boxed %}
30
+ {% assign boxedStyle = 'dt-sc-boxed' %}
31
+ {% endif %}
32
+ {% if section.settings.enable_overall_border %}
33
+ {% assign boxedStyle = 'dt-sc-overall-border' %}
34
+ {% endif %}
35
+ {% if section.settings.enable_icon_border %}
36
+ {% assign iconBorder = 'dt-sc-icon-border' %}
37
+ {% endif %}
38
+ {% if section.settings.reverse_column %}
39
+ {% assign reverseTrue = 'dt-sc-reverse-columns' %}
40
+ {% endif %}
41
+
42
+ {% if section.settings.enable_overlay %}
43
+ {% assign section_overlay = 'dt-sc-overlay' %}
44
+ {% endif %}
45
+
46
+ {% if section.settings.show_background_image %}
47
+ {% assign lazyScript = "lazyload" %}
48
+ {% endif %}
49
+
50
+ <div data-section-id="{{ section.id }}" data-section-type="number-counter-section" class="dt-sc-section-wrapper {{lazyScript}} {{ section_overlay }} {% if section.settings.background_style == 'parallax' %} parallax-initiated{% endif %}" {% if section.settings.background_style == 'parallax' %} data-speed="2" data-style="parallax"{% endif %} style="{% render 'bg-color-image-padding' %} background-size: {{- section.settings.background_size -}}; {% if section.settings.background_style == 'fixed' %}background-attachment: fixed;{% endif %} background-repeat:{% if section.settings.background_size == 'repeat' %}repeat{% else %}no-repeat;{% endif %}" {% include 'bg_image' %}>
51
+ <div class="{% render 'container-settings' %}">
52
+ <div class="row {{ section.settings.custom_class_name }}">
53
+ {% render 'section-heading', class: section.id %}
54
+ {% if section.blocks.size > 0 %}
55
+ <div class="dt-sc-number-counter-section dt-sc-column {{column}} {{dt_style}}">
56
+ {% for block in section.blocks %}
57
+ {% if block.type == 'icon' %}
58
+ <div class="dt-sc-number-counter inview-{{section.id}}-initialized {{ section.settings.block_text_align}} {{boxedStyle}} {{verticalAlign}} {{reverseTrue}} {{iconBorder}}">
59
+ <div class="dt-sc-number-counter-icon">
60
+ {% if block.settings.icon != blank %}
61
+ <img src="{{ block.settings.icon | img_url: '300x300' }}" alt="{{block.settings.icon.alt}}" />
62
+ {% else %}
63
+ {{ 'image' | placeholder_svg_tag: 'placeholder_svg' }}
64
+ {% endif%}
65
+ </div>
66
+ {% if block.settings.value != blank or block.settings.value_text != blank %}
67
+ <h3>
68
+ <span class="dt-sc-number-counter-value" data-value="{{block.settings.value}}"></span><span style="color:{{ section.settings.block_value_text_color }};">{{block.settings.value_text}}</span>
69
+ </h3>
70
+ {% endif%}
71
+ {% if block.settings.title != blank %}
72
+ <h5 class="dt-sc-number-counter-title">{{ block.settings.title }}</h5>
73
+ {% endif %}
74
+ {% if block.settings.text != blank %}
75
+ <p class="dt-sc-number-counter-description">{{ block.settings.text }}</p>
76
+ {% endif %}
77
+ </div>
78
+ {% endif %}
79
+ {% if block.type == 'class' %}
80
+ <div class="dt-sc-number-counter inview-{{section.id}}-initialized {{ section.settings.block_text_align}} {{boxedStyle}} {{verticalAlign}} {{reverseTrue}}">
81
+ {% if block.settings.class != blank %}
82
+ <div class="dt-sc-number-counter-icon">
83
+ <i class="{{ block.settings.class}}"></i>
84
+ </div>
85
+ {% endif%}
86
+ {% if block.settings.value != blank or block.settings.value_text != blank %}
87
+ <h3>
88
+ <span class="dt-sc-number-counter-value" data-value="{{block.settings.value}}"></span><span style="color:{{ section.settings.block_value_text_color }};">{{block.settings.value_text}}</span>
89
+ </h3>
90
+ {% endif%}
91
+ {% if block.settings.title != blank %}
92
+ <h5 class="dt-sc-number-counter-title">{{ block.settings.title }}</h5>
93
+ {% endif %}
94
+ {% if block.settings.text != blank %}
95
+ <p class="dt-sc-number-counter-description">{{ block.settings.text }}</p>
96
+ {% endif %}
97
+ </div>
98
+ {% endif %}
99
+ {% endfor %}
100
+ </div>
101
+ {% endif %}
102
+ </div>
103
+ </div>
104
+ </div>
105
+
106
+ <style type="text/css">
107
+
108
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-overlay:before {
109
+ color: var(--DTTertiaryColor);
110
+ color: {{ section.settings.background_color }};
111
+ background: currentcolor;
112
+ opacity: {{ section.settings.overlay_transparency }}; }
113
+
114
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-main-heading { color: var(--DTColor_Heading); color:{{ section.settings.section_heading_color }}; }
115
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-sub-heading { color: var(--DTColor_Heading); color:{{ section.settings.section_sub_heading_color }}; }
116
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-heading-description { color: var(--DTColor_Body); color:{{ section.settings.section_description_color }}; }
117
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-btn {
118
+ background: var(--DT_Button_BG_Color); background:{{ section.settings.section_button_bg_color }};
119
+ color: var(--DT_Button_Text_Color); color:{{ section.settings.section_button_text_color }}; }
120
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-btn:hover {
121
+ background: var(--DT_Button_BG_Hover_Color); background:{{ section.settings.section_button_hover_bg_color }};
122
+ color: var(--DT_Button_Text_Hover_Color); color:{{ section.settings.section_button_hover_text_color }}; }
123
+
124
+
125
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section { grid-gap: {{ section.settings.column_gap }}px; }
126
+
127
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter,
128
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-boxed:before {
129
+ border-radius: var(--DTRadius); border-radius: {{ section.settings.border_radius }}px; }
130
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon {
131
+ border-radius: var(--DTRadius); border-radius: {{ section.settings.icon_border_radius }}; }
132
+
133
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter:not(.dt-sc-boxed):not(.dt-sc-overall-border) { background: none; }
134
+
135
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-overall-border,
136
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-boxed:before {
137
+ background: var(--DTBodyBGColor);
138
+ background: {{ section.settings.block_bg_color }};
139
+ }
140
+
141
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-overall-border,
142
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-boxed:before {
143
+ border: 1px solid {{ settings.primary_color }};
144
+ border: 1px solid {{ section.settings.block_border_color }};
145
+ }
146
+
147
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-icon {
148
+ border: 1px solid {{ settings.primary_color }};
149
+ border: 1px solid {{ section.settings.block_icon_border_color }};
150
+ }
151
+
152
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-icon {
153
+ color: var(--DT_Button_Text_Color); color:{{ section.settings.block_icon_color }}; }
154
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-title {
155
+ color: var(--DTColor_Heading); color:{{ section.settings.block_title_color }}; }
156
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-description {
157
+ color: var(--DTColor_Body); color:{{ section.settings.block_text_color }}; }
158
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-value {
159
+ color: var(--DTColor_Body); color:{{ section.settings.block_value_color }};
160
+ }
161
+
162
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon {
163
+ background: var(--DT_Button_BG_Color); background:{{ section.settings.block_icon_bg_color }};
164
+ {% if section.settings.enable_box_shadow %} box-shadow: var(--DTboxShadow); {% endif %}
165
+ width: {{ section.settings.block_icon_outer_size }}px; height: {{ section.settings.block_icon_outer_size }}px;
166
+ }
167
+
168
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon img,
169
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon i{
170
+ max-width: {{ section.settings.block_icon_size }}px; font-size: {{ section.settings.block_icon_size }}px;
171
+ }
172
+
173
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section.list-style .dt-sc-number-counter {
174
+ grid-template-columns: {{ section.settings.block_icon_outer_size }}px 1fr; }
175
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns {
176
+ grid-template-columns: 1fr {{ section.settings.block_icon_outer_size }}px; }
177
+
178
+
179
+ .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon { padding: 10px; display: flex; align-items: center; justify-content: center; }
180
+
181
+ .dt-sc-number-counter-section .dt-sc-number-counter.text-center .dt-sc-number-counter-icon { display: flex; justify-content: center; margin-left: auto; margin-right: auto; }
182
+ .dt-sc-number-counter-section .dt-sc-number-counter.text-end .dt-sc-number-counter-icon { display: flex; margin-left: auto; }
183
+
184
+ /* .dt-sc-number-counter-section .dt-sc-number-counter { margin-bottom: 20px; } */
185
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-boxed { padding: 0 20px 20px 20px; position: relative; z-index: 1; }
186
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-boxed:before { position: absolute; content: ""; width: 100%; pointer-events: none; height: 100%; top: 0;
187
+ left: 0; z-index: -1; {% if section.settings.enable_box_shadow %} box-shadow: var(--DTboxShadow); {% endif %} }
188
+
189
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-overall-border { padding: 20px; {% if section.settings.enable_box_shadow %} box-shadow: var(--DTboxShadow); {% endif %} }
190
+
191
+ .dt-sc-number-counter-section.grid-style .dt-sc-number-counter.dt-sc-boxed:before { height: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px);
192
+ bottom: 0; top: auto; }
193
+ .dt-sc-number-counter-section.grid-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed { padding: 20px 20px 0 20px; }
194
+ .dt-sc-number-counter-section.grid-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed:before { top: 0; bottom: auto;
195
+ height: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px); }
196
+
197
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-boxed { padding: 20px 20px 20px 0; }
198
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-boxed:before { width: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px); right: 0; left: auto; }
199
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed { padding: 20px 0 20px 20px; }
200
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed:before { left: 0; right: auto;
201
+ width: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px); }
202
+
203
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-reverse-columns { display: flex; width: 100%; flex-wrap: wrap; flex-direction: column; }
204
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-reverse-columns .dt-sc-number-counter-icon { order: 1; float: left; width: 100%; margin-top: 15px; }
205
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-reverse-columns *:first-child { margin-bottom: 0; }
206
+
207
+ .dt-sc-number-counter-section .dt-sc-number-counter *,.dt-sc-number-counter-section .dt-sc-number-counter *:not(:only-child) { margin: 0; }
208
+ .dt-sc-number-counter-section .dt-sc-number-counter *:not(:last-child) { margin: 0 0 15px 0; }
209
+
210
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter { display: grid; column-gap: 20px; align-self: flex-start; position: relative; }
211
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter .dt-sc-number-counter-icon { grid-row-end: 4; grid-row-start: 1; margin: 0; width: 100%;
212
+ position: relative; }
213
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter .dt-sc-number-counter-icon img { max-width: 100%; }
214
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns .dt-sc-number-counter-icon { grid-column-start: 2; }
215
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-center .dt-sc-number-counter-icon { top: 50%; transform: translateY(-50%);
216
+ width: 100%; right: 0; }
217
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-bottom .dt-sc-number-counter-icon {
218
+ /* transform: translateY(calc(100% + 20px)); */ transform: translateY(100%);
219
+ }
220
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-bottom.dt-sc-overall-border .dt-sc-number-counter-icon {
221
+ transform: translateY(100%);
222
+ }
223
+
224
+ @media only screen and (min-width: 1200px) {
225
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper { margin-top:{{margin_top}}px; margin-bottom:{{margin_bottom}}px;padding-top:{{padding_top}}px; padding-bottom:{{padding_bottom}}px; }
226
+ }
227
+
228
+ @media only screen and (max-width: 1199px) {
229
+ .dt-sc-section-wrapper { margin-top:{{margin_top | divided_by: 2 }}px; margin-bottom:{{margin_bottom | divided_by: 2}}px;padding-top:{{padding_top | divided_by: 2}}px; padding-bottom:{{padding_bottom | divided_by: 2}}px;}
230
+ }
231
+
232
+ </style>
233
+
234
+ {% schema %}
235
+ {
236
+ "name": "Number counter",
237
+ "class": "index-section home-number-counter",
238
+ "max_blocks": 10,
239
+ "settings": [
240
+ {
241
+ "type": "checkbox",
242
+ "id": "full",
243
+ "label": "Show Full width"
244
+ },
245
+ {
246
+ "type": "checkbox",
247
+ "id": "spacing_both_ends",
248
+ "label": "Enable Right & Left Spacing (Works only on Fullwidth)",
249
+ "default": false
250
+ },
251
+ {
252
+ "type": "text",
253
+ "id": "padding",
254
+ "label": "Style value (Padding)",
255
+ "default":"0,0",
256
+ "info":"Top(px),Bottom(px)"
257
+ },
258
+ {
259
+ "type": "text",
260
+ "id": "margin",
261
+ "label": "Style value (Margin)",
262
+ "default":"0,0",
263
+ "info":"Top(px),Bottom(px)"
264
+ },
265
+ {
266
+ "type": "checkbox",
267
+ "id": "show_background_image",
268
+ "label": "Enable Background image"
269
+ },
270
+ {
271
+ "type": "image_picker",
272
+ "id": "background_image",
273
+ "label": "Background image",
274
+ "info": "Size: 1920x1280"
275
+ },
276
+ {
277
+ "type": "select",
278
+ "id": "background_style",
279
+ "label": "Background Style",
280
+ "default": "none",
281
+ "options": [
282
+ {
283
+ "value": "fixed",
284
+ "label": "Fixed"
285
+ },
286
+ {
287
+ "value": "parallax",
288
+ "label": "Parallax"
289
+ },
290
+ {
291
+ "value": "none",
292
+ "label": "None"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "select",
298
+ "id": "background_size",
299
+ "label": "Background Size",
300
+ "info": "This will not apply for parallax",
301
+ "default": "auto",
302
+ "options": [
303
+ {
304
+ "value": "auto",
305
+ "label": "Auto"
306
+ },
307
+ {
308
+ "value": "cover",
309
+ "label": "Cover"
310
+ },
311
+ {
312
+ "value": "contain",
313
+ "label": "Contain"
314
+ },
315
+ {
316
+ "value": "repeat",
317
+ "label": "Repeat"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "type": "checkbox",
323
+ "id": "enable_overlay",
324
+ "label": "Enable Background Color (Used as Background Image Overlay Color too)"
325
+ },
326
+ {
327
+ "type": "color",
328
+ "id": "background_color",
329
+ "label":"Background color"
330
+ },
331
+ {
332
+ "type": "text",
333
+ "id": "overlay_transparency",
334
+ "label": "Overlay Transparency (0.01 to 1)",
335
+ "default": "0.5"
336
+ },
337
+ {
338
+ "type": "text",
339
+ "id": "section_heading",
340
+ "label": "Main Heading",
341
+ "default": "Number Counter"
342
+ },
343
+ {
344
+ "type": "text",
345
+ "id": "section_sub_heading",
346
+ "label": "Sub Heading",
347
+ "default": "Sub Heading"
348
+ },
349
+ {
350
+ "type": "text",
351
+ "id": "section_description",
352
+ "label": "Description",
353
+ "default": "Use this text to share the information which you like!."
354
+ },
355
+ {
356
+ "type": "text",
357
+ "id": "section_button_text",
358
+ "label": "Link text"
359
+ },
360
+ {
361
+ "type": "url",
362
+ "id": "section_button_link",
363
+ "label": "Link URL"
364
+ },
365
+ {
366
+ "type": "header",
367
+ "content": "Section Color settings"
368
+ },
369
+ {
370
+ "type": "color",
371
+ "id": "section_heading_color",
372
+ "label": "Heading color"
373
+ },
374
+ {
375
+ "type": "color",
376
+ "id": "section_sub_heading_color",
377
+ "label": "Sub heading color"
378
+ },
379
+ {
380
+ "type": "color",
381
+ "id": "section_description_color",
382
+ "label": "Description color"
383
+ },
384
+ {
385
+ "type": "color",
386
+ "id": "section_button_bg_color",
387
+ "label": "Button bg color"
388
+ },
389
+ {
390
+ "type": "color",
391
+ "id": "section_button_text_color",
392
+ "label": "Button text color"
393
+ },
394
+ {
395
+ "type": "color",
396
+ "id": "section_button_hover_bg_color",
397
+ "label": "Button hover bg color"
398
+ },
399
+ {
400
+ "type": "color",
401
+ "id": "section_button_hover_text_color",
402
+ "label": "Button hover text color"
403
+ },
404
+ {
405
+ "type": "select",
406
+ "id": "heading_position",
407
+ "label": "Heading Position",
408
+ "options": [
409
+ {
410
+ "value": "text-center",
411
+ "label": "Center"
412
+ },
413
+ {
414
+ "value": "text-start",
415
+ "label": "Left"
416
+ },
417
+ {
418
+ "value": "text-end",
419
+ "label": "right"
420
+ }
421
+ ]
422
+ },
423
+ {
424
+ "type": "header",
425
+ "content": "Block Settings"
426
+ },
427
+ {
428
+ "type": "select",
429
+ "id": "grid",
430
+ "label": "Item per row",
431
+ "default": "4",
432
+ "options": [
433
+ {
434
+ "value": "1",
435
+ "label": "1"
436
+ },
437
+ {
438
+ "value": "2",
439
+ "label": "2"
440
+ },
441
+ {
442
+ "value": "3",
443
+ "label": "3"
444
+ },
445
+ {
446
+ "value": "4",
447
+ "label": "4"
448
+ },
449
+ {
450
+ "value": "5",
451
+ "label": "5"
452
+ },
453
+ {
454
+ "value": "6",
455
+ "label": "6"
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ "type": "text",
461
+ "id": "column_gap",
462
+ "label": "Column Gap - Leave empty for Default Gap (Units not needed)",
463
+ "default":"30"
464
+ },
465
+ {
466
+ "type": "select",
467
+ "id": "counter_style",
468
+ "label": "Counter Style",
469
+ "options": [
470
+ {
471
+ "value": "grid",
472
+ "label": "Grid"
473
+ },
474
+ {
475
+ "value": "list",
476
+ "label": "List"
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "type": "select",
482
+ "id": "vertical_position",
483
+ "label": "Content position",
484
+ "info": "Only for List Style",
485
+ "options": [
486
+ {
487
+ "value": "vertical-top",
488
+ "label": "Vertical top"
489
+ },
490
+ {
491
+ "value": "vertical-center",
492
+ "label": "Vertical center"
493
+ },
494
+ {
495
+ "value": "vertical-bottom",
496
+ "label": "Vertical bottom"
497
+ }
498
+ ],
499
+ "default": "vertical-top"
500
+ },
501
+ {
502
+ "type": "select",
503
+ "id": "block_text_align",
504
+ "label": "Text alignment",
505
+ "options": [
506
+ {
507
+ "value": "text-center",
508
+ "label": "center"
509
+ },
510
+ {
511
+ "value": "text-start",
512
+ "label": "Left"
513
+ },
514
+ {
515
+ "value": "text-end",
516
+ "label": "right"
517
+ }
518
+ ],
519
+ "default":"text-start"
520
+ },
521
+ {
522
+ "type": "header",
523
+ "content": "Reverse Columns"
524
+ },
525
+ {
526
+ "type": "checkbox",
527
+ "id": "reverse_column",
528
+ "label": "Content reverse",
529
+ "default": false
530
+ },
531
+ {
532
+ "type": "checkbox",
533
+ "id": "enable_boxed",
534
+ "label": "Enable boxed style",
535
+ "default": false
536
+ },
537
+ {
538
+ "type": "checkbox",
539
+ "id": "enable_overall_border",
540
+ "label": "Enable Overall Border (Boxed Style will not work, if this is enabled)",
541
+ "default": false
542
+ },
543
+ {
544
+ "type": "text",
545
+ "id": "border_radius",
546
+ "label": "Overall Radius (Units not needed)",
547
+ "default":"0",
548
+ "info": "Works only if you have enabled Overall Border"
549
+ },
550
+ {
551
+ "type": "text",
552
+ "id": "icon_border_radius",
553
+ "label": "Icon Radius (in px) - Set 50% for Rounded Icon",
554
+ "default":"0px",
555
+ "info": "Leave Empty for Default Border Radius"
556
+ },
557
+ {
558
+ "type": "text",
559
+ "id": "block_icon_outer_size",
560
+ "label": "Icon/Image Outer Size (Units not needed)",
561
+ "default":"75"
562
+ },
563
+ {
564
+ "type": "text",
565
+ "id": "block_icon_size",
566
+ "label": "Icon/Image Size (Units not needed)",
567
+ "default":"50"
568
+ },
569
+ {
570
+ "type": "checkbox",
571
+ "id": "enable_box_shadow",
572
+ "label": "Enable Box Shadow",
573
+ "default": false
574
+ },
575
+ {
576
+ "type": "header",
577
+ "content": "Block Color settings"
578
+ },
579
+ {
580
+ "type": "color",
581
+ "id": "block_bg_color",
582
+ "label": "Block BG color (Enable boxed style or Overall Border Checkbox above)"
583
+ },
584
+ {
585
+ "type": "color",
586
+ "id": "block_icon_border_color",
587
+ "label": "Icon Border Color"
588
+ },
589
+ {
590
+ "type": "color",
591
+ "id": "block_icon_bg_color",
592
+ "label": "Icon BG color"
593
+ },
594
+ {
595
+ "type": "color",
596
+ "id": "block_icon_color",
597
+ "label": "Icon color"
598
+ },
599
+ {
600
+ "type": "color",
601
+ "id": "block_title_color",
602
+ "label": "Heading color"
603
+ },
604
+ {
605
+ "type": "color",
606
+ "id": "block_text_color",
607
+ "label": "Description color"
608
+ },
609
+ {
610
+ "type": "color",
611
+ "id": "block_value_color",
612
+ "label": "Value color"
613
+ },
614
+ {
615
+ "type": "color",
616
+ "id": "block_value_text_color",
617
+ "label": "Value text Color (Suffixes like K, %)"
618
+ },
619
+ {
620
+ "type": "color",
621
+ "id": "block_border_color",
622
+ "label": "Overall Border Color"
623
+ },
624
+ {
625
+ "type": "header",
626
+ "content": "Custom class"
627
+ },
628
+ {
629
+ "type": "text",
630
+ "id": "custom_class_name",
631
+ "label": "Add your custom class name here"
632
+ }
633
+ ],
634
+ "blocks": [
635
+ {
636
+ "type": "icon",
637
+ "name": "Image",
638
+ "settings": [
639
+ {
640
+ "type": "image_picker",
641
+ "id": "icon",
642
+ "label": "Icon"
643
+ },
644
+ {
645
+ "type": "text",
646
+ "id": "title",
647
+ "label": "Title",
648
+ "default": "Title"
649
+ },
650
+ {
651
+ "type": "text",
652
+ "id": "text",
653
+ "label": "Text",
654
+ "default": "Lorem ipsum dolor sit amet"
655
+ },
656
+ {
657
+ "type": "text",
658
+ "id": "value",
659
+ "label": "Value",
660
+ "default": "50"
661
+ },
662
+ {
663
+ "type": "text",
664
+ "id": "value_text",
665
+ "label": "Value text",
666
+ "default": "K"
667
+ }
668
+ ]
669
+ },
670
+
671
+ {
672
+ "type": "class",
673
+ "name": "Font Awesome Class",
674
+ "settings": [
675
+ {
676
+ "type": "text",
677
+ "id": "class",
678
+ "label": "Font Awesome class",
679
+ "default": "fa fa-plus"
680
+ },
681
+ {
682
+ "type": "text",
683
+ "id": "title",
684
+ "label": "Title",
685
+ "default": "Title"
686
+ },
687
+ {
688
+ "type": "text",
689
+ "id": "text",
690
+ "label": "Text",
691
+ "default": "Lorem ipsum dolor sit amet"
692
+ },
693
+ {
694
+ "type": "text",
695
+ "id": "value",
696
+ "label": "Value",
697
+ "default": "50"
698
+ },
699
+ {
700
+ "type": "text",
701
+ "id": "value_text",
702
+ "label": "Value text",
703
+ "default": "K"
704
+ }
705
+ ]
706
+ }
707
+ ],
708
+ "presets": [
709
+ {
710
+ "name": "Number counter",
711
+ "category": "Chart",
712
+ "blocks": [
713
+ {
714
+ "type": "class"
715
+ },
716
+ {
717
+ "type": "class"
718
+ },
719
+ {
720
+ "type": "class"
721
+ },
722
+ {
723
+ "type": "class"
724
+ }
725
+ ]
726
+ }
727
+ ]
728
+ }
729
+ {% endschema %}