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,790 @@
1
+ {% case section.settings.grid %}
2
+ {% when '1' %}
3
+ {% when '2' %}
4
+ {%- assign column = 'two-column' -%}
5
+ {% when '3' %}
6
+ {%- assign column = 'three-column' -%}
7
+ {% when '4' %}
8
+ {%- assign column = 'four-column' -%}
9
+ {% when '5' %}
10
+ {%- assign column = 'five-column' -%}
11
+ {% when '6' %}
12
+ {%- assign column = 'six-column' -%}
13
+ {% else %}
14
+ {%- assign column = 'three-column' -%}
15
+ {% endcase %}
16
+ {% if section.settings.counter_style == 'grid' %}
17
+ {% assign dt_style = 'grid-style' %}
18
+ {% elsif section.settings.counter_style == 'list' %}
19
+ {% assign verticalAlign = section.settings.vertical_position %}
20
+ {% assign dt_style = 'list-style' %}
21
+ {% endif %}
22
+ {% if section.settings.enable_boxed %}
23
+ {% assign boxedStyle = 'dt-sc-boxed' %}
24
+ {% endif %}
25
+ {% if section.settings.enable_overall_border %}
26
+ {% assign boxedStyle = 'dt-sc-overall-border' %}
27
+ {% endif %}
28
+ {% if section.settings.enable_icon_border %}
29
+ {% assign iconBorder = 'dt-sc-icon-border' %}
30
+ {% endif %}
31
+ {% if section.settings.reverse_column %}
32
+ {% assign reverseTrue = 'dt-sc-reverse-columns' %}
33
+ {% endif %}
34
+
35
+ {% if section.settings.enable_overlay %}
36
+ {% assign section_overlay = 'dt-sc-overlay' %}
37
+ {% endif %}
38
+
39
+ {% case section.settings.background_style %}
40
+ {% when 'default' %}
41
+ {% when 'parallax' %}
42
+ {%- assign background_style = 'data-speed="2"' %}
43
+ {% when 'fixed' %}
44
+ {%- assign background_style = 'data-speed="1"' %}
45
+ {% endcase %}
46
+
47
+ {% if section.settings.show_background_image %}
48
+ {% assign lazyScript = "lazyload" %}
49
+ {% endif %}
50
+
51
+ <div class="dt-sc-section-wrapper {{lazyScript}} {{section_overlay}} {% if section.settings.background_style == 'parallax' %} parallax-initiated{% endif %}" style="{% render 'bg-color-image-padding' %}" data-style="parallax" {{background_style}} data-section-id="{{ section.id }}" data-section-type="number-counter-section" {% include 'bg_image' %}>
52
+ <div class="{% render 'container-settings' %}">
53
+ <div class="row {{ section.settings.custom_class_name }}">
54
+ {% render 'section-heading', class: section.id %}
55
+ {% if section.blocks.size > 0 %}
56
+ <div class="dt-sc-number-counter-section dt-sc-column {{column}} {{dt_style}}">
57
+ {% for block in section.blocks %}
58
+ {% if block.type == 'icon' %}
59
+ <div class="dt-sc-number-counter inview-{{section.id}}-initialized {{ section.settings.block_text_align}} {{boxedStyle}} {{verticalAlign}} {{reverseTrue}} {{iconBorder}}">
60
+ {% if block.settings.value != blank or block.settings.value_text != blank %}
61
+ <h3>
62
+ <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>
63
+ </h3>
64
+ {% endif%}
65
+
66
+ <div class="dt-sc-number-counter-icon">
67
+ {% if block.settings.icon != blank %}
68
+ {%- assign img_url = block.settings.icon | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
69
+ <img class="lazyload"
70
+ src="{{ 'loading.gif' | asset_url }}"
71
+ data-src="{{ img_url }}"
72
+ data-widths="[180, 360, 470, 600, 770, 970, 1060, 1280, 1512, 1728, 2048]"
73
+ data-aspectratio="{{ block.settings.icon.aspect_ratio }}"
74
+ data-sizes="auto"
75
+ alt="{{ block.settings.icon.alt | escape }}">
76
+ <noscript>
77
+ {{ block.settings.icon | img_url: '480x480', scale: 2 | img_tag: block.settings.icon.alt, 'dt-sc-noscript-image' }}
78
+ </noscript>
79
+ {% else %}
80
+ {{ 'image' | placeholder_svg_tag: 'placeholder_svg' }}
81
+ {% endif%}
82
+ </div>
83
+
84
+ {% if block.settings.title != blank %}
85
+ <h5 class="dt-sc-number-counter-title">{{ block.settings.title }}</h5>
86
+ {% endif %}
87
+ {% if block.settings.text != blank %}
88
+ <p class="dt-sc-number-counter-description">{{ block.settings.text }}</p>
89
+ {% endif %}
90
+ </div>
91
+ {% endif %}
92
+ {% if block.type == 'class' %}
93
+ <div class="dt-sc-number-counter inview-{{section.id}}-initialized {{ section.settings.block_text_align}} {{boxedStyle}} {{verticalAlign}} {{reverseTrue}}">
94
+ {% if block.settings.value != blank or block.settings.value_text != blank %}
95
+ <h3>
96
+ <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>
97
+ </h3>
98
+ {% endif%}
99
+
100
+ {% if block.settings.class != blank %}
101
+ <div class="dt-sc-number-counter-icon">
102
+ <i class="{{ block.settings.class}}"></i>
103
+ </div>
104
+ {% endif%}
105
+
106
+ {% if block.settings.title != blank %}
107
+ <h5 class="dt-sc-number-counter-title">{{ block.settings.title }}</h5>
108
+ {% endif %}
109
+ {% if block.settings.text != blank %}
110
+ <p class="dt-sc-number-counter-description">{{ block.settings.text }}</p>
111
+ {% endif %}
112
+ </div>
113
+ {% endif %}
114
+ {% endfor %}
115
+ </div>
116
+ {% endif %}
117
+ </div>
118
+ </div>
119
+ </div>
120
+
121
+ <style type="text/css">
122
+
123
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-overlay:before {
124
+ color: var(--DTTertiaryColor);
125
+ color: {{ section.settings.background_color }};
126
+ background: currentcolor;
127
+ opacity: {{ section.settings.overlay_transparency }}; }
128
+
129
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-main-heading { color: var(--DTColor_Heading); color:{{ section.settings.section_heading_color }}; }
130
+ #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 }}; }
131
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-heading-description { color: var(--DTColor_Body); color:{{ section.settings.section_description_color }}; }
132
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-btn {
133
+ background: var(--DT_Button_BG_Color); background:{{ section.settings.section_button_bg_color }};
134
+ color: var(--DT_Button_Text_Color); color:{{ section.settings.section_button_text_color }}; }
135
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-heading .dt-sc-btn:hover {
136
+ background: var(--DT_Button_BG_Hover_Color); background:{{ section.settings.section_button_hover_bg_color }};
137
+ color: var(--DT_Button_Text_Hover_Color); color:{{ section.settings.section_button_hover_text_color }}; }
138
+
139
+
140
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section { grid-gap: {{ section.settings.column_gap }}px; }
141
+
142
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter,
143
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-boxed:before {
144
+ border-radius: var(--DTRadius); border-radius: {{ section.settings.border_radius }}px; }
145
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon {
146
+ border-radius: var(--DTRadius); border-radius: {{ section.settings.icon_border_radius }}; }
147
+
148
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter:not(.dt-sc-boxed):not(.dt-sc-overall-border) { }
149
+
150
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-overall-border,
151
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-boxed:before {
152
+ background: var(--DTBodyBGColor);
153
+ background: {{ section.settings.block_bg_color }};
154
+ }
155
+
156
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-overall-border,
157
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter.dt-sc-boxed:before {
158
+ border: 1px solid {{ settings.primary_color }};
159
+ border: 1px solid {{ section.settings.block_border_color }};
160
+ }
161
+
162
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-icon {
163
+ border: 1px solid {{ settings.primary_color }};
164
+ border: 1px solid {{ section.settings.block_icon_border_color }};
165
+ }
166
+
167
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-icon {
168
+ color: var(--DT_Button_Text_Color); color:{{ section.settings.block_icon_color }}; }
169
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-title {
170
+ color: var(--DTColor_Heading); color:{{ section.settings.block_title_color }}; }
171
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-description {
172
+ color: var(--DTColor_Body); color:{{ section.settings.block_text_color }}; }
173
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-value {
174
+ color: var(--DTColor_Body); color:{{ section.settings.block_value_color }};
175
+ }
176
+
177
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon {
178
+ background: var(--DT_Button_BG_Color); background:{{ section.settings.block_icon_bg_color }};
179
+ {% if section.settings.enable_box_shadow %} box-shadow: var(--DTboxShadow); {% endif %}
180
+ width: {{ section.settings.block_icon_outer_size }}px; height: {{ section.settings.block_icon_outer_size }}px;
181
+ }
182
+
183
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon img,
184
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon i{
185
+ max-width: {{ section.settings.block_icon_size }}px; font-size: {{ section.settings.block_icon_size }}px;
186
+ }
187
+
188
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section.list-style .dt-sc-number-counter {
189
+ grid-template-columns: {{ section.settings.block_icon_outer_size }}px 1fr; }
190
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns {
191
+ grid-template-columns: 1fr {{ section.settings.block_icon_outer_size }}px; }
192
+
193
+
194
+ .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon { padding: 0 0 10px; margin:0 !important; display: flex; align-items: center; justify-content: center; }
195
+
196
+ .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; }
197
+ .dt-sc-number-counter-section .dt-sc-number-counter.text-end .dt-sc-number-counter-icon { display: flex; margin-left: auto; }
198
+
199
+ /* .dt-sc-number-counter-section .dt-sc-number-counter { margin-bottom: 20px; } */
200
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-boxed { padding: 0 20px 20px 20px; position: relative; z-index: 1; }
201
+ .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;
202
+ left: 0; z-index: -1; {% if section.settings.enable_box_shadow %} box-shadow: var(--DTboxShadow); {% endif %} }
203
+
204
+ .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 %} }
205
+
206
+ .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);
207
+ bottom: 0; top: auto; }
208
+ .dt-sc-number-counter-section.grid-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed { padding: 20px 20px 0 20px; }
209
+ .dt-sc-number-counter-section.grid-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed:before { top: 0; bottom: auto;
210
+ height: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px); }
211
+
212
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-boxed { padding: 20px 20px 20px 0; }
213
+ .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; }
214
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed { padding: 20px 0 20px 20px; }
215
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns.dt-sc-boxed:before { left: 0; right: auto;
216
+ width: calc(100% - {{ section.settings.block_icon_outer_size | divided_by: 2 }}px); }
217
+
218
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-reverse-columns { display: flex; width: 100%; flex-wrap: wrap; flex-direction: column; }
219
+ .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; }
220
+ .dt-sc-number-counter-section .dt-sc-number-counter.dt-sc-reverse-columns *:first-child { margin-bottom: 0; }
221
+
222
+ .dt-sc-number-counter-section .dt-sc-number-counter *,.dt-sc-number-counter-section .dt-sc-number-counter *:not(:only-child) { margin: 0; }
223
+ .dt-sc-number-counter-section .dt-sc-number-counter *:not(:last-child) { margin: 0 0 15px 0; }
224
+
225
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter { display: grid; column-gap: 20px; align-self: flex-start; position: relative; }
226
+ .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%;
227
+ position: relative; }
228
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter .dt-sc-number-counter-icon img { max-width: 100%; }
229
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.dt-sc-reverse-columns .dt-sc-number-counter-icon { grid-column-start: 2; }
230
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-center .dt-sc-number-counter-icon { top: 50%; transform: translateY(-50%);
231
+ width: 100%; right: 0; }
232
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-bottom .dt-sc-number-counter-icon {
233
+ /* transform: translateY(calc(100% + 20px)); */ transform: translateY(100%);
234
+ }
235
+ .dt-sc-number-counter-section.list-style .dt-sc-number-counter.vertical-bottom.dt-sc-overall-border .dt-sc-number-counter-icon {
236
+ transform: translateY(100%);
237
+ }
238
+
239
+
240
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper { background-color:{{section.settings.background_color}}; background-repeat: repeat-x !important; background-attachment: fixed !important; background-size: inherit !important; }
241
+
242
+
243
+
244
+ {% if section.settings.before_img != blank %}
245
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper:before{
246
+ content:"";position:absolute;top:0;width:100%;height:19px;
247
+ background:url({{ section.settings.before_img | img_url: 'master' }}) repeat-x;
248
+ left:0;
249
+ }
250
+ {% endif %}
251
+ {% if section.settings.after_img != blank %}
252
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper:after{
253
+ content:"";position:absolute;bottom:0;width:100%;height:19px;
254
+ background:url({{ section.settings.after_img | img_url: 'master' }}) repeat-x;
255
+ }
256
+ {% endif %}
257
+
258
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-number-counter:hover{ -webkit-transition: background 0.3s linear 0s;-moz-transition: background 0.3s linear 0s;-o-transition: background 0.3s linear 0s; }
259
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-number-counter{ height:217px; -webkit-transition: background 0.3s linear 0s;-moz-transition: background 0.3s linear 0s;-o-transition: background 0.3s linear 0s;transition: background 0.3s linear 0s; }
260
+
261
+ {% if section.settings.icon_content != blank %}
262
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-number-counter {
263
+ background:url({{ section.settings.icon_content | img_url: "master" }})no-repeat scroll center center;background-size:contain;
264
+ }
265
+ {% endif %}
266
+
267
+ {% if section.settings.icon_content_hover != blank %}
268
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-number-counter:hover{ background:url({{ section.settings.icon_content_hover | img_url: "master" }})no-repeat scroll center center;background-size:contain;transition:background 0.3s linear 0s;}
269
+ {% endif %}
270
+
271
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-number-counter h3{ font-family: var(--DTFontTypo_Body); font-size: var(--DTFontSize_H1); margin:40px 0 0;}
272
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter .dt-sc-number-counter-title{ font-family: var(--DTFontTypo_Body); }
273
+
274
+ {% if section.settings.gift_border %}
275
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon:after{ background:{{ section.settings.block_icon_color }};content:"";height:2px;display:inline-block;width:46px;margin-bottom:0px;margin-left:10px;}
276
+ {% endif %}
277
+ {% if section.settings.gift_border %}
278
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-number-counter-section .dt-sc-number-counter .dt-sc-number-counter-icon:before{ background:{{ section.settings.block_icon_color }};content:"";height:2px;display:inline-block;width:46px;margin-bottom:0px;margin-right:10px;}
279
+ {% endif %}
280
+
281
+ @media only screen and (max-width: 767px) and (min-width: 577px) {
282
+
283
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-column.four-column{ grid-template-columns: repeat(2,1fr);}
284
+ }
285
+
286
+ @media only screen and (max-width: 1199px) and (min-width: 968px) {
287
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper .dt-sc-column.four-column{ grid-template-columns: repeat(4,1fr);}
288
+ }
289
+
290
+ @media only screen and (max-width: 968px) and (min-width: 360px){
291
+
292
+ #shopify-section-{{section.id}}.home-number-counter .dt-sc-section-wrapper{ background-repeat: repeat !important;} }
293
+ </style>
294
+
295
+ {% schema %}
296
+ {
297
+ "name": "Number counter",
298
+ "class": "index-section home-number-counter",
299
+ "max_blocks": 10,
300
+ "settings": [
301
+ {
302
+ "type": "checkbox",
303
+ "id": "full",
304
+ "label": "Show Full width"
305
+ },
306
+ {
307
+ "type": "checkbox",
308
+ "id": "spacing_both_ends",
309
+ "label": "Enable Right & Left Spacing (Works only on Fullwidth)",
310
+ "default": false
311
+ },
312
+ {
313
+ "type": "text",
314
+ "id": "padding",
315
+ "label": "Style value (Padding)",
316
+ "default":"0,0",
317
+ "info":"Top(px),Bottom(px)"
318
+ },
319
+ {
320
+ "type": "text",
321
+ "id": "margin",
322
+ "label": "Style value (Margin)",
323
+ "default":"0,0",
324
+ "info":"Top(px),Bottom(px)"
325
+ },
326
+ {
327
+ "type": "checkbox",
328
+ "id": "show_background_image",
329
+ "label": "Enable Background image"
330
+ },
331
+ {
332
+ "type": "image_picker",
333
+ "id": "background_image",
334
+ "label": "Background image",
335
+ "info": "Size: 1920x1280"
336
+ },
337
+ {
338
+ "type": "image_picker",
339
+ "id": "before_img",
340
+ "label":"Top Curve"
341
+ },
342
+ {
343
+ "type": "image_picker",
344
+ "id": "after_img",
345
+ "label":"Bottom Curve"
346
+ },
347
+ {
348
+ "type": "image_picker",
349
+ "id": "icon_content",
350
+ "label": "Icon"
351
+ },
352
+ {
353
+ "type": "image_picker",
354
+ "id": "icon_content_hover",
355
+ "label": "Hover Content bg"
356
+ },
357
+ {
358
+ "type": "select",
359
+ "id": "background_style",
360
+ "label": "Background Style",
361
+ "default": "default",
362
+ "options": [
363
+ {
364
+ "value": "default",
365
+ "label": "Default"
366
+ },
367
+ {
368
+ "value": "parallax",
369
+ "label": "Parallax"
370
+ },
371
+ {
372
+ "value": "fixed",
373
+ "label": "Fixed"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "type": "checkbox",
379
+ "id": "enable_overlay",
380
+ "label": "Enable Background Color (Used as Background Image Overlay Color too)"
381
+ },
382
+ {
383
+ "type": "color",
384
+ "id": "background_color",
385
+ "label":"Background color"
386
+ },
387
+ {
388
+ "type": "text",
389
+ "id": "overlay_transparency",
390
+ "label": "Overlay Transparency (0.01 to 1)",
391
+ "default": "0.5"
392
+ },
393
+ {
394
+ "type": "text",
395
+ "id": "section_heading",
396
+ "label": "Main Heading",
397
+ "default": "Number Counter"
398
+ },
399
+ {
400
+ "type": "text",
401
+ "id": "section_sub_heading",
402
+ "label": "Sub Heading",
403
+ "default": "Sub Heading"
404
+ },
405
+ {
406
+ "type": "text",
407
+ "id": "section_description",
408
+ "label": "Description",
409
+ "default": "Use this text to share the information which you like!."
410
+ },
411
+ {
412
+ "type": "text",
413
+ "id": "section_button_text",
414
+ "label": "Link text"
415
+ },
416
+ {
417
+ "type": "url",
418
+ "id": "section_button_link",
419
+ "label": "Link URL"
420
+ },
421
+ {
422
+ "type": "header",
423
+ "content": "Section Color settings"
424
+ },
425
+ {
426
+ "type": "color",
427
+ "id": "section_heading_color",
428
+ "label": "Heading color"
429
+ },
430
+ {
431
+ "type": "color",
432
+ "id": "section_sub_heading_color",
433
+ "label": "Sub heading color"
434
+ },
435
+ {
436
+ "type": "color",
437
+ "id": "section_description_color",
438
+ "label": "Description color"
439
+ },
440
+ {
441
+ "type": "color",
442
+ "id": "section_button_bg_color",
443
+ "label": "Button bg color"
444
+ },
445
+ {
446
+ "type": "color",
447
+ "id": "section_button_text_color",
448
+ "label": "Button text color"
449
+ },
450
+ {
451
+ "type": "color",
452
+ "id": "section_button_hover_bg_color",
453
+ "label": "Button hover bg color"
454
+ },
455
+ {
456
+ "type": "color",
457
+ "id": "section_button_hover_text_color",
458
+ "label": "Button hover text color"
459
+ },
460
+ {
461
+ "type": "select",
462
+ "id": "heading_position",
463
+ "label": "Heading Position",
464
+ "options": [
465
+ {
466
+ "value": "text-center",
467
+ "label": "Center"
468
+ },
469
+ {
470
+ "value": "text-start",
471
+ "label": "Left"
472
+ },
473
+ {
474
+ "value": "text-end",
475
+ "label": "right"
476
+ }
477
+ ]
478
+ },
479
+ {
480
+ "type": "header",
481
+ "content": "Block Settings"
482
+ },
483
+ {
484
+ "type": "select",
485
+ "id": "grid",
486
+ "label": "Item per row",
487
+ "default": "4",
488
+ "options": [
489
+ {
490
+ "value": "1",
491
+ "label": "1"
492
+ },
493
+ {
494
+ "value": "2",
495
+ "label": "2"
496
+ },
497
+ {
498
+ "value": "3",
499
+ "label": "3"
500
+ },
501
+ {
502
+ "value": "4",
503
+ "label": "4"
504
+ },
505
+ {
506
+ "value": "5",
507
+ "label": "5"
508
+ },
509
+ {
510
+ "value": "6",
511
+ "label": "6"
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "type": "text",
517
+ "id": "column_gap",
518
+ "label": "Column Gap - Leave empty for Default Gap (Units not needed)",
519
+ "default":"30"
520
+ },
521
+ {
522
+ "type": "select",
523
+ "id": "counter_style",
524
+ "label": "Counter Style",
525
+ "options": [
526
+ {
527
+ "value": "grid",
528
+ "label": "Grid"
529
+ },
530
+ {
531
+ "value": "list",
532
+ "label": "List"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "type": "select",
538
+ "id": "vertical_position",
539
+ "label": "Content position",
540
+ "info": "Only for List Style",
541
+ "options": [
542
+ {
543
+ "value": "vertical-top",
544
+ "label": "Vertical top"
545
+ },
546
+ {
547
+ "value": "vertical-center",
548
+ "label": "Vertical center"
549
+ },
550
+ {
551
+ "value": "vertical-bottom",
552
+ "label": "Vertical bottom"
553
+ }
554
+ ],
555
+ "default": "vertical-top"
556
+ },
557
+ {
558
+ "type": "select",
559
+ "id": "block_text_align",
560
+ "label": "Text alignment",
561
+ "options": [
562
+ {
563
+ "value": "text-center",
564
+ "label": "center"
565
+ },
566
+ {
567
+ "value": "text-start",
568
+ "label": "Left"
569
+ },
570
+ {
571
+ "value": "text-end",
572
+ "label": "right"
573
+ }
574
+ ],
575
+ "default":"text-start"
576
+ },
577
+ {
578
+ "type": "header",
579
+ "content": "Reverse Columns"
580
+ },
581
+ {
582
+ "type": "checkbox",
583
+ "id": "reverse_column",
584
+ "label": "Content reverse",
585
+ "default": false
586
+ },
587
+ {
588
+ "type": "checkbox",
589
+ "id": "enable_boxed",
590
+ "label": "Enable boxed style",
591
+ "default": false
592
+ },
593
+ {
594
+ "type": "checkbox",
595
+ "id": "enable_overall_border",
596
+ "label": "Enable Overall Border (Boxed Style will not work, if this is enabled)",
597
+ "default": false
598
+ },
599
+ {
600
+ "type": "text",
601
+ "id": "border_radius",
602
+ "label": "Overall Radius (Units not needed)",
603
+ "default":"0",
604
+ "info": "Works only if you have enabled Overall Border"
605
+ },
606
+ {
607
+ "type": "text",
608
+ "id": "icon_border_radius",
609
+ "label": "Icon Radius (in px) - Set 50% for Rounded Icon",
610
+ "default":"0px",
611
+ "info": "Leave Empty for Default Border Radius"
612
+ },
613
+ {
614
+ "type": "text",
615
+ "id": "block_icon_outer_size",
616
+ "label": "Icon/Image Outer Size (Units not needed)",
617
+ "default":"75"
618
+ },
619
+ {
620
+ "type": "text",
621
+ "id": "block_icon_size",
622
+ "label": "Icon/Image Size (Units not needed)",
623
+ "default":"50"
624
+ },
625
+ {
626
+ "type": "checkbox",
627
+ "id": "enable_box_shadow",
628
+ "label": "Enable Box Shadow",
629
+ "default": false
630
+ },
631
+ {
632
+ "type": "header",
633
+ "content": "Block Color settings"
634
+ },
635
+ {
636
+ "type": "color",
637
+ "id": "block_bg_color",
638
+ "label": "Block BG color (Enable boxed style or Overall Border Checkbox above)"
639
+ },
640
+ {
641
+ "type": "color",
642
+ "id": "block_icon_border_color",
643
+ "label": "Icon Border Color"
644
+ },
645
+ {
646
+ "type": "color",
647
+ "id": "block_icon_bg_color",
648
+ "label": "Icon BG color"
649
+ },
650
+ {
651
+ "type": "color",
652
+ "id": "block_icon_color",
653
+ "label": "Icon color"
654
+ },
655
+ {
656
+ "type": "color",
657
+ "id": "block_title_color",
658
+ "label": "Heading color"
659
+ },
660
+ {
661
+ "type": "color",
662
+ "id": "block_text_color",
663
+ "label": "Description color"
664
+ },
665
+ {
666
+ "type": "color",
667
+ "id": "block_value_color",
668
+ "label": "Value color"
669
+ },
670
+ {
671
+ "type": "color",
672
+ "id": "block_value_text_color",
673
+ "label": "Value text Color (Suffixes like K, %)"
674
+ },
675
+ {
676
+ "type": "color",
677
+ "id": "block_border_color",
678
+ "label": "Overall Border Color"
679
+ },
680
+ {
681
+ "type": "checkbox",
682
+ "id": "gift_border",
683
+ "label": "Giftbox border"
684
+ },
685
+ {
686
+ "type": "header",
687
+ "content": "Custom class"
688
+ },
689
+ {
690
+ "type": "text",
691
+ "id": "custom_class_name",
692
+ "label": "Add your custom class name here"
693
+ }
694
+ ],
695
+ "blocks": [
696
+ {
697
+ "type": "icon",
698
+ "name": "Image",
699
+ "settings": [
700
+ {
701
+ "type": "image_picker",
702
+ "id": "icon",
703
+ "label": "Icon"
704
+ },
705
+ {
706
+ "type": "text",
707
+ "id": "title",
708
+ "label": "Title",
709
+ "default": "Title"
710
+ },
711
+ {
712
+ "type": "text",
713
+ "id": "text",
714
+ "label": "Text",
715
+ "default": "Lorem ipsum dolor sit amet"
716
+ },
717
+ {
718
+ "type": "text",
719
+ "id": "value",
720
+ "label": "Value",
721
+ "default": "50"
722
+ },
723
+ {
724
+ "type": "text",
725
+ "id": "value_text",
726
+ "label": "Value text",
727
+ "default": "K"
728
+ }
729
+ ]
730
+ },
731
+
732
+ {
733
+ "type": "class",
734
+ "name": "Font Awesome Class",
735
+ "settings": [
736
+ {
737
+ "type": "text",
738
+ "id": "class",
739
+ "label": "Font Awesome class",
740
+ "default": "fa fa-plus"
741
+ },
742
+ {
743
+ "type": "text",
744
+ "id": "title",
745
+ "label": "Title",
746
+ "default": "Title"
747
+ },
748
+ {
749
+ "type": "text",
750
+ "id": "text",
751
+ "label": "Text",
752
+ "default": "Lorem ipsum dolor sit amet"
753
+ },
754
+ {
755
+ "type": "text",
756
+ "id": "value",
757
+ "label": "Value",
758
+ "default": "50"
759
+ },
760
+ {
761
+ "type": "text",
762
+ "id": "value_text",
763
+ "label": "Value text",
764
+ "default": "K"
765
+ }
766
+ ]
767
+ }
768
+ ],
769
+ "presets": [
770
+ {
771
+ "name": "Number counter",
772
+ "category": "Chart",
773
+ "blocks": [
774
+ {
775
+ "type": "class"
776
+ },
777
+ {
778
+ "type": "class"
779
+ },
780
+ {
781
+ "type": "class"
782
+ },
783
+ {
784
+ "type": "class"
785
+ }
786
+ ]
787
+ }
788
+ ]
789
+ }
790
+ {% endschema %}