@sc-360-v2/storefront-cms-library 0.5.70 → 0.5.71

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 (155) hide show
  1. package/dist/add-existing-form.scss +68 -68
  2. package/dist/add-products-tab-details.scss +4071 -4071
  3. package/dist/add-products-tab-uom-details.scss +1106 -1106
  4. package/dist/add-products-tab.scss +2377 -2377
  5. package/dist/allocation-header-quota-details.scss +609 -609
  6. package/dist/allocations-quota-details.scss +525 -525
  7. package/dist/amount-estimator.scss +1192 -1192
  8. package/dist/animation-control.scss +23 -23
  9. package/dist/badge.scss +408 -408
  10. package/dist/brand-basic-elements.scss +387 -387
  11. package/dist/brand.scss +142 -142
  12. package/dist/breadcrumbs.scss +966 -966
  13. package/dist/builder.js +1 -1
  14. package/dist/bulk-order-pad.scss +692 -692
  15. package/dist/bundleCategories.scss +301 -301
  16. package/dist/bundleDetails.scss +6189 -6189
  17. package/dist/buy-for-tab-container.scss +141 -141
  18. package/dist/buy-for-tab.scss +649 -649
  19. package/dist/buy-for-tabs-container-item.scss +80 -80
  20. package/dist/buyForPopup.scss +339 -339
  21. package/dist/cart-details.scss +3986 -3986
  22. package/dist/cart-products-sidebar.scss +211 -211
  23. package/dist/cart-summary.scss +2826 -2826
  24. package/dist/cart-wrapper.scss +127 -127
  25. package/dist/cartAttributes.scss +1422 -1422
  26. package/dist/cartDropdownOverlay.scss +653 -653
  27. package/dist/cartGrouping.scss +89 -89
  28. package/dist/category-groups-element.scss +739 -739
  29. package/dist/category-groups-quota-details.scss +626 -626
  30. package/dist/category.scss +137 -137
  31. package/dist/categoryDetails.scss +61 -61
  32. package/dist/categoryWidget.scss +34 -34
  33. package/dist/checkbox-radio.scss +124 -124
  34. package/dist/code-temp.scss +59 -59
  35. package/dist/colorpicker_v2.scss +62 -62
  36. package/dist/common-element.scss +35 -35
  37. package/dist/confirm-modal.scss +370 -370
  38. package/dist/confirmationModal.scss +139 -139
  39. package/dist/contact-us.scss +105 -105
  40. package/dist/container.scss +168 -168
  41. package/dist/countdown.scss +899 -899
  42. package/dist/coupon.scss +1519 -1519
  43. package/dist/custom-fonts.scss +100 -100
  44. package/dist/customization-tree.scss +162 -162
  45. package/dist/default-dropdown.scss +259 -259
  46. package/dist/dropdownTemplate.scss +699 -699
  47. package/dist/editCartItem.scss +110 -110
  48. package/dist/embed-temp.scss +73 -73
  49. package/dist/embroider-preview-element.scss +94 -94
  50. package/dist/embroider-template-1-v2.scss +1105 -1105
  51. package/dist/embroider-template-1.scss +501 -501
  52. package/dist/embroidery.scss +247 -247
  53. package/dist/employee-bulk-order.scss +4060 -4060
  54. package/dist/emtpy-templates.scss +165 -165
  55. package/dist/faq.scss +696 -696
  56. package/dist/fb-dropdown.scss +135 -135
  57. package/dist/filter-results.scss +361 -361
  58. package/dist/filters.scss +3040 -3040
  59. package/dist/flex-text-editor.scss +271 -271
  60. package/dist/form-preview.scss +530 -530
  61. package/dist/gallery-slider-temp.scss +1776 -1776
  62. package/dist/global-styles.scss +198 -198
  63. package/dist/grid.scss +169 -169
  64. package/dist/icon-library.scss +78 -78
  65. package/dist/image-for-product.scss +21 -21
  66. package/dist/image-temp.scss +203 -203
  67. package/dist/item-stock.scss +93 -93
  68. package/dist/kitDetails.scss +5739 -5739
  69. package/dist/kits.scss +305 -305
  70. package/dist/language-selector.scss +948 -948
  71. package/dist/last-x-orders.scss +285 -285
  72. package/dist/layouter-item.scss +141 -141
  73. package/dist/layouter-pro-item.scss +139 -139
  74. package/dist/layouter-pro.scss +134 -134
  75. package/dist/layouter.scss +491 -491
  76. package/dist/light-box-v2.scss +155 -155
  77. package/dist/lightbox.scss +78 -78
  78. package/dist/loader.scss +37 -37
  79. package/dist/login.scss +29 -11
  80. package/dist/map.scss +1359 -1359
  81. package/dist/marchandiserSets.scss +141 -141
  82. package/dist/mega-menu-container.scss +152 -152
  83. package/dist/menu-item.scss +19 -19
  84. package/dist/menu-v2.scss +999 -999
  85. package/dist/menu.scss +174 -174
  86. package/dist/multi-select-dropdown.scss +316 -316
  87. package/dist/my-templates.scss +477 -477
  88. package/dist/my-wishlist.scss +27 -27
  89. package/dist/option-bar.scss +886 -886
  90. package/dist/order-processing.scss +61 -61
  91. package/dist/order-status.scss +2187 -2187
  92. package/dist/overflow-module.scss +63 -63
  93. package/dist/past-orders.scss +1039 -1039
  94. package/dist/payment-methods.scss +307 -307
  95. package/dist/phone-input.scss +208 -208
  96. package/dist/pickup-locations.scss +1359 -1359
  97. package/dist/position-module.scss +95 -95
  98. package/dist/prefix-list.scss +86 -86
  99. package/dist/product-actions.scss +2872 -2872
  100. package/dist/product-basic-elements.scss +600 -600
  101. package/dist/product-customizations.scss +155 -155
  102. package/dist/product-highlights.scss +348 -348
  103. package/dist/product-image-allocation.scss +1477 -1477
  104. package/dist/product-inventory.scss +1621 -1621
  105. package/dist/product-labels.scss +265 -265
  106. package/dist/product-options.scss +1444 -1444
  107. package/dist/product-price.scss +3392 -3392
  108. package/dist/product-promotions.scss +3224 -3224
  109. package/dist/product-sizechart.scss +1921 -1921
  110. package/dist/product.scss +140 -140
  111. package/dist/profile.scss +824 -824
  112. package/dist/quantity-selector.scss +1074 -1074
  113. package/dist/quick-inventory-check.scss +285 -285
  114. package/dist/quick-links.scss +627 -627
  115. package/dist/quota-details.scss +526 -526
  116. package/dist/quotes.scss +847 -847
  117. package/dist/repeater-embla-controls.scss +211 -211
  118. package/dist/repeater-grid-toggle.scss +206 -206
  119. package/dist/repeater-item.scss +152 -152
  120. package/dist/repeater.scss +946 -946
  121. package/dist/request-for-quotes.scss +841 -841
  122. package/dist/responsive-behaviour.scss +29 -29
  123. package/dist/rfqs.scss +861 -861
  124. package/dist/scroll.scss +414 -414
  125. package/dist/search-results-heading.scss +309 -309
  126. package/dist/search.scss +689 -689
  127. package/dist/section.scss +276 -276
  128. package/dist/shareCartSideBar.scss +254 -254
  129. package/dist/shipping-estimator.scss +41 -41
  130. package/dist/shipping-payments.scss +2518 -2518
  131. package/dist/simple-list.scss +338 -338
  132. package/dist/skeleton.scss +64 -64
  133. package/dist/spotlight.scss +1706 -1706
  134. package/dist/stack.scss +171 -171
  135. package/dist/static-global.scss +292 -292
  136. package/dist/static-text.scss +52 -52
  137. package/dist/stockStatus.scss +70 -70
  138. package/dist/store-locations.scss +1592 -1592
  139. package/dist/sub-category.scss +74 -74
  140. package/dist/submit-quote.scss +275 -275
  141. package/dist/tab-container-item.scss +80 -80
  142. package/dist/tab-container.scss +141 -141
  143. package/dist/table.scss +9 -0
  144. package/dist/tabs.scss +440 -440
  145. package/dist/text-temp.scss +109 -109
  146. package/dist/theme-classes.scss +421 -421
  147. package/dist/toaster.scss +392 -392
  148. package/dist/toggle-button.scss +32 -32
  149. package/dist/transform-properties-module.scss +20 -20
  150. package/dist/types/builder/tools/element-edit/login.d.ts +1 -0
  151. package/dist/types/builder/tools/element-edit/resetPassword.d.ts +1 -0
  152. package/dist/user-elements.scss +2896 -2896
  153. package/dist/widget.scss +153 -153
  154. package/dist/wishlist-overlay.scss +48 -48
  155. package/package.json +1 -1
@@ -1,110 +1,110 @@
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
- padding: $spacing;
13
-
14
- .title {
15
- font-size: 1.5rem;
16
- margin-bottom: $spacing;
17
- }
18
-
19
- .section {
20
- display: flex;
21
- flex-direction: column;
22
- gap: $spacing;
23
-
24
- h3 {
25
- font-size: 1.2rem;
26
- margin-bottom: 0.5rem;
27
- color: $text;
28
- }
29
- }
30
-
31
- .group {
32
- display: flex;
33
- flex-direction: column;
34
- gap: 0.5rem;
35
-
36
- .group-label {
37
- font-weight: 500;
38
- color: $text;
39
- }
40
-
41
- .color-options {
42
- display: flex;
43
- flex-wrap: wrap;
44
- gap: 0.5rem;
45
-
46
- .color-swatch {
47
- width: 32px;
48
- height: 32px;
49
- border-radius: 50%;
50
- border: 2px solid transparent;
51
- cursor: pointer;
52
- transition: border 0.3s;
53
-
54
- &.selected {
55
- border-color: $primary;
56
- }
57
- }
58
- }
59
-
60
- .button-options {
61
- display: flex;
62
- flex-wrap: wrap;
63
- gap: 0.5rem;
64
-
65
- .option-button {
66
- padding: 0.4rem 0.75rem;
67
- border: 1px solid $gray;
68
- background: white;
69
- border-radius: $border-radius;
70
- cursor: pointer;
71
- font-size: 0.95rem;
72
- transition: all 0.3s ease;
73
-
74
- &.selected {
75
- background-color: $primary;
76
- opacity: 0.6;
77
- border-color: $primary;
78
- color: $primary;
79
- font-weight: 600;
80
- }
81
-
82
- &:hover {
83
- border-color: $primary;
84
- }
85
- }
86
-
87
- &.size-options {
88
- .option-button {
89
- min-width: 40px;
90
- text-align: center;
91
- }
92
- }
93
- }
94
- }
95
- }
96
-
97
- // Responsive
98
- @media (max-width: 600px) {
99
- .variant-selector {
100
- .color-options,
101
- .button-options {
102
- gap: 0.4rem;
103
- }
104
-
105
- .option-button {
106
- font-size: 0.85rem;
107
- padding: 0.3rem 0.6rem;
108
- }
109
- }
110
- }
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
+ padding: $spacing;
13
+
14
+ .title {
15
+ font-size: 1.5rem;
16
+ margin-bottom: $spacing;
17
+ }
18
+
19
+ .section {
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: $spacing;
23
+
24
+ h3 {
25
+ font-size: 1.2rem;
26
+ margin-bottom: 0.5rem;
27
+ color: $text;
28
+ }
29
+ }
30
+
31
+ .group {
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 0.5rem;
35
+
36
+ .group-label {
37
+ font-weight: 500;
38
+ color: $text;
39
+ }
40
+
41
+ .color-options {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ gap: 0.5rem;
45
+
46
+ .color-swatch {
47
+ width: 32px;
48
+ height: 32px;
49
+ border-radius: 50%;
50
+ border: 2px solid transparent;
51
+ cursor: pointer;
52
+ transition: border 0.3s;
53
+
54
+ &.selected {
55
+ border-color: $primary;
56
+ }
57
+ }
58
+ }
59
+
60
+ .button-options {
61
+ display: flex;
62
+ flex-wrap: wrap;
63
+ gap: 0.5rem;
64
+
65
+ .option-button {
66
+ padding: 0.4rem 0.75rem;
67
+ border: 1px solid $gray;
68
+ background: white;
69
+ border-radius: $border-radius;
70
+ cursor: pointer;
71
+ font-size: 0.95rem;
72
+ transition: all 0.3s ease;
73
+
74
+ &.selected {
75
+ background-color: $primary;
76
+ opacity: 0.6;
77
+ border-color: $primary;
78
+ color: $primary;
79
+ font-weight: 600;
80
+ }
81
+
82
+ &:hover {
83
+ border-color: $primary;
84
+ }
85
+ }
86
+
87
+ &.size-options {
88
+ .option-button {
89
+ min-width: 40px;
90
+ text-align: center;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ // Responsive
98
+ @media (max-width: 600px) {
99
+ .variant-selector {
100
+ .color-options,
101
+ .button-options {
102
+ gap: 0.4rem;
103
+ }
104
+
105
+ .option-button {
106
+ font-size: 0.85rem;
107
+ padding: 0.3rem 0.6rem;
108
+ }
109
+ }
110
+ }
@@ -1,73 +1,73 @@
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
-
24
- // aspect-ratio: 1 / var(--_sf-aspect-ratio);
25
- --_aspect-ratio: calc(
26
- 1 * var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
27
- var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
28
- );
29
-
30
- & > .wrapper {
31
- width: 100%;
32
- height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
33
- }
34
- &[data-show-shadow="false"] {
35
- --_show-shadow: none;
36
- }
37
-
38
- .embed-element {
39
- background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
40
- padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
41
- display: flex;
42
- flex-direction: column;
43
- --_sf-gp: 16px;
44
- --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
45
- row-gap: var(--_sf-gp);
46
- width: 100%;
47
- height: 100%;
48
- border-color: var(--_ctm-mob-dn-br-cr, var(--_ctm-tab-dn-br-cr, var(--_ctm-dn-br-cr)));
49
- border-style: var(--_ctm-mob-dn-br-se, var(--_ctm-tab-dn-br-se, var(--_ctm-dn-br-se)));
50
-
51
- border-width: var(--_ctm-mob-dn-br-wh, var(--_ctm-tab-dn-br-wh, var(--_ctm-dn-br-wh)));
52
-
53
- border-radius: var(--_ctm-mob-dn-br-rs, var(--_ctm-tab-dn-br-rs, var(--_ctm-dn-br-rs)));
54
-
55
- box-shadow: var(
56
- --_show-shadow,
57
- var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae)))
58
- var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br)))
59
- var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd)))
60
- var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr)))
61
- );
62
-
63
- // transform: scale(var(--_ctm-dn-zm-ie));
64
- scale: var(--_ctm-mob-dn-zm-ie, var(--_ctm-tab-dn-zm-ie, var(--_ctm-dn-zm-ie)));
65
- &[data-flip-x="true"] {
66
- transform: scaleX(-1);
67
- }
68
- &[data-flip-y="true"] {
69
- transform: scaleY(-1);
70
- }
71
- }
72
- }
73
- }
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
+
24
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
25
+ --_aspect-ratio: calc(
26
+ 1 * var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
27
+ var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
28
+ );
29
+
30
+ & > .wrapper {
31
+ width: 100%;
32
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
33
+ }
34
+ &[data-show-shadow="false"] {
35
+ --_show-shadow: none;
36
+ }
37
+
38
+ .embed-element {
39
+ background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
40
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
41
+ display: flex;
42
+ flex-direction: column;
43
+ --_sf-gp: 16px;
44
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
45
+ row-gap: var(--_sf-gp);
46
+ width: 100%;
47
+ height: 100%;
48
+ border-color: var(--_ctm-mob-dn-br-cr, var(--_ctm-tab-dn-br-cr, var(--_ctm-dn-br-cr)));
49
+ border-style: var(--_ctm-mob-dn-br-se, var(--_ctm-tab-dn-br-se, var(--_ctm-dn-br-se)));
50
+
51
+ border-width: var(--_ctm-mob-dn-br-wh, var(--_ctm-tab-dn-br-wh, var(--_ctm-dn-br-wh)));
52
+
53
+ border-radius: var(--_ctm-mob-dn-br-rs, var(--_ctm-tab-dn-br-rs, var(--_ctm-dn-br-rs)));
54
+
55
+ box-shadow: var(
56
+ --_show-shadow,
57
+ var(--_ctm-mob-dn-sw-ae, var(--_ctm-tab-dn-sw-ae, var(--_ctm-dn-sw-ae)))
58
+ var(--_ctm-mob-dn-sw-br, var(--_ctm-tab-dn-sw-br, var(--_ctm-dn-sw-br)))
59
+ var(--_ctm-mob-dn-sw-sd, var(--_ctm-tab-dn-sw-sd, var(--_ctm-dn-sw-sd)))
60
+ var(--_ctm-mob-dn-sw-cr, var(--_ctm-tab-dn-sw-cr, var(--_ctm-dn-sw-cr)))
61
+ );
62
+
63
+ // transform: scale(var(--_ctm-dn-zm-ie));
64
+ scale: var(--_ctm-mob-dn-zm-ie, var(--_ctm-tab-dn-zm-ie, var(--_ctm-dn-zm-ie)));
65
+ &[data-flip-x="true"] {
66
+ transform: scaleX(-1);
67
+ }
68
+ &[data-flip-y="true"] {
69
+ transform: scaleY(-1);
70
+ }
71
+ }
72
+ }
73
+ }
@@ -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
+ }