@sc-360-v2/storefront-cms-library 0.5.53 → 0.5.55

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 (106) hide show
  1. package/dist/add-products-tab-details.scss +3 -0
  2. package/dist/allocation-header-quota-details.scss +520 -0
  3. package/dist/allocationDetails.scss +617 -644
  4. package/dist/allocations-quota-details.scss +454 -0
  5. package/dist/allocations.scss +8 -0
  6. package/dist/amount-estimator.scss +1088 -1083
  7. package/dist/badge.scss +396 -388
  8. package/dist/breadcrumbs.scss +17 -0
  9. package/dist/builder.js +1 -1
  10. package/dist/bulk-variant-picker.scss +4 -0
  11. package/dist/bundle copy.scss +26 -0
  12. package/dist/bundle.scss +10 -0
  13. package/dist/bundleDetails.scss +14 -0
  14. package/dist/button copy.scss +2 -0
  15. package/dist/button.scss +2 -0
  16. package/dist/buyForHeaders.scss +19 -0
  17. package/dist/cart-details.scss +101 -18
  18. package/dist/cart-summary.scss +18 -0
  19. package/dist/cart.scss +2 -0
  20. package/dist/cartAttributes.scss +4 -0
  21. package/dist/category-groups-quota-details.scss +124 -38
  22. package/dist/checkout.scss +6 -0
  23. package/dist/countdown.scss +2 -0
  24. package/dist/coupon.scss +8 -0
  25. package/dist/embroidery.scss +2 -0
  26. package/dist/employee-bulk-order.scss +5 -0
  27. package/dist/faq.scss +9 -0
  28. package/dist/filters.scss +2 -0
  29. package/dist/form-zindex-module.scss +24 -24
  30. package/dist/gallery-slider-temp.scss +205 -14
  31. package/dist/hotspot.scss +5 -1
  32. package/dist/icon-list.scss +2 -0
  33. package/dist/kitDetails.scss +2 -0
  34. package/dist/kits.scss +2 -0
  35. package/dist/language-selector.scss +2 -0
  36. package/dist/last-x-orders.scss +5 -0
  37. package/dist/login.scss +63 -9
  38. package/dist/map.scss +6 -0
  39. package/dist/mega-menu.scss +41 -0
  40. package/dist/menu-v2.scss +83 -6
  41. package/dist/order-status.scss +228 -136
  42. package/dist/past-orders.scss +989 -975
  43. package/dist/pickup-locations.scss +1172 -1167
  44. package/dist/product-image-allocation.scss +59 -0
  45. package/dist/product-inventory.scss +1381 -1378
  46. package/dist/product-promotions.scss +2768 -2759
  47. package/dist/product-sizechart.scss +4 -0
  48. package/dist/profile.scss +8 -0
  49. package/dist/quantity-selector.scss +4 -0
  50. package/dist/quick-inventory-check.scss +5 -0
  51. package/dist/quick-order-pad.scss +5 -0
  52. package/dist/quota-details.scss +99 -15
  53. package/dist/repeater copy.scss +3 -0
  54. package/dist/repeater-grid-toggle.scss +2 -0
  55. package/dist/repeater.scss +2 -0
  56. package/dist/rfqs.scss +10 -0
  57. package/dist/scroll.scss +46 -0
  58. package/dist/search.scss +4 -0
  59. package/dist/shipping-payments.scss +4 -0
  60. package/dist/social.scss +5 -0
  61. package/dist/store-locations.scss +1402 -1398
  62. package/dist/tab-v2.scss +2 -0
  63. package/dist/table-common.scss +509 -506
  64. package/dist/table.scss +687 -685
  65. package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +28 -0
  66. package/dist/types/builder/tools/element-edit/allocationDetails.d.ts +5 -0
  67. package/dist/types/builder/tools/element-edit/allocations.d.ts +1 -0
  68. package/dist/types/builder/tools/element-edit/breadcrumbs.d.ts +5 -0
  69. package/dist/types/builder/tools/element-edit/bundle.d.ts +40 -0
  70. package/dist/types/builder/tools/element-edit/bundleDetails.d.ts +20 -0
  71. package/dist/types/builder/tools/element-edit/buttonInstance.d.ts +18 -0
  72. package/dist/types/builder/tools/element-edit/buyForWithTab.d.ts +1 -0
  73. package/dist/types/builder/tools/element-edit/cartAttributes.d.ts +9 -0
  74. package/dist/types/builder/tools/element-edit/cartDetails.d.ts +79 -1
  75. package/dist/types/builder/tools/element-edit/cartSummary.d.ts +259 -0
  76. package/dist/types/builder/tools/element-edit/categoryGroups.d.ts +28 -0
  77. package/dist/types/builder/tools/element-edit/checkout.d.ts +1 -0
  78. package/dist/types/builder/tools/element-edit/common.d.ts +23 -0
  79. package/dist/types/builder/tools/element-edit/countdown.d.ts +1 -0
  80. package/dist/types/builder/tools/element-edit/coupon.d.ts +19 -0
  81. package/dist/types/builder/tools/element-edit/embroidery.d.ts +9 -0
  82. package/dist/types/builder/tools/element-edit/filterResults.d.ts +10 -0
  83. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +19 -0
  84. package/dist/types/builder/tools/element-edit/icon-list.d.ts +31 -0
  85. package/dist/types/builder/tools/element-edit/iconInstace.d.ts +1 -0
  86. package/dist/types/builder/tools/element-edit/iconLibrary.d.ts +2 -7
  87. package/dist/types/builder/tools/element-edit/kitDetails.d.ts +19 -0
  88. package/dist/types/builder/tools/element-edit/kits.d.ts +9 -0
  89. package/dist/types/builder/tools/element-edit/language-menu.d.ts +0 -1
  90. package/dist/types/builder/tools/element-edit/orderStatus.d.ts +320 -168
  91. package/dist/types/builder/tools/element-edit/quickLinks.d.ts +10 -0
  92. package/dist/types/builder/tools/element-edit/quotaDetails.d.ts +1 -0
  93. package/dist/types/builder/tools/element-edit/rfqs.d.ts +5 -0
  94. package/dist/types/builder/tools/element-edit/scroll.d.ts +1 -0
  95. package/dist/types/builder/tools/element-edit/shipping-payments.d.ts +2 -0
  96. package/dist/types/builder/tools/element-edit/social.d.ts +1 -0
  97. package/dist/types/builder/tools/element-edit/table.d.ts +1 -0
  98. package/dist/types/builder/tools/element-edit/tabs.d.ts +18 -0
  99. package/dist/types/builder/tools/element-edit/tabsV2.d.ts +17 -0
  100. package/dist/types/builder/tools/element-edit/userElements.d.ts +197 -7
  101. package/dist/types/builder/tools/element-edit/video.d.ts +2 -0
  102. package/dist/user-elements.scss +263 -221
  103. package/dist/variant-picker.scss +2 -0
  104. package/dist/video.scss +2 -0
  105. package/dist/volume-pricing.scss +3 -0
  106. package/package.json +1 -1
package/dist/badge.scss CHANGED
@@ -1,388 +1,396 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
- @use "./functions.scss" as *;
4
-
5
- $resizerId: "[data-cms-tool='cms-element-resizer']";
6
- $resizeActive: '[data-cms-element-resizer="true"]';
7
- [data-div-type="element"] {
8
- &[data-element-type="badge"] {
9
- margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
10
- padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
11
- min-width: 100px;
12
- &.vtl {
13
- min-height: 100px !important;
14
- min-width: 30px;
15
- height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
16
- width: auto;
17
- .badge__wrapper {
18
- flex-direction: column;
19
- justify-content: center;
20
- align-items: center;
21
- width: fit-content;
22
-
23
- .status_badge {
24
- flex-direction: column;
25
- align-items: center;
26
- justify-content: center;
27
- width: 26px;
28
- padding: 0px 24px 24px;
29
- &[data-styletag="style1"] {
30
- border-radius: 12px;
31
- font-weight: bold;
32
- white-space: nowrap;
33
- border: 2px solid #fff;
34
- text-transform: uppercase;
35
- }
36
- &[data-styletag="style2"] {
37
- text-transform: uppercase;
38
- //clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
39
- clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0% 100%);
40
- }
41
-
42
- &[data-styletag="style3"] {
43
- clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0% 100%);
44
- }
45
- &[data-styletag="style4"] {
46
- clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
47
- }
48
- &[data-styletag="style5"] {
49
- clip-path: polygon(0% 10%, 50% 0%, 100% 10%, 100% 90%, 50% 100%, 0% 90%);
50
- }
51
-
52
- .product_tag {
53
- //writing-mode: vertical-rl;
54
- //transform: rotate(180deg); // top-to-bottom vertical text
55
- }
56
-
57
- .icon {
58
- margin-bottom: 4px;
59
- }
60
- }
61
- }
62
- }
63
- &.hrz {
64
- min-height: 30px !important;
65
- min-width: 100px !important;
66
- height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
67
- .badge__wrapper {
68
- flex-direction: row;
69
- justify-content: center;
70
- align-items: center;
71
-
72
- .status_badge {
73
- flex-direction: row;
74
- align-items: center;
75
- justify-content: center;
76
- padding: 8px 12px;
77
- &[data-styletag="style1"] {
78
- border-radius: 12px;
79
- font-weight: bold;
80
- white-space: nowrap;
81
- border: 2px solid #fff;
82
- text-transform: uppercase;
83
- }
84
- &[data-styletag="style2"] {
85
- text-transform: uppercase;
86
- white-space: nowrap;
87
- clip-path: polygon(0 0, 80% 0, 80% 100%, 0% 100%, 10% 50%);
88
- }
89
-
90
- &[data-styletag="style3"] {
91
- clip-path: polygon(20% 0, 100% 0, 90% 50%, 100% 100%, 20% 100%);
92
- }
93
-
94
- &[data-styletag="style4"] {
95
- clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
96
- }
97
- &[data-styletag="style5"] {
98
- clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
99
- }
100
-
101
- .product_tag {
102
- white-space: nowrap;
103
- text-align: center;
104
- }
105
-
106
- .icon {
107
- margin-right: 6px;
108
- }
109
- }
110
- }
111
- }
112
- & > div {
113
- &.wrapper {
114
- //width: 100%;
115
- height: 100%;
116
- }
117
- }
118
- .badge__wrapper {
119
- display: flex;
120
- align-items: center;
121
- align-self: stretch;
122
- justify-content: var(--_sf-hr-at, prepareMediaVariable(--_ctm-dn-be-ct-dt-se-at));
123
- gap: prepareMediaVariable(--_ctm-lt-im-gp);
124
- // width: 100%;
125
- // height: 100%;
126
-
127
- .status_badge {
128
- display: flex;
129
- align-items: center;
130
- gap: prepareMediaVariable(--_ctm-lt-sg-bn-is);
131
- width: 100%;
132
- height: 100%;
133
- mix-blend-mode: multiply;
134
-
135
- // &[data-styletag="style7"] {
136
- // clip-path: polygon(0 0, 80% 0, 85% 50%, 80% 100%, 0 100%, 5% 50%);
137
- // display: flex;
138
- // justify-content: space-evenly;
139
- // align-items: center;
140
- // }
141
- // &[data-styletag="style6"] {
142
- // clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
143
- // line-height: 1.3;
144
- // }
145
-
146
- &[data-producttag="New"] {
147
- background-color: prepareMediaVariable(--_ctm-dn-be-nw-se-bd-cr);
148
- border-width: prepareMediaVariable(--_ctm-dn-be-nw-se-br-wh);
149
- border-color: prepareMediaVariable(--_ctm-dn-be-nw-se-br-cr);
150
- border-style: prepareMediaVariable(--_ctm-dn-be-nw-se-br-se);
151
- border-radius: prepareMediaVariable(--_ctm-dn-be-nw-se-br-rs);
152
- box-shadow: prepareMediaVariable(--_ctm-dn-be-nw-se-sw-ae)
153
- prepareMediaVariable(--_ctm-dn-be-nw-se-sw-br)
154
- prepareMediaVariable(--_ctm-dn-be-nw-se-sw-sd)
155
- prepareMediaVariable(--_ctm-dn-be-nw-se-sw-cr);
156
- .icon {
157
- display: var(--_hover-show-icon, var(--_show-icon, flex));
158
- svg {
159
- width: prepareMediaVariable(--_ctm-dn-be-nw-se-in-se);
160
- height: prepareMediaVariable(--_ctm-dn-be-nw-se-in-se);
161
- path {
162
- stroke: prepareMediaVariable(--_ctm-dn-be-nw-se-in-c1);
163
- }
164
- }
165
- }
166
- }
167
- &[data-producttag="Bestseller"] {
168
- //background-color: #f57c00;
169
- background-color: prepareMediaVariable(--_ctm-dn-be-br-se-bd-cr);
170
- border-width: prepareMediaVariable(--_ctm-dn-be-br-se-br-wh);
171
- border-color: prepareMediaVariable(--_ctm-dn-be-br-se-br-cr);
172
- border-style: prepareMediaVariable(--_ctm-dn-be-br-se-br-se);
173
- border-radius: prepareMediaVariable(--_ctm-dn-be-br-se-br-rs);
174
- box-shadow: prepareMediaVariable(--_ctm-dn-be-br-se-sw-ae)
175
- prepareMediaVariable(--_ctm-dn-be-br-se-sw-br)
176
- prepareMediaVariable(--_ctm-dn-be-br-se-sw-sd)
177
- prepareMediaVariable(--_ctm-dn-be-br-se-sw-cr);
178
- .icon {
179
- display: var(--_hover-show-icon, var(--_show-icon, flex));
180
- svg {
181
- width: prepareMediaVariable(--_ctm-dn-be-br-se-in-se);
182
- height: prepareMediaVariable(--_ctm-dn-be-br-se-in-se);
183
-
184
- path {
185
- stroke: prepareMediaVariable(--_ctm-dn-be-br-se-in-c1);
186
- }
187
- }
188
- }
189
- }
190
- &[data-producttag="Limited"] {
191
- //background-color: #6a1b9a;
192
- background-color: prepareMediaVariable(--_ctm-dn-be-ld-se-bd-cr);
193
- border-width: prepareMediaVariable(--_ctm-dn-be-ld-se-br-wh);
194
- border-color: prepareMediaVariable(--_ctm-dn-be-ld-se-br-cr);
195
- border-style: prepareMediaVariable(--_ctm-dn-be-ld-se-br-se);
196
- border-radius: prepareMediaVariable(--_ctm-dn-be-ld-se-br-rs);
197
- box-shadow: prepareMediaVariable(--_ctm-dn-be-ld-se-sw-ae)
198
- prepareMediaVariable(--_ctm-dn-be-ld-se-sw-br)
199
- prepareMediaVariable(--_ctm-dn-be-ld-se-sw-sd)
200
- prepareMediaVariable(--_ctm-dn-be-ld-se-sw-cr);
201
- .icon {
202
- display: var(--_hover-show-icon, var(--_show-icon, flex));
203
- svg {
204
- width: prepareMediaVariable(--_ctm-dn-be-ld-se-in-se);
205
- height: prepareMediaVariable(--_ctm-dn-be-ld-se-in-se);
206
-
207
- path {
208
- stroke: prepareMediaVariable(--_ctm-dn-be-ld-se-in-c1);
209
- }
210
- }
211
- }
212
- }
213
- &[data-producttag="Exclusive"] {
214
- //background-color: #1976d2;
215
- background-color: prepareMediaVariable(--_ctm-dn-be-ee-se-bd-cr);
216
- border-width: prepareMediaVariable(--_ctm-dn-be-ee-se-br-wh);
217
- border-color: prepareMediaVariable(--_ctm-dn-be-ee-se-br-cr);
218
- border-style: prepareMediaVariable(--_ctm-dn-be-ee-se-br-se);
219
- border-radius: prepareMediaVariable(--_ctm-dn-be-ee-se-br-rs);
220
- box-shadow: prepareMediaVariable(--_ctm-dn-be-ee-se-sw-ae)
221
- prepareMediaVariable(--_ctm-dn-be-ee-se-sw-br)
222
- prepareMediaVariable(--_ctm-dn-be-ee-se-sw-sd)
223
- prepareMediaVariable(--_ctm-dn-be-ee-se-sw-cr);
224
- .icon {
225
- display: var(--_hover-show-icon, var(--_show-icon, flex));
226
- svg {
227
- width: prepareMediaVariable(--_ctm-dn-be-ee-se-in-se);
228
- height: prepareMediaVariable(--_ctm-dn-be-ee-se-in-se);
229
-
230
- path {
231
- stroke: prepareMediaVariable(--_ctm-dn-be-ee-se-in-c1);
232
- }
233
- }
234
- }
235
- }
236
-
237
- .product_tag {
238
- &[data-producttag="New"] {
239
- font-family: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-fy);
240
- font-size: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-se);
241
- color: prepareMediaVariable(--_ctm-dn-be-nw-se-cr);
242
- font-weight: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-wt);
243
- font-style: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-se-ic);
244
- text-decoration: prepareMediaVariable(--_ctm-dn-be-nw-se-ue);
245
- text-align: prepareMediaVariable(--_ctm-dn-be-nw-se-tt-an);
246
- letter-spacing: prepareMediaVariable(--_ctm-dn-be-nw-se-lr-sg);
247
- line-height: prepareMediaVariable(--_ctm-dn-be-nw-se-le-ht);
248
- }
249
- &[data-producttag="Bestseller"] {
250
- font-family: prepareMediaVariable(--_ctm-dn-be-br-se-ft-fy);
251
- font-size: prepareMediaVariable(--_ctm-dn-be-br-se-ft-se);
252
- color: prepareMediaVariable(--_ctm-dn-be-br-se-cr);
253
- font-weight: prepareMediaVariable(--_ctm-dn-be-br-se-ft-wt);
254
- font-style: prepareMediaVariable(--_ctm-dn-be-br-se-ft-se-ic);
255
- text-decoration: prepareMediaVariable(--_ctm-dn-be-br-se-ue);
256
- text-align: prepareMediaVariable(--_ctm-dn-be-br-se-tt-an);
257
- letter-spacing: prepareMediaVariable(--_ctm-dn-be-br-se-lr-sg);
258
- line-height: prepareMediaVariable(--_ctm-dn-be-br-se-le-ht);
259
- }
260
- &[data-producttag="Limited"] {
261
- font-family: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-fy);
262
- font-size: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-se);
263
- color: prepareMediaVariable(--_ctm-dn-be-ld-se-cr);
264
- font-weight: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-wt);
265
- font-style: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-se-ic);
266
- text-decoration: prepareMediaVariable(--_ctm-dn-be-ld-se-ue);
267
- text-align: prepareMediaVariable(--_ctm-dn-be-ld-se-tt-an);
268
- letter-spacing: prepareMediaVariable(--_ctm-dn-be-ld-se-lr-sg);
269
- line-height: prepareMediaVariable(--_ctm-dn-be-ld-se-le-ht);
270
- }
271
- &[data-producttag="Exclusive"] {
272
- font-family: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-fy);
273
- font-size: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-se);
274
- color: prepareMediaVariable(--_ctm-dn-be-ee-se-cr);
275
- font-weight: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-wt);
276
- font-style: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-se-ic);
277
- text-decoration: prepareMediaVariable(--_ctm-dn-be-ee-se-ue);
278
- text-align: prepareMediaVariable(--_ctm-dn-be-ee-se-tt-an);
279
- letter-spacing: prepareMediaVariable(--_ctm-dn-be-ee-se-lr-sg);
280
- line-height: prepareMediaVariable(--_ctm-dn-be-ee-se-le-ht);
281
- }
282
- }
283
- }
284
- .badge_vertical_pill {
285
- background-color: #4caf50;
286
- color: #fff;
287
- padding: 10px 8px;
288
- border-radius: 12px;
289
- font-weight: bold;
290
- writing-mode: vertical-rl;
291
- text-align: center;
292
- font-size: 16px;
293
- white-space: nowrap;
294
- border: 2px solid #fff;
295
- }
296
- .badge_big_sale {
297
- background-color: #ffa726;
298
- color: #fff;
299
- display: flex;
300
- align-items: center;
301
- font-weight: bold;
302
- font-size: 14px;
303
- text-transform: uppercase;
304
- padding: 6px 12px;
305
- white-space: nowrap;
306
- clip-path: polygon(0 0, 80% 0, 80% 100%, 0% 100%, 10% 50%);
307
- gap: 8px;
308
-
309
- .left {
310
- font-size: 16px;
311
- }
312
-
313
- .right {
314
- font-size: 12px;
315
- font-weight: normal;
316
- }
317
- }
318
- .badge_bogo {
319
- background-color: #d5a373;
320
- color: #fff;
321
- padding: 6px 16px;
322
- clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
323
- font-weight: bold;
324
- font-size: 14px;
325
- display: inline-block;
326
- text-transform: uppercase;
327
- white-space: nowrap;
328
- border: 2px dashed #fff;
329
- }
330
- .badgerightarrow {
331
- background-color: #c49b6c;
332
- color: white;
333
- padding: 6px 12px;
334
- clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
335
- font-weight: bold;
336
- font-size: 14px;
337
- }
338
- .badgebigsale {
339
- background-color: #ff9800;
340
- color: white;
341
- padding: 6px 14px;
342
- clip-path: polygon(0 0, 80% 0, 85% 50%, 80% 100%, 0 100%, 5% 50%);
343
- display: flex;
344
- justify-content: space-between;
345
- align-items: center;
346
- font-weight: bold;
347
-
348
- .label {
349
- font-size: 16px;
350
- }
351
-
352
- .offer {
353
- font-size: 12px;
354
- }
355
- }
356
- .badge_verticalpill {
357
- writing-mode: vertical-rl;
358
- text-align: center;
359
- background-color: #4caf50;
360
- color: white;
361
- padding: 12px 4px;
362
- border-radius: 10px;
363
- font-weight: bold;
364
- font-size: 14px;
365
- }
366
- .badge_tail_down {
367
- background-color: #8bc34a;
368
- color: white;
369
- padding: 10px 8px;
370
- clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
371
- text-align: center;
372
- font-weight: bold;
373
- font-size: 14px;
374
- line-height: 1.3;
375
- }
376
- .badge_ribbon {
377
- background-color: #d2b48c;
378
- color: white;
379
- font-weight: bold;
380
- font-size: 14px;
381
- padding: 6px 12px;
382
- clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
383
- transform: rotate(-5deg);
384
- text-align: center;
385
- }
386
- }
387
- }
388
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
6
+ $resizeActive: '[data-cms-element-resizer="true"]';
7
+ [data-div-type="element"] {
8
+ &[data-element-type="badge"] {
9
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
10
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
11
+ min-width: 100px;
12
+ &.vtl {
13
+ min-height: 100px !important;
14
+ min-width: 30px;
15
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
16
+ width: auto;
17
+ .badge__wrapper {
18
+ flex-direction: column;
19
+ justify-content: center;
20
+ align-items: center;
21
+ width: fit-content;
22
+
23
+ .status_badge {
24
+ flex-direction: column;
25
+ align-items: center;
26
+ justify-content: center;
27
+ width: 26px;
28
+ padding: 0px 24px 24px;
29
+ &[data-styletag="style1"] {
30
+ border-radius: 12px;
31
+ font-weight: bold;
32
+ white-space: nowrap;
33
+ border: 2px solid #fff;
34
+ text-transform: uppercase;
35
+ }
36
+ &[data-styletag="style2"] {
37
+ text-transform: uppercase;
38
+ //clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
39
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0% 100%);
40
+ }
41
+
42
+ &[data-styletag="style3"] {
43
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0% 100%);
44
+ }
45
+ &[data-styletag="style4"] {
46
+ clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
47
+ }
48
+ &[data-styletag="style5"] {
49
+ clip-path: polygon(0% 10%, 50% 0%, 100% 10%, 100% 90%, 50% 100%, 0% 90%);
50
+ }
51
+
52
+ .product_tag {
53
+ //writing-mode: vertical-rl;
54
+ //transform: rotate(180deg); // top-to-bottom vertical text
55
+ }
56
+
57
+ .icon {
58
+ margin-bottom: 4px;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ &.hrz {
64
+ min-height: 30px !important;
65
+ min-width: 100px !important;
66
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
67
+ .badge__wrapper {
68
+ flex-direction: row;
69
+ justify-content: center;
70
+ align-items: center;
71
+
72
+ .status_badge {
73
+ flex-direction: row;
74
+ align-items: center;
75
+ justify-content: center;
76
+ padding: 8px 12px;
77
+ &[data-styletag="style1"] {
78
+ border-radius: 12px;
79
+ font-weight: bold;
80
+ white-space: nowrap;
81
+ border: 2px solid #fff;
82
+ text-transform: uppercase;
83
+ }
84
+ &[data-styletag="style2"] {
85
+ text-transform: uppercase;
86
+ white-space: nowrap;
87
+ clip-path: polygon(0 0, 80% 0, 80% 100%, 0% 100%, 10% 50%);
88
+ }
89
+
90
+ &[data-styletag="style3"] {
91
+ clip-path: polygon(20% 0, 100% 0, 90% 50%, 100% 100%, 20% 100%);
92
+ }
93
+
94
+ &[data-styletag="style4"] {
95
+ clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
96
+ }
97
+ &[data-styletag="style5"] {
98
+ clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
99
+ }
100
+
101
+ .product_tag {
102
+ white-space: nowrap;
103
+ text-align: center;
104
+ }
105
+
106
+ .icon {
107
+ margin-right: 6px;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ & > div {
113
+ &.wrapper {
114
+ //width: 100%;
115
+ height: 100%;
116
+ }
117
+ }
118
+ .badge__wrapper {
119
+ display: flex;
120
+ align-items: center;
121
+ align-self: stretch;
122
+ justify-content: var(--_sf-hr-at, prepareMediaVariable(--_ctm-dn-be-ct-dt-se-at));
123
+ gap: prepareMediaVariable(--_ctm-lt-im-gp);
124
+ // width: 100%;
125
+ // height: 100%;
126
+
127
+ .status_badge {
128
+ display: flex;
129
+ align-items: center;
130
+ gap: prepareMediaVariable(--_ctm-lt-sg-bn-is);
131
+ width: 100%;
132
+ height: 100%;
133
+ mix-blend-mode: multiply;
134
+
135
+ // &[data-styletag="style7"] {
136
+ // clip-path: polygon(0 0, 80% 0, 85% 50%, 80% 100%, 0 100%, 5% 50%);
137
+ // display: flex;
138
+ // justify-content: space-evenly;
139
+ // align-items: center;
140
+ // }
141
+ // &[data-styletag="style6"] {
142
+ // clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
143
+ // line-height: 1.3;
144
+ // }
145
+
146
+ &[data-producttag="New"] {
147
+ background-color: prepareMediaVariable(--_ctm-dn-be-nw-se-bd-cr);
148
+ border-width: prepareMediaVariable(--_ctm-dn-be-nw-se-br-wh);
149
+ border-color: prepareMediaVariable(--_ctm-dn-be-nw-se-br-cr);
150
+ border-style: prepareMediaVariable(--_ctm-dn-be-nw-se-br-se);
151
+ border-radius: prepareMediaVariable(--_ctm-dn-be-nw-se-br-rs);
152
+ box-shadow: prepareMediaVariable(--_ctm-dn-be-nw-se-sw-ae)
153
+ prepareMediaVariable(--_ctm-dn-be-nw-se-sw-br)
154
+ prepareMediaVariable(--_ctm-dn-be-nw-se-sw-sd)
155
+ prepareMediaVariable(--_ctm-dn-be-nw-se-sw-cr);
156
+ .icon {
157
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
158
+ svg {
159
+ width: prepareMediaVariable(--_ctm-dn-be-nw-se-in-se);
160
+ height: prepareMediaVariable(--_ctm-dn-be-nw-se-in-se);
161
+ path {
162
+ stroke: prepareMediaVariable(--_ctm-dn-be-nw-se-in-c1);
163
+ // Overrides the stroke-width presentation attribute baked into the icon markup.
164
+ stroke-width: prepareMediaVariable(--_ctm-dn-be-nw-se-se-wh, 1.25);
165
+ }
166
+ }
167
+ }
168
+ }
169
+ &[data-producttag="Bestseller"] {
170
+ //background-color: #f57c00;
171
+ background-color: prepareMediaVariable(--_ctm-dn-be-br-se-bd-cr);
172
+ border-width: prepareMediaVariable(--_ctm-dn-be-br-se-br-wh);
173
+ border-color: prepareMediaVariable(--_ctm-dn-be-br-se-br-cr);
174
+ border-style: prepareMediaVariable(--_ctm-dn-be-br-se-br-se);
175
+ border-radius: prepareMediaVariable(--_ctm-dn-be-br-se-br-rs);
176
+ box-shadow: prepareMediaVariable(--_ctm-dn-be-br-se-sw-ae)
177
+ prepareMediaVariable(--_ctm-dn-be-br-se-sw-br)
178
+ prepareMediaVariable(--_ctm-dn-be-br-se-sw-sd)
179
+ prepareMediaVariable(--_ctm-dn-be-br-se-sw-cr);
180
+ .icon {
181
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
182
+ svg {
183
+ width: prepareMediaVariable(--_ctm-dn-be-br-se-in-se);
184
+ height: prepareMediaVariable(--_ctm-dn-be-br-se-in-se);
185
+
186
+ path {
187
+ stroke: prepareMediaVariable(--_ctm-dn-be-br-se-in-c1);
188
+ // Overrides the stroke-width presentation attribute baked into the icon markup.
189
+ stroke-width: prepareMediaVariable(--_ctm-dn-be-br-se-se-wh, 1.25);
190
+ }
191
+ }
192
+ }
193
+ }
194
+ &[data-producttag="Limited"] {
195
+ //background-color: #6a1b9a;
196
+ background-color: prepareMediaVariable(--_ctm-dn-be-ld-se-bd-cr);
197
+ border-width: prepareMediaVariable(--_ctm-dn-be-ld-se-br-wh);
198
+ border-color: prepareMediaVariable(--_ctm-dn-be-ld-se-br-cr);
199
+ border-style: prepareMediaVariable(--_ctm-dn-be-ld-se-br-se);
200
+ border-radius: prepareMediaVariable(--_ctm-dn-be-ld-se-br-rs);
201
+ box-shadow: prepareMediaVariable(--_ctm-dn-be-ld-se-sw-ae)
202
+ prepareMediaVariable(--_ctm-dn-be-ld-se-sw-br)
203
+ prepareMediaVariable(--_ctm-dn-be-ld-se-sw-sd)
204
+ prepareMediaVariable(--_ctm-dn-be-ld-se-sw-cr);
205
+ .icon {
206
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
207
+ svg {
208
+ width: prepareMediaVariable(--_ctm-dn-be-ld-se-in-se);
209
+ height: prepareMediaVariable(--_ctm-dn-be-ld-se-in-se);
210
+
211
+ path {
212
+ stroke: prepareMediaVariable(--_ctm-dn-be-ld-se-in-c1);
213
+ // Overrides the stroke-width presentation attribute baked into the icon markup.
214
+ stroke-width: prepareMediaVariable(--_ctm-dn-be-ld-se-se-wh, 1.25);
215
+ }
216
+ }
217
+ }
218
+ }
219
+ &[data-producttag="Exclusive"] {
220
+ //background-color: #1976d2;
221
+ background-color: prepareMediaVariable(--_ctm-dn-be-ee-se-bd-cr);
222
+ border-width: prepareMediaVariable(--_ctm-dn-be-ee-se-br-wh);
223
+ border-color: prepareMediaVariable(--_ctm-dn-be-ee-se-br-cr);
224
+ border-style: prepareMediaVariable(--_ctm-dn-be-ee-se-br-se);
225
+ border-radius: prepareMediaVariable(--_ctm-dn-be-ee-se-br-rs);
226
+ box-shadow: prepareMediaVariable(--_ctm-dn-be-ee-se-sw-ae)
227
+ prepareMediaVariable(--_ctm-dn-be-ee-se-sw-br)
228
+ prepareMediaVariable(--_ctm-dn-be-ee-se-sw-sd)
229
+ prepareMediaVariable(--_ctm-dn-be-ee-se-sw-cr);
230
+ .icon {
231
+ display: var(--_hover-show-icon, var(--_show-icon, flex));
232
+ svg {
233
+ width: prepareMediaVariable(--_ctm-dn-be-ee-se-in-se);
234
+ height: prepareMediaVariable(--_ctm-dn-be-ee-se-in-se);
235
+
236
+ path {
237
+ stroke: prepareMediaVariable(--_ctm-dn-be-ee-se-in-c1);
238
+ // Overrides the stroke-width presentation attribute baked into the icon markup.
239
+ stroke-width: prepareMediaVariable(--_ctm-dn-be-ee-se-se-wh, 1.25);
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+ .product_tag {
246
+ &[data-producttag="New"] {
247
+ font-family: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-fy);
248
+ font-size: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-se);
249
+ color: prepareMediaVariable(--_ctm-dn-be-nw-se-cr);
250
+ font-weight: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-wt);
251
+ font-style: prepareMediaVariable(--_ctm-dn-be-nw-se-ft-se-ic);
252
+ text-decoration: prepareMediaVariable(--_ctm-dn-be-nw-se-ue);
253
+ text-align: prepareMediaVariable(--_ctm-dn-be-nw-se-tt-an);
254
+ letter-spacing: prepareMediaVariable(--_ctm-dn-be-nw-se-lr-sg);
255
+ line-height: prepareMediaVariable(--_ctm-dn-be-nw-se-le-ht);
256
+ }
257
+ &[data-producttag="Bestseller"] {
258
+ font-family: prepareMediaVariable(--_ctm-dn-be-br-se-ft-fy);
259
+ font-size: prepareMediaVariable(--_ctm-dn-be-br-se-ft-se);
260
+ color: prepareMediaVariable(--_ctm-dn-be-br-se-cr);
261
+ font-weight: prepareMediaVariable(--_ctm-dn-be-br-se-ft-wt);
262
+ font-style: prepareMediaVariable(--_ctm-dn-be-br-se-ft-se-ic);
263
+ text-decoration: prepareMediaVariable(--_ctm-dn-be-br-se-ue);
264
+ text-align: prepareMediaVariable(--_ctm-dn-be-br-se-tt-an);
265
+ letter-spacing: prepareMediaVariable(--_ctm-dn-be-br-se-lr-sg);
266
+ line-height: prepareMediaVariable(--_ctm-dn-be-br-se-le-ht);
267
+ }
268
+ &[data-producttag="Limited"] {
269
+ font-family: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-fy);
270
+ font-size: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-se);
271
+ color: prepareMediaVariable(--_ctm-dn-be-ld-se-cr);
272
+ font-weight: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-wt);
273
+ font-style: prepareMediaVariable(--_ctm-dn-be-ld-se-ft-se-ic);
274
+ text-decoration: prepareMediaVariable(--_ctm-dn-be-ld-se-ue);
275
+ text-align: prepareMediaVariable(--_ctm-dn-be-ld-se-tt-an);
276
+ letter-spacing: prepareMediaVariable(--_ctm-dn-be-ld-se-lr-sg);
277
+ line-height: prepareMediaVariable(--_ctm-dn-be-ld-se-le-ht);
278
+ }
279
+ &[data-producttag="Exclusive"] {
280
+ font-family: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-fy);
281
+ font-size: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-se);
282
+ color: prepareMediaVariable(--_ctm-dn-be-ee-se-cr);
283
+ font-weight: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-wt);
284
+ font-style: prepareMediaVariable(--_ctm-dn-be-ee-se-ft-se-ic);
285
+ text-decoration: prepareMediaVariable(--_ctm-dn-be-ee-se-ue);
286
+ text-align: prepareMediaVariable(--_ctm-dn-be-ee-se-tt-an);
287
+ letter-spacing: prepareMediaVariable(--_ctm-dn-be-ee-se-lr-sg);
288
+ line-height: prepareMediaVariable(--_ctm-dn-be-ee-se-le-ht);
289
+ }
290
+ }
291
+ }
292
+ .badge_vertical_pill {
293
+ background-color: #4caf50;
294
+ color: #fff;
295
+ padding: 10px 8px;
296
+ border-radius: 12px;
297
+ font-weight: bold;
298
+ writing-mode: vertical-rl;
299
+ text-align: center;
300
+ font-size: 16px;
301
+ white-space: nowrap;
302
+ border: 2px solid #fff;
303
+ }
304
+ .badge_big_sale {
305
+ background-color: #ffa726;
306
+ color: #fff;
307
+ display: flex;
308
+ align-items: center;
309
+ font-weight: bold;
310
+ font-size: 14px;
311
+ text-transform: uppercase;
312
+ padding: 6px 12px;
313
+ white-space: nowrap;
314
+ clip-path: polygon(0 0, 80% 0, 80% 100%, 0% 100%, 10% 50%);
315
+ gap: 8px;
316
+
317
+ .left {
318
+ font-size: 16px;
319
+ }
320
+
321
+ .right {
322
+ font-size: 12px;
323
+ font-weight: normal;
324
+ }
325
+ }
326
+ .badge_bogo {
327
+ background-color: #d5a373;
328
+ color: #fff;
329
+ padding: 6px 16px;
330
+ clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
331
+ font-weight: bold;
332
+ font-size: 14px;
333
+ display: inline-block;
334
+ text-transform: uppercase;
335
+ white-space: nowrap;
336
+ border: 2px dashed #fff;
337
+ }
338
+ .badgerightarrow {
339
+ background-color: #c49b6c;
340
+ color: white;
341
+ padding: 6px 12px;
342
+ clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
343
+ font-weight: bold;
344
+ font-size: 14px;
345
+ }
346
+ .badgebigsale {
347
+ background-color: #ff9800;
348
+ color: white;
349
+ padding: 6px 14px;
350
+ clip-path: polygon(0 0, 80% 0, 85% 50%, 80% 100%, 0 100%, 5% 50%);
351
+ display: flex;
352
+ justify-content: space-between;
353
+ align-items: center;
354
+ font-weight: bold;
355
+
356
+ .label {
357
+ font-size: 16px;
358
+ }
359
+
360
+ .offer {
361
+ font-size: 12px;
362
+ }
363
+ }
364
+ .badge_verticalpill {
365
+ writing-mode: vertical-rl;
366
+ text-align: center;
367
+ background-color: #4caf50;
368
+ color: white;
369
+ padding: 12px 4px;
370
+ border-radius: 10px;
371
+ font-weight: bold;
372
+ font-size: 14px;
373
+ }
374
+ .badge_tail_down {
375
+ background-color: #8bc34a;
376
+ color: white;
377
+ padding: 10px 8px;
378
+ clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
379
+ text-align: center;
380
+ font-weight: bold;
381
+ font-size: 14px;
382
+ line-height: 1.3;
383
+ }
384
+ .badge_ribbon {
385
+ background-color: #d2b48c;
386
+ color: white;
387
+ font-weight: bold;
388
+ font-size: 14px;
389
+ padding: 6px 12px;
390
+ clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
391
+ transform: rotate(-5deg);
392
+ text-align: center;
393
+ }
394
+ }
395
+ }
396
+ }