@sc-360-v2/storefront-cms-library 0.4.47 → 0.4.50

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 (185) hide show
  1. package/dist/add-existing-form.scss +66 -66
  2. package/dist/add-order.scss +377 -377
  3. package/dist/add-products-tab copy.scss +1132 -1132
  4. package/dist/add-products-tab-details.scss +3818 -0
  5. package/dist/add-products-tab.scss +968 -3031
  6. package/dist/allocationDetails.scss +2247 -2247
  7. package/dist/allocations.scss +1603 -1604
  8. package/dist/amount-estimator.scss +1083 -1083
  9. package/dist/animation-control.scss +23 -23
  10. package/dist/badge.scss +388 -388
  11. package/dist/brand-basic-elements.scss +292 -292
  12. package/dist/brand.scss +93 -93
  13. package/dist/breadcrumbs.scss +802 -802
  14. package/dist/builder.js +1 -1
  15. package/dist/bulk-order-pad.scss +677 -677
  16. package/dist/bulk-variant-picker copy.scss +1121 -1121
  17. package/dist/bulk-variant-picker.scss +3294 -3092
  18. package/dist/bundle copy.scss +2805 -2805
  19. package/dist/bundle.scss +2383 -2383
  20. package/dist/bundleDetails copy.scss +1431 -1431
  21. package/dist/bundleDetails.scss +3320 -3285
  22. package/dist/button copy.scss +271 -271
  23. package/dist/button.scss +292 -292
  24. package/dist/buy-for-tab-container.scss +90 -90
  25. package/dist/buy-for-tab.scss +3 -4
  26. package/dist/buy-for-tabs-container-item.scss +80 -80
  27. package/dist/buyForHeaders.scss +6718 -6718
  28. package/dist/buyForPopup.scss +70 -52
  29. package/dist/cart-details.scss +3207 -2386
  30. package/dist/cart-products-sidebar.scss +211 -211
  31. package/dist/cart-summary.scss +2728 -2728
  32. package/dist/cart-wrapper.scss +127 -127
  33. package/dist/cart.scss +269 -269
  34. package/dist/cartAttributes.scss +935 -903
  35. package/dist/cartDropdownOverlay.scss +514 -231
  36. package/dist/cartGrouping.scss +89 -89
  37. package/dist/category-groups-element.scss +138 -138
  38. package/dist/category.scss +73 -73
  39. package/dist/categoryDetails.scss +61 -61
  40. package/dist/categoryWidget.scss +34 -34
  41. package/dist/checkbox-radio.scss +124 -124
  42. package/dist/checkout.scss +6460 -6569
  43. package/dist/code-temp.scss +58 -58
  44. package/dist/colorpicker_v2.scss +52 -52
  45. package/dist/common-element.scss +35 -35
  46. package/dist/confirm-modal.scss +351 -351
  47. package/dist/confirmationModal.scss +139 -139
  48. package/dist/contact-us.scss +105 -105
  49. package/dist/container.scss +114 -114
  50. package/dist/countdown.scss +751 -751
  51. package/dist/coupon.scss +1254 -1254
  52. package/dist/custom-fonts.scss +100 -100
  53. package/dist/customization-tree.scss +160 -160
  54. package/dist/default-dropdown.scss +240 -240
  55. package/dist/dropdownTemplate.scss +98 -46
  56. package/dist/editCartItem.scss +111 -111
  57. package/dist/embed-temp.scss +72 -72
  58. package/dist/embroider-preview-element.scss +94 -94
  59. package/dist/embroider-template-1-v2.scss +937 -937
  60. package/dist/embroider-template-1.scss +482 -482
  61. package/dist/embroidery.scss +213 -213
  62. package/dist/employee-bulk-order.scss +4057 -4057
  63. package/dist/emtpy-templates.scss +165 -165
  64. package/dist/faq.scss +564 -564
  65. package/dist/fb-dropdown.scss +125 -125
  66. package/dist/filter-results.scss +323 -323
  67. package/dist/filters.scss +2418 -2418
  68. package/dist/flex-text-editor.scss +271 -271
  69. package/dist/form-preview.scss +290 -290
  70. package/dist/form-zindex-module.scss +24 -24
  71. package/dist/gallery-slider-temp.scss +1234 -1234
  72. package/dist/global-styles.scss +86 -86
  73. package/dist/grid.scss +119 -119
  74. package/dist/hotspot.scss +397 -397
  75. package/dist/icon-library.scss +74 -74
  76. package/dist/icon-list.scss +268 -268
  77. package/dist/image-for-product.scss +21 -21
  78. package/dist/image-temp.scss +168 -168
  79. package/dist/item-stock.scss +87 -87
  80. package/dist/language-selector.scss +528 -558
  81. package/dist/layouter-item.scss +89 -89
  82. package/dist/layouter-pro-item.scss +80 -80
  83. package/dist/layouter-pro.scss +88 -88
  84. package/dist/layouter.scss +294 -294
  85. package/dist/light-box-v2.scss +105 -105
  86. package/dist/lightbox.scss +78 -78
  87. package/dist/line.scss +166 -166
  88. package/dist/loader.scss +37 -37
  89. package/dist/login.scss +1473 -1473
  90. package/dist/map.scss +962 -962
  91. package/dist/marchandiserSets.scss +60 -60
  92. package/dist/mega-menu-container.scss +99 -99
  93. package/dist/mega-menu.scss +838 -838
  94. package/dist/menu-item.scss +19 -19
  95. package/dist/menu-v2.scss +730 -730
  96. package/dist/menu.scss +162 -162
  97. package/dist/modal.scss +2267 -2267
  98. package/dist/multi-select-dropdown.scss +282 -279
  99. package/dist/my-templates.scss +463 -463
  100. package/dist/my-wishlist.scss +17 -17
  101. package/dist/option-bar.scss +845 -845
  102. package/dist/order-processing.scss +61 -61
  103. package/dist/order-status.scss +1856 -1856
  104. package/dist/overflow-module.scss +63 -63
  105. package/dist/past-orders.scss +975 -975
  106. package/dist/payment-methods.scss +289 -289
  107. package/dist/pickup-locations.scss +1167 -1167
  108. package/dist/position-module.scss +95 -95
  109. package/dist/prefix-list.scss +86 -86
  110. package/dist/product-actions copy.scss +2765 -2765
  111. package/dist/product-actions.scss +2286 -2286
  112. package/dist/product-basic-elements.scss +770 -770
  113. package/dist/product-customizations.scss +149 -149
  114. package/dist/product-highlights copy.scss +217 -217
  115. package/dist/product-highlights.scss +311 -311
  116. package/dist/product-image copy.scss +787 -787
  117. package/dist/product-image-bundles.scss +1512 -0
  118. package/dist/product-image.scss +1 -1
  119. package/dist/product-inventory.scss +1378 -1378
  120. package/dist/product-options.scss +1144 -1144
  121. package/dist/product-price.scss +2598 -2598
  122. package/dist/product-promotions.scss +2759 -2759
  123. package/dist/product-sizechart.scss +1826 -1826
  124. package/dist/product.scss +97 -97
  125. package/dist/productDetails.scss +70 -70
  126. package/dist/profile.scss +4 -3
  127. package/dist/quantity-selector.scss +3 -2
  128. package/dist/quick-links.scss +552 -552
  129. package/dist/quick-order-pad.scss +237 -237
  130. package/dist/quota-details.scss +263 -263
  131. package/dist/quotes.scss +737 -737
  132. package/dist/repeater copy.scss +635 -635
  133. package/dist/repeater-embla-controls.scss +6 -3
  134. package/dist/repeater-grid-toggle.scss +58 -58
  135. package/dist/repeater-item.scss +90 -90
  136. package/dist/repeater.scss +915 -915
  137. package/dist/request-for-quotes.scss +746 -746
  138. package/dist/responsive-behaviour.scss +29 -29
  139. package/dist/rfqs.scss +736 -736
  140. package/dist/scroll.scss +222 -222
  141. package/dist/search-results-heading.scss +279 -279
  142. package/dist/search.scss +296 -296
  143. package/dist/section.scss +209 -209
  144. package/dist/shareCartSideBar.scss +254 -254
  145. package/dist/shipping-estimator.scss +41 -41
  146. package/dist/shipping-payments.scss +2467 -2467
  147. package/dist/simple-list.scss +259 -259
  148. package/dist/skeleton.scss +74 -74
  149. package/dist/social.scss +276 -276
  150. package/dist/sort.scss +89 -89
  151. package/dist/spotlight.scss +1663 -1663
  152. package/dist/stack.scss +129 -129
  153. package/dist/static-global.scss +198 -0
  154. package/dist/static-text.scss +52 -52
  155. package/dist/stockStatus.scss +64 -64
  156. package/dist/store-locations.scss +1398 -1398
  157. package/dist/sub-category.scss +74 -74
  158. package/dist/submit-quote.scss +275 -275
  159. package/dist/tab-container-item.scss +80 -80
  160. package/dist/tab-container.scss +89 -89
  161. package/dist/tab-v2.scss +583 -583
  162. package/dist/table-common.scss +506 -506
  163. package/dist/table.scss +685 -685
  164. package/dist/tabs.scss +395 -395
  165. package/dist/text-temp-v2.scss +139 -139
  166. package/dist/text-temp.scss +109 -109
  167. package/dist/theme-classes.scss +296 -296
  168. package/dist/toaster.scss +350 -350
  169. package/dist/toggle-button.scss +32 -32
  170. package/dist/transform-properties-module.scss +20 -20
  171. package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +1945 -381
  172. package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +1 -1
  173. package/dist/types/builder/tools/element-edit/bundleDetails.d.ts +9 -0
  174. package/dist/types/builder/tools/element-edit/cartAttributes.d.ts +66 -0
  175. package/dist/uom-selector.scss +1169 -1169
  176. package/dist/user-elements copy.scss +1437 -1437
  177. package/dist/user-elements.scss +2471 -2471
  178. package/dist/variant-picker.scss +2384 -2384
  179. package/dist/video.scss +476 -476
  180. package/dist/volume-pricing copy 2.scss +1468 -1468
  181. package/dist/volume-pricing copy.scss +1077 -1077
  182. package/dist/volume-pricing.scss +1175 -1175
  183. package/dist/widget.scss +148 -148
  184. package/dist/wishlist-overlay.scss +48 -48
  185. package/package.json +1 -1
@@ -1,111 +1,111 @@
1
- @use "sass:color";
2
-
3
- // Variables
4
- $primary: #222299;
5
- $gray: #ddd;
6
- $text: #333;
7
- $font: "Segoe UI";
8
- $border-radius: 6px;
9
- $spacing: 1rem;
10
-
11
- .variant-selector {
12
- font-family: $font;
13
- padding: $spacing;
14
-
15
- .title {
16
- font-size: 1.5rem;
17
- margin-bottom: $spacing;
18
- }
19
-
20
- .section {
21
- display: flex;
22
- flex-direction: column;
23
- gap: $spacing;
24
-
25
- h3 {
26
- font-size: 1.2rem;
27
- margin-bottom: 0.5rem;
28
- color: $text;
29
- }
30
- }
31
-
32
- .group {
33
- display: flex;
34
- flex-direction: column;
35
- gap: 0.5rem;
36
-
37
- .group-label {
38
- font-weight: 500;
39
- color: $text;
40
- }
41
-
42
- .color-options {
43
- display: flex;
44
- flex-wrap: wrap;
45
- gap: 0.5rem;
46
-
47
- .color-swatch {
48
- width: 32px;
49
- height: 32px;
50
- border-radius: 50%;
51
- border: 2px solid transparent;
52
- cursor: pointer;
53
- transition: border 0.3s;
54
-
55
- &.selected {
56
- border-color: $primary;
57
- }
58
- }
59
- }
60
-
61
- .button-options {
62
- display: flex;
63
- flex-wrap: wrap;
64
- gap: 0.5rem;
65
-
66
- .option-button {
67
- padding: 0.4rem 0.75rem;
68
- border: 1px solid $gray;
69
- background: white;
70
- border-radius: $border-radius;
71
- cursor: pointer;
72
- font-size: 0.95rem;
73
- transition: all 0.3s ease;
74
-
75
- &.selected {
76
- background-color: $primary;
77
- opacity: 0.6;
78
- border-color: $primary;
79
- color: $primary;
80
- font-weight: 600;
81
- }
82
-
83
- &:hover {
84
- border-color: $primary;
85
- }
86
- }
87
-
88
- &.size-options {
89
- .option-button {
90
- min-width: 40px;
91
- text-align: center;
92
- }
93
- }
94
- }
95
- }
96
- }
97
-
98
- // Responsive
99
- @media (max-width: 600px) {
100
- .variant-selector {
101
- .color-options,
102
- .button-options {
103
- gap: 0.4rem;
104
- }
105
-
106
- .option-button {
107
- font-size: 0.85rem;
108
- padding: 0.3rem 0.6rem;
109
- }
110
- }
111
- }
1
+ @use "sass:color";
2
+
3
+ // Variables
4
+ $primary: #222299;
5
+ $gray: #ddd;
6
+ $text: #333;
7
+ $font: "Segoe UI";
8
+ $border-radius: 6px;
9
+ $spacing: 1rem;
10
+
11
+ .variant-selector {
12
+ font-family: $font;
13
+ padding: $spacing;
14
+
15
+ .title {
16
+ font-size: 1.5rem;
17
+ margin-bottom: $spacing;
18
+ }
19
+
20
+ .section {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: $spacing;
24
+
25
+ h3 {
26
+ font-size: 1.2rem;
27
+ margin-bottom: 0.5rem;
28
+ color: $text;
29
+ }
30
+ }
31
+
32
+ .group {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: 0.5rem;
36
+
37
+ .group-label {
38
+ font-weight: 500;
39
+ color: $text;
40
+ }
41
+
42
+ .color-options {
43
+ display: flex;
44
+ flex-wrap: wrap;
45
+ gap: 0.5rem;
46
+
47
+ .color-swatch {
48
+ width: 32px;
49
+ height: 32px;
50
+ border-radius: 50%;
51
+ border: 2px solid transparent;
52
+ cursor: pointer;
53
+ transition: border 0.3s;
54
+
55
+ &.selected {
56
+ border-color: $primary;
57
+ }
58
+ }
59
+ }
60
+
61
+ .button-options {
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ gap: 0.5rem;
65
+
66
+ .option-button {
67
+ padding: 0.4rem 0.75rem;
68
+ border: 1px solid $gray;
69
+ background: white;
70
+ border-radius: $border-radius;
71
+ cursor: pointer;
72
+ font-size: 0.95rem;
73
+ transition: all 0.3s ease;
74
+
75
+ &.selected {
76
+ background-color: $primary;
77
+ opacity: 0.6;
78
+ border-color: $primary;
79
+ color: $primary;
80
+ font-weight: 600;
81
+ }
82
+
83
+ &:hover {
84
+ border-color: $primary;
85
+ }
86
+ }
87
+
88
+ &.size-options {
89
+ .option-button {
90
+ min-width: 40px;
91
+ text-align: center;
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ // Responsive
99
+ @media (max-width: 600px) {
100
+ .variant-selector {
101
+ .color-options,
102
+ .button-options {
103
+ gap: 0.4rem;
104
+ }
105
+
106
+ .option-button {
107
+ font-size: 0.85rem;
108
+ padding: 0.3rem 0.6rem;
109
+ }
110
+ }
111
+ }
@@ -1,72 +1,72 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
-
4
- [data-div-type="element"] {
5
- &[data-element-type="embed"] {
6
- // width: var(--_lt-wh);
7
- // height: var(--_lt-ht);
8
- // margin: var(--_lt-mn);
9
- // padding: var(--_lt-pg);
10
- // width: var(--_ctm-lt-wh, var(--_ctm-lt-wh));
11
- // width: var(--_sf-nw-wh, var(--_ctm-lt-wh));
12
- width: var(
13
- --_sf-el-wh-st-mx,
14
- calc(
15
- 1% *
16
- var(
17
- --_ctm-mob-ele-nw-wh-vl,
18
- var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh)))
19
- )
20
- )
21
- );
22
- margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
23
- aspect-ratio: 1 / var(--_sf-aspect-ratio);
24
- --_aspect-ratio: calc(
25
- 1 * var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
26
- var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
27
- );
28
-
29
- & > .wrapper {
30
- width: 100%;
31
- height: 100%;
32
- }
33
- &[data-show-shadow="false"] {
34
- --_show-shadow: none;
35
- }
36
-
37
- .embed-element {
38
- background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
39
- padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
40
- display: flex;
41
- flex-direction: column;
42
- --_sf-gp: 16px;
43
- --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
44
- row-gap: var(--_sf-gp);
45
- width: 100%;
46
- height: 100%;
47
- border-color: var(--_ctm-mob-dn-br-cr, var(--_ctm-tab-dn-br-cr, var(--_ctm-dn-br-cr)));
48
- border-style: var(--_ctm-mob-dn-br-se, var(--_ctm-tab-dn-br-se, var(--_ctm-dn-br-se)));
49
-
50
- border-width: var(--_ctm-mob-dn-br-wh, var(--_ctm-tab-dn-br-wh, var(--_ctm-dn-br-wh)));
51
-
52
- border-radius: var(--_ctm-mob-dn-br-rs, var(--_ctm-tab-dn-br-rs, var(--_ctm-dn-br-rs)));
53
-
54
- box-shadow: var(
55
- --_show-shadow,
56
- var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae)))
57
- var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br)))
58
- var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd)))
59
- var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr)))
60
- );
61
-
62
- // transform: scale(var(--_ctm-dn-zm-ie));
63
- scale: var(--_ctm-mob-dn-zm-ie, var(--_ctm-tab-dn-zm-ie, var(--_ctm-dn-zm-ie)));
64
- &[data-flip-x="true"] {
65
- transform: scaleX(-1);
66
- }
67
- &[data-flip-y="true"] {
68
- transform: scaleY(-1);
69
- }
70
- }
71
- }
72
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="embed"] {
6
+ // width: var(--_lt-wh);
7
+ // height: var(--_lt-ht);
8
+ // margin: var(--_lt-mn);
9
+ // padding: var(--_lt-pg);
10
+ // width: var(--_ctm-lt-wh, var(--_ctm-lt-wh));
11
+ // width: var(--_sf-nw-wh, var(--_ctm-lt-wh));
12
+ width: var(
13
+ --_sf-el-wh-st-mx,
14
+ calc(
15
+ 1% *
16
+ var(
17
+ --_ctm-mob-ele-nw-wh-vl,
18
+ var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh)))
19
+ )
20
+ )
21
+ );
22
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
23
+ aspect-ratio: 1 / var(--_sf-aspect-ratio);
24
+ --_aspect-ratio: calc(
25
+ 1 * var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
26
+ var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
27
+ );
28
+
29
+ & > .wrapper {
30
+ width: 100%;
31
+ height: 100%;
32
+ }
33
+ &[data-show-shadow="false"] {
34
+ --_show-shadow: none;
35
+ }
36
+
37
+ .embed-element {
38
+ background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
39
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
40
+ display: flex;
41
+ flex-direction: column;
42
+ --_sf-gp: 16px;
43
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
44
+ row-gap: var(--_sf-gp);
45
+ width: 100%;
46
+ height: 100%;
47
+ border-color: var(--_ctm-mob-dn-br-cr, var(--_ctm-tab-dn-br-cr, var(--_ctm-dn-br-cr)));
48
+ border-style: var(--_ctm-mob-dn-br-se, var(--_ctm-tab-dn-br-se, var(--_ctm-dn-br-se)));
49
+
50
+ border-width: var(--_ctm-mob-dn-br-wh, var(--_ctm-tab-dn-br-wh, var(--_ctm-dn-br-wh)));
51
+
52
+ border-radius: var(--_ctm-mob-dn-br-rs, var(--_ctm-tab-dn-br-rs, var(--_ctm-dn-br-rs)));
53
+
54
+ box-shadow: var(
55
+ --_show-shadow,
56
+ var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae)))
57
+ var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br)))
58
+ var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd)))
59
+ var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr)))
60
+ );
61
+
62
+ // transform: scale(var(--_ctm-dn-zm-ie));
63
+ scale: var(--_ctm-mob-dn-zm-ie, var(--_ctm-tab-dn-zm-ie, var(--_ctm-dn-zm-ie)));
64
+ &[data-flip-x="true"] {
65
+ transform: scaleX(-1);
66
+ }
67
+ &[data-flip-y="true"] {
68
+ transform: scaleY(-1);
69
+ }
70
+ }
71
+ }
72
+ }
@@ -1,94 +1,94 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
-
4
- // 1: Image,
5
- // 2: Text
6
-
7
- @mixin FlexEmbroideryPreviewStyles($type) {
8
- @if ($type == 1) {
9
- & > .emb__img__main__element {
10
- display: var(--_d-flex);
11
- grid-area: 1/1/2/2;
12
- position: var(--_p-relative);
13
- width: var(--_sf-embr-att-wdth, var(--_width-80));
14
- height: var(--_sf-embr-att-hght, var(--_height-80));
15
-
16
- & > .emb__img__wrapper {
17
- display: var(--_d-flex);
18
- width: 100%;
19
-
20
- & > div {
21
- &.emb__img__box {
22
- display: var(--_d-flex);
23
- width: 100%;
24
- height: 100%;
25
- border-radius: var(--_br-4);
26
- background: var(--_primary-25);
27
- display: var(--_d-flex);
28
- align-items: center;
29
- justify-content: center;
30
-
31
- & > svg {
32
- width: 65%;
33
- height: 65%;
34
- }
35
- }
36
- &.emb__img__data__box {
37
- display: var(--_d-flex);
38
- width: 100%;
39
- height: 100%;
40
-
41
- & > img {
42
- width: 100%;
43
- height: 100%;
44
- object-fit: contain;
45
- }
46
- }
47
- }
48
- }
49
- }
50
- } @else if($type == 2) {
51
- & > .emb__text__main__element {
52
- display: var(--_d-flex);
53
- grid-area: 1/1/2/2;
54
- position: var(--_p-relative);
55
- width: var(--_sf-embr-att-wdth, var(--_width-80));
56
- height: var(--_sf-embr-att-hght, var(--_height-80));
57
-
58
- & > .emb__text__wrapper {
59
- display: var(--_d-flex);
60
- width: 100%;
61
-
62
- & > div {
63
- &.emb__text__box {
64
- display: var(--_d-flex);
65
- width: 100%;
66
- height: 100%;
67
- border-radius: var(--_br-4);
68
- background: var(--_primary-25);
69
- display: var(--_d-flex);
70
- align-items: center;
71
- justify-content: center;
72
-
73
- & > svg {
74
- width: 65%;
75
- height: 65%;
76
- }
77
- }
78
-
79
- &.emb__text__data__box {
80
- display: var(--_d-flex);
81
- width: 100%;
82
- height: 100%;
83
-
84
- & > span {
85
- word-break: break-all;
86
- width: 100%;
87
- text-align: center;
88
- }
89
- }
90
- }
91
- }
92
- }
93
- }
94
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ // 1: Image,
5
+ // 2: Text
6
+
7
+ @mixin FlexEmbroideryPreviewStyles($type) {
8
+ @if ($type == 1) {
9
+ & > .emb__img__main__element {
10
+ display: var(--_d-flex);
11
+ grid-area: 1/1/2/2;
12
+ position: var(--_p-relative);
13
+ width: var(--_sf-embr-att-wdth, var(--_width-80));
14
+ height: var(--_sf-embr-att-hght, var(--_height-80));
15
+
16
+ & > .emb__img__wrapper {
17
+ display: var(--_d-flex);
18
+ width: 100%;
19
+
20
+ & > div {
21
+ &.emb__img__box {
22
+ display: var(--_d-flex);
23
+ width: 100%;
24
+ height: 100%;
25
+ border-radius: var(--_br-4);
26
+ background: var(--_primary-25);
27
+ display: var(--_d-flex);
28
+ align-items: center;
29
+ justify-content: center;
30
+
31
+ & > svg {
32
+ width: 65%;
33
+ height: 65%;
34
+ }
35
+ }
36
+ &.emb__img__data__box {
37
+ display: var(--_d-flex);
38
+ width: 100%;
39
+ height: 100%;
40
+
41
+ & > img {
42
+ width: 100%;
43
+ height: 100%;
44
+ object-fit: contain;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ } @else if($type == 2) {
51
+ & > .emb__text__main__element {
52
+ display: var(--_d-flex);
53
+ grid-area: 1/1/2/2;
54
+ position: var(--_p-relative);
55
+ width: var(--_sf-embr-att-wdth, var(--_width-80));
56
+ height: var(--_sf-embr-att-hght, var(--_height-80));
57
+
58
+ & > .emb__text__wrapper {
59
+ display: var(--_d-flex);
60
+ width: 100%;
61
+
62
+ & > div {
63
+ &.emb__text__box {
64
+ display: var(--_d-flex);
65
+ width: 100%;
66
+ height: 100%;
67
+ border-radius: var(--_br-4);
68
+ background: var(--_primary-25);
69
+ display: var(--_d-flex);
70
+ align-items: center;
71
+ justify-content: center;
72
+
73
+ & > svg {
74
+ width: 65%;
75
+ height: 65%;
76
+ }
77
+ }
78
+
79
+ &.emb__text__data__box {
80
+ display: var(--_d-flex);
81
+ width: 100%;
82
+ height: 100%;
83
+
84
+ & > span {
85
+ word-break: break-all;
86
+ width: 100%;
87
+ text-align: center;
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }