@sc-360-v2/storefront-cms-library 0.3.0 → 0.3.2

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 (49) hide show
  1. package/dist/amount-estimator.scss +291 -226
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-order-pad.scss +119 -64
  4. package/dist/bundleDetails.scss +808 -678
  5. package/dist/buyForHeaders.scss +94 -29
  6. package/dist/cart-details.scss +5 -3
  7. package/dist/cartDropdownOverlay.scss +0 -13
  8. package/dist/dropdownTemplate.scss +141 -0
  9. package/dist/faq.scss +20 -24
  10. package/dist/functions.scss +53 -18
  11. package/dist/item-stock.scss +38 -76
  12. package/dist/map.scss +35 -35
  13. package/dist/menu-item.scss +19 -0
  14. package/dist/modal.scss +328 -0
  15. package/dist/order-status.scss +483 -0
  16. package/dist/payment-methods.scss +71 -1
  17. package/dist/pickup-locations.scss +22 -19
  18. package/dist/product-basic-elements.scss +285 -132
  19. package/dist/product-options.scss +118 -76
  20. package/dist/quick-links.scss +186 -143
  21. package/dist/quick-order-pad.scss +26 -285
  22. package/dist/quotes.scss +9 -0
  23. package/dist/repeater-item.scss +1 -0
  24. package/dist/rfqs.scss +8 -0
  25. package/dist/section.scss +29 -78
  26. package/dist/stack.scss +16 -61
  27. package/dist/store-locations.scss +21 -20
  28. package/dist/table-common.scss +510 -0
  29. package/dist/text-temp-v2.scss +2 -0
  30. package/dist/types/builder/elements/bundle-details/index.d.ts +30 -0
  31. package/dist/types/builder/elements/layouter-pro/index.d.ts +43 -0
  32. package/dist/types/builder/elements/layouter-pro-item/index.d.ts +39 -0
  33. package/dist/types/builder/enums/index.d.ts +4 -0
  34. package/dist/types/builder/index.d.ts +4 -1
  35. package/dist/types/builder/tools/element-edit/bundleDetails.d.ts +627 -10
  36. package/dist/types/builder/tools/element-edit/buyForWithTab.d.ts +287 -4
  37. package/dist/types/builder/tools/element-edit/cartDetails.d.ts +1 -1
  38. package/dist/types/builder/tools/element-edit/filters.d.ts +39 -1
  39. package/dist/types/builder/tools/element-edit/index.d.ts +3 -1
  40. package/dist/types/builder/tools/element-edit/itemStock.d.ts +11 -0
  41. package/dist/types/builder/tools/element-edit/layouter-pro-item.d.ts +9 -0
  42. package/dist/types/builder/tools/element-edit/layouterPro.d.ts +39 -0
  43. package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +94 -1
  44. package/dist/uom-selector.scss +929 -1416
  45. package/dist/variant-picker.scss +613 -138
  46. package/dist/volume-pricing copy.scss +1092 -0
  47. package/dist/volume-pricing.scss +1007 -606
  48. package/dist/widget.scss +3 -0
  49. package/package.json +1 -1
@@ -10,10 +10,16 @@
10
10
  margin-bottom: 1rem;
11
11
 
12
12
  h1 {
13
- font-size: 1.5rem;
14
- font-weight: bold;
13
+ font-size: var(--_ctm-buy-dn-pe-te-ss-ft-se);
14
+ font-weight: var(--_ctm-buy-dn-pe-te-ss-ft-wt);
15
15
  display: flex;
16
- align-items: center;
16
+ align-items: var(--_ctm-buy-dn-pe-te-ss-tt-an);
17
+ color: var(--_ctm-buy-dn-pe-te-ss-cr);
18
+ font-family: var(--_ctm-buy-dn-pe-te-ss-ft-fy);
19
+ font-style: var(--_ctm-buy-dn-pe-te-ss-ft-se-ic);
20
+ letter-spacing: var(--_ctm-buy-dn-pe-te-ss-lr-sg);
21
+ line-height: var(--_ctm-buy-dn-pe-te-ss-le-ht);
22
+ text-decoration: var(--_ctm-buy-dn-pe-te-ss-ue);
17
23
 
18
24
  .separator {
19
25
  margin: 0 0.5rem;
@@ -44,12 +50,15 @@
44
50
  }
45
51
 
46
52
  .manage-link {
47
- color: #0056d2;
48
- text-decoration: none;
49
-
50
- &:hover {
51
- text-decoration: underline;
52
- }
53
+ font-size: var(--_ctm-buy-dn-me-es-ll-ss-ft-se);
54
+ font-weight: var(--_ctm-buy-dn-pe-te-ss-ft-wt);
55
+ text-align: var(--_ctm-buy-dn-me-es-ll-ss-tt-an);
56
+ color: var(--_ctm-buy-dn-me-es-ll-ss-cr);
57
+ font-family: var(--_ctm-buy-dn-me-es-ll-ss-ft-wt);
58
+ font-style: var(--_ctm-buy-dn-me-es-ll-ss-ft-se-ic);
59
+ text-decoration: var(--_ctm-buy-dn-me-es-ll-ss-ue);
60
+ letter-spacing: var(--_ctm-buy-dn-me-es-ll-ss-lr-sg);
61
+ line-height: var(--_ctm-buy-dn-me-es-ll-ss-le-ht);
53
62
  }
54
63
 
55
64
  .employee-switch {
@@ -90,10 +99,15 @@
90
99
  flex-wrap: wrap;
91
100
 
92
101
  .employee-name {
93
- font-size: 1.3rem;
94
- font-weight: bold;
95
- display: flex;
96
- align-items: center;
102
+ font-size: var(--_ctm-buy-dn-ee-ne-ss-ft-se);
103
+ color: var(--_ctm-buy-dn-ee-ne-ss-cr);
104
+ font-family: var(--_ctm-buy-dn-ee-ne-ss-ft-fy);
105
+ font-weight: var(--_ctm-buy-dn-ee-ne-ss-ft-wt);
106
+ font-style: var(--_ctm-buy-dn-ee-ne-ss-ft-se-ic);
107
+ text-decoration: var(--_ctm-buy-dn-ee-ne-ss-ue);
108
+ text-align: var(---_ctm-buy-dn-ee-ne-ss-tt-an);
109
+ letter-spacing: var(--_ctm-buy-dn-ee-sn-ss-lr-sg);
110
+ line-height: var(--_ctm-buy-dn-ee-sn-ss-le-ht);
97
111
 
98
112
  .external-link-icon {
99
113
  margin-left: 0.5rem;
@@ -117,10 +131,20 @@
117
131
  align-items: center;
118
132
  margin: 0.8rem 0;
119
133
  flex-wrap: wrap;
134
+ gap: 8px;
120
135
 
121
136
  .meta-item {
122
- font-size: 0.9rem;
123
- color: #555;
137
+ // font-size: 0.9rem;
138
+ // color: #555;
139
+ font-family: var(--_ctm-buy-dn-ee-io-ss-ft-fy);
140
+ font-size: var(--_ctm-buy-dn-ee-io-ss-ft-se);
141
+ color: var(--_ctm-buy-dn-ee-io-ss-cr);
142
+ font-weight: var(--_ctm-buy-dn-ee-io-ss-ft-wt);
143
+ font-style: var(--_ctm-buy-dn-ee-io-ss-ft-se-ic);
144
+ text-decoration: var(--_ctm-buy-dn-ee-io-ss-ue);
145
+ text-align: var(--_ctm-buy-dn-ee-io-ss-tt-an);
146
+ letter-spacing: var(--_ctm-buy-dn-ee-io-ss-lr-sg);
147
+ line-height: var(--_ctm-buy-dn-ee-io-ss-le-ht);
124
148
  }
125
149
 
126
150
  .meta-separator {
@@ -134,20 +158,43 @@
134
158
  flex-wrap: wrap;
135
159
  gap: 1.5rem;
136
160
  margin-top: 1rem;
161
+ position: relative;
137
162
 
138
163
  .info-block {
139
- min-width: 160px;
140
-
141
- h4 {
142
- font-size: 0.95rem;
143
- color: #6c757d;
164
+ min-width: 170px;
165
+ max-width: 226px;
166
+ .title,
167
+ .sub_title {
168
+ width: 100%;
169
+ white-space: nowrap;
170
+ text-overflow: ellipsis;
171
+ overflow: hidden;
172
+ }
173
+ .title {
174
+ // font-size: 0.95rem;
175
+ // color: #6c757d;
176
+ font-family: var(--_ctm-buy-dn-ee-dl-te-ss-ft-fy);
177
+ font-size: var(--_ctm-buy-dn-ee-dl-te-ss-ft-se);
178
+ color: var(--_ctm-buy-dn-ee-dl-te-ss-cr);
179
+ font-weight: var(--_ctm-buy-dn-ee-dl-te-ss-ft-wt);
180
+ font-style: var(--_ctm-buy-dn-ee-dl-te-ss-ft-se-ic);
181
+ text-decoration: var(--_ctm-buy-dn-ee-dl-te-ss-ue);
182
+ text-align: var(--_ctm-buy-dn-ee-io-ss-tt-an);
183
+ letter-spacing: var(--_ctm-buy-dn-ee-dl-te-ss-lr-sg);
184
+ line-height: var(--_ctm-buy-dn-ee-dl-te-ss-le-ht);
144
185
  margin-bottom: 0.2rem;
145
186
  }
146
187
 
147
- p {
148
- font-weight: bold;
149
- font-size: 0.95rem;
150
- color: #222;
188
+ .sub_title {
189
+ font-family: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-fy);
190
+ font-size: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-se);
191
+ color: var(--_ctm-buy-dn-ee-dl-sb-te-ss-cr);
192
+ font-weight: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-wt);
193
+ font-style: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-se-ic);
194
+ text-decoration: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ue);
195
+ text-align: var(--_ctm-buy-dn-ee-dl-sb-te-ss-tt-an);
196
+ letter-spacing: var(--_ctm-buy-dn-ee-dl-sb-te-ss-lr-sg);
197
+ line-height: var(--_ctm-buy-dn-ee-dl-sb-te-ss-le-ht);
151
198
  }
152
199
  }
153
200
 
@@ -155,6 +202,9 @@
155
202
  display: flex;
156
203
  align-items: center;
157
204
  gap: 0.5rem;
205
+ position: absolute;
206
+ right: 0;
207
+ justify-content: right;
158
208
 
159
209
  .cart-icon {
160
210
  position: relative;
@@ -173,14 +223,29 @@
173
223
  }
174
224
 
175
225
  .cart-price {
176
- h4 {
177
- font-size: 0.95rem;
178
- margin-bottom: 0;
226
+ .title {
227
+ font-family: var(--_ctm-buy-dn-ee-dl-te-ss-ft-fy);
228
+ font-size: var(--_ctm-buy-dn-ee-dl-te-ss-ft-se);
229
+ color: var(--_ctm-buy-dn-ee-dl-te-ss-cr);
230
+ font-weight: var(--_ctm-buy-dn-ee-dl-te-ss-ft-wt);
231
+ font-style: var(--_ctm-buy-dn-ee-dl-te-ss-ft-se-ic);
232
+ text-decoration: var(--_ctm-buy-dn-ee-dl-te-ss-ue);
233
+ text-align: var(--_ctm-buy-dn-ee-io-ss-tt-an);
234
+ letter-spacing: var(--_ctm-buy-dn-ee-dl-te-ss-lr-sg);
235
+ line-height: var(--_ctm-buy-dn-ee-dl-te-ss-le-ht);
179
236
  }
180
237
 
181
- p {
238
+ .sub_title {
182
239
  font-weight: bold;
183
- font-size: 1rem;
240
+ font-family: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-fy);
241
+ font-size: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-se);
242
+ color: var(--_ctm-buy-dn-ee-dl-sb-te-ss-cr);
243
+ // font-weight: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-wt);
244
+ font-style: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ft-se-ic);
245
+ text-decoration: var(--_ctm-buy-dn-ee-dl-sb-te-ss-ue);
246
+ text-align: var(--_ctm-buy-dn-ee-dl-sb-te-ss-tt-an);
247
+ letter-spacing: var(--_ctm-buy-dn-ee-dl-sb-te-ss-lr-sg);
248
+ line-height: var(--_ctm-buy-dn-ee-dl-sb-te-ss-le-ht);
184
249
  }
185
250
  }
186
251
  }
@@ -449,11 +449,13 @@ $resizeActive: '[data-cms-element-resizer="true"]';
449
449
  textarea {
450
450
  width: 100% !important;
451
451
  padding: 8px 12px !important;
452
- border-radius: 0.5rem;
453
- border: 1px solid #d1d5db !important;
454
- background-color: #f9fafb !important;
452
+ border-radius: 4px;
453
+ border: 1px solid #ccc;
454
+ /* background-color: #f9fafb !important; */
455
455
  outline: none;
456
456
  transition: border-color 0.2s ease-in-out;
457
+ font-size: 14px;
458
+ height: 40px;
457
459
 
458
460
  &:focus {
459
461
  border-color: #3b82f6;
@@ -125,16 +125,3 @@ $button-padding: 6px 12px;
125
125
  margin-bottom: 8px;
126
126
  }
127
127
  }
128
-
129
- // .overlay-panel {
130
- // background: white;
131
- // border: 1px solid #ccc;
132
- // box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
133
- // border-radius: 6px;
134
- // padding: 10px;
135
- // max-height: 300px;
136
- // overflow-y: auto;
137
- // transition:
138
- // opacity 0.2s ease,
139
- // transform 0.2s ease;
140
- // }
@@ -0,0 +1,141 @@
1
+ .dropdown-with-input-section {
2
+ display: grid;
3
+ gap: 2px;
4
+ width: max-content;
5
+
6
+ .dropdow-input-section {
7
+ position: relative;
8
+ display: flex;
9
+ justify-content: space-between;
10
+ padding: 8px 12px;
11
+ border: 1px solid #ccc;
12
+ border-radius: 4px;
13
+ width: 240px;
14
+ align-items: center;
15
+ .dropdown-chips {
16
+ display: flex;
17
+ // flex-wrap: wrap;
18
+ gap: 4px;
19
+ // margin-bottom: 4px;
20
+ max-width: 88%;
21
+ min-width: 88%;
22
+ overflow: hidden;
23
+ .dropdown-chip {
24
+ background: #e2e2e2;
25
+ padding: 4px 8px;
26
+ border-radius: 12px;
27
+ font-size: 12px;
28
+ display: flex;
29
+ align-items: center;
30
+ min-width: 48px;
31
+ max-width: 60px;
32
+ .chip-lable {
33
+ max-width: 80%;
34
+ text-overflow: ellipsis;
35
+ white-space: nowrap;
36
+ overflow: hidden;
37
+ }
38
+
39
+ .remove-chip {
40
+ margin-left: 6px;
41
+ cursor: pointer;
42
+ font-weight: bold;
43
+ }
44
+ }
45
+
46
+ .dropdown-chip-overflow {
47
+ background-color: #d1d1d1;
48
+ color: #555;
49
+ cursor: default;
50
+ }
51
+ }
52
+
53
+ .input-field {
54
+ flex: 1;
55
+ font-size: 14px;
56
+ }
57
+ .readonly-input,
58
+ .dropdown__clear__icon,
59
+ .dropdown__icon {
60
+ cursor: pointer;
61
+ }
62
+ .dropdown__clear__icon {
63
+ position: absolute;
64
+ right: 32px;
65
+ }
66
+ .dropdown-menu {
67
+ position: absolute;
68
+ width: 100%;
69
+ top: 35px;
70
+ left: 0px;
71
+ right: 24px;
72
+ background: white;
73
+ border: 1px solid #ddd;
74
+ border-radius: 4px;
75
+ max-height: 200px;
76
+ overflow-y: auto;
77
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
78
+ z-index: 10;
79
+
80
+ li {
81
+ font-size: 14px;
82
+ cursor: pointer;
83
+ height: 40px;
84
+
85
+ &:hover {
86
+ background-color: #f4f4f4;
87
+ }
88
+
89
+ &.no-result {
90
+ color: #aaa;
91
+ cursor: default;
92
+ }
93
+
94
+ .dropdown-item {
95
+ width: 100%;
96
+ height: 100%;
97
+ padding: 8px 12px;
98
+ text-align: left;
99
+ display: flex;
100
+ align-items: center;
101
+ .item-image {
102
+ background-image: url("");
103
+ width: 30px;
104
+ height: 30px;
105
+ }
106
+ .item-image-svg {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ background: #dfdfdf;
111
+ margin-right: 8px;
112
+ }
113
+ }
114
+ .selected {
115
+ background-color: #e6f0ff;
116
+ font-weight: bold;
117
+ }
118
+ }
119
+ }
120
+ .dropdown_template_panel_search {
121
+ background: none;
122
+ padding: 12px;
123
+ border-bottom: 1px solid #dddddd;
124
+ height: max-content !important;
125
+ &:hover {
126
+ background: none !important;
127
+ }
128
+ input {
129
+ padding: 10px 8px;
130
+ border-radius: 4px;
131
+ border: 1px solid #dddddd;
132
+ }
133
+ }
134
+ }
135
+ }
136
+ .dropdown-with-input-section.full-width {
137
+ width: auto;
138
+ .dropdow-input-section {
139
+ width: 100% !important;
140
+ }
141
+ }
package/dist/faq.scss CHANGED
@@ -97,14 +97,14 @@
97
97
  --_sf-show-icon-ff: none;
98
98
  }
99
99
  &[data-divider-show="true"] {
100
- .accordion-item:not(:last-child) {
101
- border-bottom: var(
102
- --_ctm-mob-dn-dr-dr-wh,
103
- var(--_ctm-tab-dn-dr-dr-wh, var(--_ctm-dn-dr-dr-wh))
104
- )
105
- var(--_ctm-mob-dn-dr-br-se, var(--_ctm-tab-dn-dr-br-se, var(--_ctm-dn-dr-br-se)))
106
- var(--_ctm-mob-dn-dr-br-cr, var(--_ctm-tab-dn-dr-br-cr, var(--_ctm-dn-dr-br-cr)));
107
- }
100
+ // .accordion-item:not(:last-child) {
101
+ // border-bottom: var(
102
+ // --_ctm-mob-dn-dr-dr-wh,
103
+ // var(--_ctm-tab-dn-dr-dr-wh, var(--_ctm-dn-dr-dr-wh))
104
+ // )
105
+ // var(--_ctm-mob-dn-dr-br-se, var(--_ctm-tab-dn-dr-br-se, var(--_ctm-dn-dr-br-se)))
106
+ // var(--_ctm-mob-dn-dr-br-cr, var(--_ctm-tab-dn-dr-br-cr, var(--_ctm-dn-dr-br-cr)));
107
+ // }
108
108
  }
109
109
  }
110
110
 
@@ -113,12 +113,12 @@
113
113
  display: grid;
114
114
  overflow: clip;
115
115
  // height: 30px;
116
- gap: var(
117
- --_ctm-mob-lt-te-ad-dn-sg,
118
- var(--_ctm-tab-lt-te-ad-dn-sg, var(--_ctm-lt-te-ad-dn-sg))
119
- );
120
116
 
121
- padding-block: var(--_ctm-lt-im-vl-pg, var(--_tst-lt-im-vl-pg));
117
+ // padding-block: var(--_ctm-lt-im-vl-pg, var(--_tst-lt-im-vl-pg));
118
+ // padding-inline: var(
119
+ // --_ctm-mob-lt-im-hl-pg,
120
+ // var(--_ctm-tab-lt-im-hl-pg, var(--_ctm-lt-im-hl-pg))
121
+ // );
122
122
 
123
123
  grid-template-rows: var(
124
124
  --_self-active-gtr,
@@ -189,15 +189,11 @@
189
189
  align-items: center;
190
190
  justify-content: var(--_sf-jc, space-between);
191
191
  cursor: pointer;
192
- padding-block-end: var(--_sf-dc-pd, var(--_sf-pd-cd));
192
+ // padding-block-end: var(--_sf-dc-pd, var(--_sf-pd-cd));
193
193
  background-color: var(
194
194
  --_ctm-mob-dn-cd-an-im-bd-cr,
195
195
  var(--_ctm-tab-dn-cd-an-im-bd-cr, var(--_ctm-dn-cd-an-im-bd-cr))
196
196
  );
197
- padding-inline: var(
198
- --_ctm-mob-lt-im-hl-pg,
199
- var(--_ctm-tab-lt-im-hl-pg, var(--_ctm-lt-im-hl-pg))
200
- );
201
197
 
202
198
  p {
203
199
  // padding-inline: var(--_sf-cd-gp);
@@ -281,6 +277,10 @@
281
277
  &[data-state="open"] {
282
278
  // overflow: inherit;
283
279
  // height: auto;
280
+ gap: var(
281
+ --_ctm-mob-lt-te-ad-dn-sg,
282
+ var(--_ctm-tab-lt-te-ad-dn-sg, var(--_ctm-lt-te-ad-dn-sg))
283
+ );
284
284
 
285
285
  --_self-active-gtr: minmax(
286
286
  var(
@@ -339,7 +339,7 @@
339
339
  align-items: center;
340
340
  justify-content: var(--_sf-jc, space-between);
341
341
  cursor: pointer;
342
- padding-block-end: var(--_sf-dc-pd, var(--_sf-pd-cd));
342
+ // padding-block-end: var(--_sf-dc-pd, var(--_sf-pd-cd));
343
343
  background-color: var(
344
344
  --_ctm-mob-dn-ed-an-im-bd-cr,
345
345
  var(--_ctm-tab-dn-ed-an-im-bd-cr, var(--_ctm-dn-ed-an-im-bd-cr))
@@ -412,15 +412,11 @@
412
412
  }
413
413
  .accordion-description {
414
414
  display: block;
415
- padding-block-end: var(--_sf-dc-pd-bt);
415
+ // padding-block-end: var(--_sf-dc-pd-bt);
416
416
  background-color: var(
417
417
  --_ctm-mob-dn-ed-an-im-bd-cr-dc,
418
418
  var(--_ctm-tab-dn-ed-an-im-bd-cr-dc, var(--_ctm-dn-ed-an-im-bd-cr-dc))
419
419
  );
420
- padding-inline: var(
421
- --_ctm-mob-lt-im-hl-pg,
422
- var(--_ctm-tab-lt-im-hl-pg, var(--_ctm-lt-im-hl-pg))
423
- );
424
420
 
425
421
  p {
426
422
  color: var(
@@ -20,30 +20,40 @@
20
20
  // ),
21
21
  // );
22
22
 
23
- $breakPoints: (
23
+ $breakPointsV2: (
24
24
  desktop: (
25
- min: 1024px,
25
+ min: 768px,
26
26
  max: 99999px,
27
27
  ),
28
28
  mobile: (
29
29
  min: 10px,
30
30
  max: 767px,
31
31
  ),
32
- tablet: (
32
+ laptop: (
33
33
  min: 768px,
34
34
  max: 1023px,
35
35
  ),
36
36
  );
37
37
 
38
+ @function safe-map-get($map, $key) {
39
+ @if $map != null and type-of($map) == "map" and map-has-key($map, $key) {
40
+ @return map.get($map, $key);
41
+ }
42
+ @return null;
43
+ }
44
+
38
45
  @mixin prepareMediaQueries($list) {
39
- @each $mediaKey, $mediaValue in $breakPoints {
40
- $maxWidth: map.get($mediaValue, max);
41
- $minWidth: map.get($mediaValue, min);
42
- @media only screen and (max-width: #{$maxWidth}) and (min-width: #{$minWidth}) {
43
- @each $key, $value in $list {
44
- $value1: map.get($value, $mediaKey);
45
- @if ($value1 != null) {
46
- #{$key}: $value1;
46
+ @each $mediaKey, $mediaValue in $breakPointsV2 {
47
+ $maxWidth: safe-map-get($mediaValue, max);
48
+ $minWidth: safe-map-get($mediaValue, min);
49
+
50
+ @if $maxWidth != null and $minWidth != null {
51
+ @media only screen and (max-width: #{$maxWidth}) and (min-width: #{$minWidth}) {
52
+ @each $key, $value in $list {
53
+ $value1: safe-map-get($value, $mediaKey);
54
+ @if $value1 != null {
55
+ #{$key}: $value1;
56
+ }
47
57
  }
48
58
  }
49
59
  }
@@ -75,16 +85,23 @@ $breakPoints: (
75
85
  }
76
86
  }
77
87
 
78
- @function getListOfResponsive($desktop, $mobile, $latop: "optional") {
88
+ @function getListOfResponsive($desktop, $mobile, $laptop: "optional") {
79
89
  $list: (
80
90
  desktop: $desktop,
81
91
  mobile: $mobile,
82
92
  );
83
- @if ($latop != "optional") {
93
+ @if ($laptop != "optional") {
94
+ $list: map-merge(
95
+ $list,
96
+ (
97
+ laptop: $laptop,
98
+ )
99
+ );
100
+ } @else {
84
101
  $list: map-merge(
85
102
  $list,
86
103
  (
87
- laptop: $latop,
104
+ laptop: $desktop,
88
105
  )
89
106
  );
90
107
  }
@@ -129,9 +146,19 @@ $breakPoints: (
129
146
  #{$key2}: #{$value2};
130
147
  }
131
148
  } @else {
132
- @media only screen and (max-width: #{map.get(map.get($breakPoints, $key1), max)}) and (min-width: #{map.get(map.get($breakPoints, $key1), min)}) {
133
- @each $key2, $value2 in $value1 {
134
- #{$key2}: #{$value2};
149
+ $mediaValue: safe-map-get($breakPointsV2, $key1);
150
+ $maxWidth: safe-map-get($mediaValue, max);
151
+ $minWidth: safe-map-get($mediaValue, min);
152
+ // @media only screen and (max-width: #{map.get(map.get($breakPointsV2, $key1), max)}) and (min-width: #{map.get(map.get($breakPointsV2, $key1), min)}) {
153
+ // @each $key2, $value2 in $value1 {
154
+ // #{$key2}: #{$value2};
155
+ // }
156
+ // }
157
+ @if $maxWidth != null and $minWidth != null {
158
+ @media only screen and (max-width: #{$maxWidth}) and (min-width: #{$minWidth}) {
159
+ @each $key2, $value2 in $value1 {
160
+ #{$key2}: #{$value2};
161
+ }
135
162
  }
136
163
  }
137
164
  }
@@ -147,7 +174,15 @@ $breakPoints: (
147
174
  #{$key2}: #{$value2};
148
175
  }
149
176
  } @else {
150
- @media only screen and (max-width: #{map.get(map.get($breakPoints, $key1), max)}) and (min-width: #{map.get(map.get($breakPoints, $key1), min)}) {
177
+ // @media only screen and (max-width: #{map.get(map.get($breakPoints, $key1), max)}) and (min-width: #{map.get(map.get($breakPoints, $key1), min)}) {
178
+ // @each $key2, $value2 in $value1 {
179
+ // #{$key2}: #{$value2};
180
+ // }
181
+ // }
182
+ $mediaValue: safe-map-get($breakPointsV2, $key1);
183
+ $maxWidth: safe-map-get($mediaValue, max);
184
+ $minWidth: safe-map-get($mediaValue, min);
185
+ @media only screen and (max-width: #{$maxWidth}) and (min-width: #{$minWidth}) {
151
186
  @each $key2, $value2 in $value1 {
152
187
  #{$key2}: #{$value2};
153
188
  }