zz-shopify-components 0.0.1-beta.1

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 (61) hide show
  1. package/README.md +12 -0
  2. package/assets/fade-in-content.js +169 -0
  3. package/assets/gsap.min.js +11 -0
  4. package/assets/http-request.js +73 -0
  5. package/assets/jquery.js +2 -0
  6. package/assets/lozad.js +10 -0
  7. package/assets/site-jump.js +52 -0
  8. package/assets/site-jumpV2.js +35 -0
  9. package/assets/swiper-bundle.min.css +13 -0
  10. package/assets/swiper-bundle.min.js +14 -0
  11. package/assets/swiper.css +331 -0
  12. package/assets/zz-components.css +323 -0
  13. package/assets/zz-components.js +166 -0
  14. package/blocks/zz-accessories-item.liquid +183 -0
  15. package/blocks/zz-accessories-swiper.liquid +223 -0
  16. package/blocks/zz-button.liquid +189 -0
  17. package/blocks/zz-content-description-html.liquid +199 -0
  18. package/blocks/zz-content-description.liquid +200 -0
  19. package/blocks/zz-flex-layout-bg-block.liquid +520 -0
  20. package/blocks/zz-flex-layout-block.liquid +545 -0
  21. package/blocks/zz-flex-layout-widget.liquid +318 -0
  22. package/blocks/zz-full-screen-swiper.liquid +444 -0
  23. package/blocks/zz-icon.liquid +46 -0
  24. package/blocks/zz-mail.liquid +135 -0
  25. package/blocks/zz-mb-swiper-pc-flex.liquid +270 -0
  26. package/blocks/zz-ratio-image.liquid +177 -0
  27. package/blocks/zz-ratio-video.liquid +112 -0
  28. package/blocks/zz-responsive-width-image.liquid +219 -0
  29. package/blocks/zz-responsive-width-video.liquid +163 -0
  30. package/blocks/zz-scroll-animate-bg-text.liquid +265 -0
  31. package/blocks/zz-scroll-cover.liquid +64 -0
  32. package/blocks/zz-tag.liquid +48 -0
  33. package/blocks/zz-text.liquid +225 -0
  34. package/blocks/zz-title.liquid +284 -0
  35. package/blocks/zz-video-button.liquid +81 -0
  36. package/blocks/zz-video-swiper-perview-item.liquid +216 -0
  37. package/blocks/zz-video-swiper-perview.liquid +582 -0
  38. package/component.config.json +4 -0
  39. package/package.json +23 -0
  40. package/scripts/postinstall-v2.js +47 -0
  41. package/scripts/postinstall.js +39 -0
  42. package/sections/zz-flex-layout-section.liquid +266 -0
  43. package/sections/zz-navigation-tab-v3.liquid +403 -0
  44. package/sections/zz-navigation-tab.liquid +410 -0
  45. package/sections/zz-video-collapse-swiper.liquid +522 -0
  46. package/sections/zz-video-tab-swiper.liquid +745 -0
  47. package/snippets/zz-button.liquid +70 -0
  48. package/snippets/zz-content-text.liquid +56 -0
  49. package/snippets/zz-h2.liquid +31 -0
  50. package/snippets/zz-h3.liquid +31 -0
  51. package/snippets/zz-h4.liquid +30 -0
  52. package/snippets/zz-h5.liquid +39 -0
  53. package/snippets/zz-h6.liquid +39 -0
  54. package/snippets/zz-icon.liquid +74 -0
  55. package/snippets/zz-img.liquid +44 -0
  56. package/snippets/zz-prev-next-btn.liquid +62 -0
  57. package/snippets/zz-spoke.liquid +142 -0
  58. package/snippets/zz-tag.liquid +22 -0
  59. package/snippets/zz-video-button.liquid +55 -0
  60. package/snippets/zz-video-md.liquid +117 -0
  61. package/snippets/zz-video.liquid +117 -0
@@ -0,0 +1,331 @@
1
+ .titled-horizontal-swiper .slider-section-title {
2
+ color: white;
3
+ text-align: center;
4
+ }
5
+
6
+ .titled-horizontal-swiper .slider-section-title h2 {
7
+ color: white;
8
+ }
9
+
10
+ .titled-horizontal-swiper .slider-section-title p {
11
+ color: white;
12
+ }
13
+
14
+ .titled-horizontal-swiper .slider-container {
15
+ display: flex;
16
+ flex-direction: row;
17
+ justify-content: center;
18
+ align-items: center;
19
+ position: relative;
20
+ }
21
+
22
+ .titled-horizontal-swiper .slider-content-container {
23
+ position: relative;
24
+ display: flex;
25
+ }
26
+
27
+ .titled-horizontal-swiper .slider-indicators {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ position: absolute;
32
+ bottom: 0px;
33
+ left: 0px;
34
+ }
35
+
36
+ .titled-horizontal-swiper .swiper-indicator-prev,
37
+ .titled-horizontal-swiper .swiper-indicator-next {
38
+ z-index: 100;
39
+ }
40
+
41
+ .titled-horizontal-swiper .slider-index-indicator-container {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ }
46
+
47
+ .titled-horizontal-swiper .swiper-pagination-bullet {
48
+ width: 6px;
49
+ height: 6px;
50
+ background-color: rgba(255, 255, 255);
51
+ border-radius: 3px;
52
+ margin: 0 6px;
53
+ z-index: 100;
54
+ opacity: 0.5;
55
+ }
56
+
57
+ .titled-horizontal-swiper .swiper-pagination-bullet-active {
58
+ background-color: white;
59
+ opacity: 1;
60
+ }
61
+
62
+
63
+ .titled-horizontal-swiper .slider-item .slider-item-content {
64
+ color: white;
65
+ }
66
+
67
+ .titled-horizontal-swiper .slider-item .slider-item-image {
68
+ width: 700px;
69
+ height: 392px;
70
+ position: relative;
71
+ }
72
+
73
+ .titled-horizontal-swiper .video-play-icon {
74
+ position: absolute;
75
+ left: 50%;
76
+ transform: translate(-50%, -50%);
77
+ cursor: pointer;
78
+ }
79
+
80
+ .titled-horizontal-swiper .slider-item .slider-item-image .video-play-icon {
81
+ top: 50%;
82
+ }
83
+
84
+ .titled-horizontal-swiper .slider-item .slider-item-image-mobile .video-play-icon {
85
+ top: 40%;
86
+ }
87
+
88
+ .titled-horizontal-swiper .slider-item .slider-item-image img {
89
+ border-radius: 16px;
90
+ width: 700px;
91
+ height: 392px;
92
+ }
93
+
94
+ .titled-horizontal-swiper .slider-item .slider-item-image video {
95
+ border-radius: 16px;
96
+ width: 700px;
97
+ height: 392px;
98
+ }
99
+
100
+ .titled-horizontal-swiper .slider-item .slider-item-image-mobile img {
101
+ border-radius: 12px;
102
+ }
103
+
104
+ .titled-horizontal-swiper .slider-item .slider-item-image-mobile video {
105
+ border-radius: 12px;
106
+ }
107
+
108
+ .titled-horizontal-swiper .slider-item-content .slider-item-head-notes {
109
+ color: white;
110
+ }
111
+
112
+ @media (max-width: 768px) {
113
+ .titled-horizontal-swiper .slider-section-title {
114
+ padding-bottom: 30px
115
+ }
116
+
117
+ .titled-horizontal-swiper .slider-section-title h2 {
118
+ font-size: 24px;
119
+ line-height: 36px;
120
+ }
121
+
122
+ .titled-horizontal-swiper .slider-section-title p {
123
+ margin-top: 4px;
124
+ font-size: 16px;
125
+ line-height: 24px;
126
+ }
127
+
128
+ .titled-horizontal-swiper .slider-container {
129
+ width: 100%;
130
+ /* height: 522px; */
131
+ overflow: hidden;
132
+ flex-direction: row;
133
+ justify-content: flex-start;
134
+ align-items: flex-start;
135
+ position: relative;
136
+ }
137
+
138
+ .titled-horizontal-swiper .slider-content-container {
139
+ width: 100%;
140
+ }
141
+
142
+ .titled-horizontal-swiper .slider-item {
143
+ display: flex;
144
+ flex-direction: column;
145
+ flex: 0 0 100%;
146
+ width: 100%;
147
+ }
148
+
149
+ .titled-horizontal-swiper .slider-item-content {
150
+ padding: 16px 20px;
151
+ width: 100%;
152
+ min-height: 42px;
153
+ }
154
+
155
+ .titled-horizontal-swiper .slider-item-content .slider-item-head-notes {
156
+ font-size: 12px;
157
+ line-height: 18px;
158
+ margin-top: 0;
159
+ margin-bottom: 8px;
160
+ }
161
+
162
+ .titled-horizontal-swiper .slider-item-content h4 {
163
+ text-align: left;
164
+ font-size: 18px;
165
+ line-height: 21.6px;
166
+ margin: 12px 0 ;
167
+ width: 100%;
168
+ }
169
+
170
+ .titled-horizontal-swiper .slider-item-content p {
171
+ font-size: 12px;
172
+ margin-top: 4px;
173
+ line-height: 18px;
174
+ width: calc(100% - 40px);
175
+ }
176
+
177
+ .titled-horizontal-swiper .slider-item-image {
178
+ display: none;
179
+ }
180
+
181
+ .titled-horizontal-swiper .slider-item-image-mobile {
182
+ padding: 0 20px;
183
+ overflow: hidden;
184
+ }
185
+
186
+ .titled-horizontal-swiper .slider-item-image-mobile img {
187
+ width: 100%;
188
+ object-fit: contain;
189
+ }
190
+
191
+ .titled-horizontal-swiper .slider-item-image-mobile video {
192
+ width: 100%;
193
+ object-fit: contain;
194
+ }
195
+
196
+ .titled-horizontal-swiper .slider-indicators {
197
+ position: absolute;
198
+ width: 100%;
199
+ bottom: 20%;
200
+ justify-content: center;
201
+ justify-content: space-between;
202
+ padding: 0 38px;
203
+ }
204
+
205
+ .titled-horizontal-swiper .swiper-indicator-prev,
206
+ .titled-horizontal-swiper .swiper-indicator-next {
207
+ }
208
+
209
+ .titled-horizontal-swiper .slider-indicator-arrow {
210
+ width: 10px;
211
+ height: 10px;
212
+ margin: 13px;
213
+ }
214
+
215
+ .titled-horizontal-swiper .slider-index-indicator-container {
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ }
220
+ }
221
+
222
+ @media (min-width: 768px) {
223
+ .titled-horizontal-swiper .slider-section-title {
224
+ padding-bottom: 100px
225
+ }
226
+
227
+ .titled-horizontal-swiper .slider-section-title h2 {
228
+ font-size: 60px;
229
+ line-height: 90px;
230
+ }
231
+
232
+ .titled-horizontal-swiper .slider-section-title p {
233
+ margin-top: 12px;
234
+ font-size: 28px;
235
+ line-height: 42px;
236
+ }
237
+
238
+ .titled-horizontal-swiper .slider-container {
239
+ width: 1220px;
240
+ position: relative;
241
+ overflow: hidden;
242
+ }
243
+
244
+ .titled-horizontal-swiper .slider-content-container {
245
+ width: 1220px;
246
+ height: 392px;
247
+ flex: 0 0 1220px;
248
+ }
249
+
250
+
251
+ .titled-horizontal-swiper .slider-item {
252
+ flex: 0 0 1220px;
253
+ width: 1220px;
254
+ height: 392px;
255
+
256
+ display: flex;
257
+ flex-wrap: nowrap;
258
+ }
259
+
260
+ .titled-horizontal-swiper .slider-align-left .slider-item {
261
+ justify-content: flex-start;
262
+ flex-direction: row;
263
+ }
264
+
265
+ .titled-horizontal-swiper .slider-align-left .slider-indicators {
266
+ left: 0px;
267
+ }
268
+
269
+ .titled-horizontal-swiper .slider-align-right .slider-item {
270
+ justify-content: flex-end;
271
+ flex-direction: row-reverse;
272
+ }
273
+
274
+ .titled-horizontal-swiper .slider-align-right .slider-indicators {
275
+ left: 760px;
276
+ }
277
+
278
+ .titled-horizontal-swiper .slider-item-content {
279
+ width: 520px;
280
+ margin-top: 60px;
281
+ }
282
+
283
+ .titled-horizontal-swiper .slider-align-left .slider-item-content {
284
+ padding-right: 60px;
285
+ }
286
+
287
+ .titled-horizontal-swiper .slider-item-content .slider-item-head-notes {
288
+ font-size: 16px;
289
+ line-height: 24px;
290
+ margin: 0 0 12px 0;
291
+ }
292
+
293
+ .titled-horizontal-swiper .slider-align-right .slider-item-content .slider-item-head-notes {
294
+ margin-left: 60px;
295
+ }
296
+
297
+ .titled-horizontal-swiper .slider-item-content h4 {
298
+ font-size: 32px;
299
+ margin: 12px 0 ;
300
+ line-height: 38.4px;
301
+ }
302
+ .titled-horizontal-swiper .slider-align-right .slider-item-content h4 {
303
+ margin-left: 60px;
304
+ }
305
+
306
+ .titled-horizontal-swiper .slider-item-content p {
307
+ font-size: 16px;
308
+ line-height: 24px;
309
+ margin-top: 16px;
310
+ }
311
+
312
+ .titled-horizontal-swiper .slider-align-right .slider-item-content p {
313
+ margin-left: 60px;
314
+ }
315
+
316
+ .titled-horizontal-swiper .slider-item-image-mobile {
317
+ display: none;
318
+ }
319
+
320
+
321
+
322
+ .titled-horizontal-swiper .slider-indicator:hover {
323
+ background-color: white;
324
+ }
325
+
326
+ .titled-horizontal-swiper .slider-indicator-arrow {
327
+ width: 10px;
328
+ height: 10px;
329
+ margin: 6px;
330
+ }
331
+ }
@@ -0,0 +1,323 @@
1
+ /* tab radio组件 */
2
+ .zz-radio-tabs {
3
+ display: flex;
4
+ align-items: center;
5
+ height: 36px;
6
+ border-radius: 32px;
7
+ background: #FFFFFF;
8
+ }
9
+
10
+ .zz-radio-tabs-black.zz-radio-tabs {
11
+ background: #FFFFFF14;
12
+ }
13
+
14
+ .zz-radio-tabs-wrapper {
15
+ position: relative;
16
+ height: 100%;
17
+ display: block;
18
+
19
+ }
20
+
21
+ .zz-radio-tabs-wrapper input[type="radio"] {
22
+ display: none;
23
+ }
24
+
25
+ zz-radio-tabs-item {
26
+ height: 100%;
27
+ flex: 1;
28
+ }
29
+
30
+ .zz-radio-tabs-label {
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ padding-right: 24px;
35
+ padding-left: 24px;
36
+ color: #000000;
37
+ cursor: pointer;
38
+ transition: background-color 0.2s;
39
+ border-radius: 40px;
40
+ font-family: Poppins;
41
+ font-weight: 500;
42
+ font-size: 12px;
43
+ line-height: 100%;
44
+ letter-spacing: 0px;
45
+ text-align: center;
46
+ vertical-align: middle;
47
+ height: 100%;
48
+ white-space: nowrap;
49
+
50
+ }
51
+
52
+ .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-label {
53
+ color: #FFFFFF;
54
+ }
55
+
56
+ .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
57
+ background: #000000;
58
+ color: #FFFFFF;
59
+ }
60
+
61
+ .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
62
+ background: #FFFFFF1F;
63
+ color: #FFFFFF;
64
+ }
65
+ @media (min-width: 1024px) {
66
+ .zz-radio-tabs {
67
+ height: 48px;
68
+ }
69
+ .zz-radio-tabs-label {
70
+ font-size: 16px;
71
+ }
72
+ }
73
+
74
+ /* select组件 */
75
+ .zz-select-bordered {
76
+ border-color: var(--fallback-bc, oklch(var(--bc) / .2));
77
+ }
78
+
79
+ .zz-select {
80
+ display: inline-flex;
81
+ cursor: pointer;
82
+ -webkit-user-select: none;
83
+ -moz-user-select: none;
84
+ user-select: none;
85
+ -webkit-appearance: none;
86
+ -moz-appearance: none;
87
+ appearance: none;
88
+ color: #000000;
89
+ padding-inline-start: 14px;
90
+ padding-inline-end: 28px;
91
+ font-size: 12px;
92
+ height: 30px;
93
+ line-height: 1.5;
94
+ border-radius: 4px;
95
+ border-width: 1px;
96
+ border-color: #00000026;
97
+ background-color: #fff;
98
+ background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
99
+ background-position: calc(100% - 16px) calc(1px + 50%), calc(100% - 12px) calc(1px + 50%);
100
+ background-size: 4px 4px, 4px 4px;
101
+ background-repeat: no-repeat;
102
+ }
103
+ .zz-select:focus {
104
+ border-color: #FC6C0F;
105
+ outline: none;
106
+ box-shadow: none;
107
+ }
108
+ @media (min-width: 1024px) {
109
+ .zz-select {
110
+ height: 40px;
111
+ font-size: 14px;
112
+ }
113
+ }
114
+ /* 内容描述 */
115
+ .content-text strong {
116
+ color: #000000;
117
+ font-weight: inherit;
118
+ }
119
+ .content-text a {
120
+ color: #378DDD;
121
+ text-decoration: underline;
122
+ }
123
+ .content-text a:hover {
124
+ opacity: 0.8;
125
+ }
126
+ /* 标题 */
127
+ .zz-title-hx p{
128
+ margin: 0;
129
+ }
130
+
131
+ .zz-tag::before {
132
+ content: '';
133
+ position: absolute;
134
+ top: 0;
135
+ left: 0;
136
+ display: block;
137
+ width: 100%;
138
+ height: 100%;
139
+ background: var(--zz-tag-bg-color);
140
+ transform: skew(-20deg);
141
+ border-radius: 4px;
142
+ z-index: -1;
143
+ }
144
+ /* dialog 弹窗组件, PC中间弹出,移动端底部弹出 */
145
+ body.zz-dialog-open {
146
+ overflow: hidden;
147
+ touch-action: none;
148
+ }
149
+ .zz-dialog-mask {
150
+ position: fixed;
151
+ inset: 0;
152
+ background: rgba(0, 0, 0, 0.5);
153
+ display: none;
154
+ z-index: 1000;
155
+ }
156
+ .zz-dialog {
157
+ position: fixed;
158
+ background: #fff;
159
+ border-radius: 12px;
160
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
161
+ z-index: 1001;
162
+ display: none;
163
+ transition: all 0.3s ease;
164
+ }
165
+ @media (min-width: 1024px) {
166
+ .zz-dialog {
167
+ top: 50%;
168
+ left: 50%;
169
+ transform: translate(-50%, -50%) scale(0.7);
170
+ opacity: 0;
171
+
172
+ }
173
+
174
+ .zz-dialog.show {
175
+ transform: translate(-50%, -50%) scale(1);
176
+ opacity: 1;
177
+ }
178
+ }
179
+ @media (max-width: 1023px) {
180
+ .zz-dialog {
181
+ bottom: 0;
182
+ left: 0;
183
+ width: 100%;
184
+ border-bottom-left-radius: 0;
185
+ border-bottom-right-radius: 0;
186
+ transform: translateY(100%);
187
+ }
188
+
189
+ .zz-dialog.show {
190
+ transform: translateY(0);
191
+ }
192
+ }
193
+ .zz-underline {
194
+ text-decoration: none;
195
+ border-bottom: 1px solid currentColor;
196
+ padding-bottom: 2px; /* 调整位置 */
197
+ }
198
+
199
+ /* 按钮样式 zz-btn */
200
+ .zz-btn {
201
+ display: inline-flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ height: 40px;
205
+ padding: 0px 24px;
206
+ border-radius: 4px;
207
+ transition: opacity 0.2s cubic-bezier(.4,0,.2,1);
208
+ outline: none;
209
+ gap: 7px;
210
+ font-weight: 500;
211
+ border: none;
212
+ cursor: pointer;
213
+ }
214
+
215
+ /* 类型和颜色组合 */
216
+ .zz-btn.zz-btn-primary.zz-btn-black {
217
+ background: #000000;
218
+ color: #fff;
219
+ }
220
+ .zz-btn.zz-btn-primary.zz-btn-white {
221
+ background: #fff;
222
+ color: #000000;
223
+ border: 1.5px solid #fff;
224
+ }
225
+ .zz-btn.zz-btn-primary.zz-btn-orange {
226
+ background: #FC6C0F;
227
+ color: #fff;
228
+ }
229
+ .zz-btn.zz-btn-primary-round.zz-btn-black {
230
+ background: #000000;
231
+ color: #fff;
232
+ border-radius: 30px;
233
+ }
234
+ .zz-btn.zz-btn-primary-round.zz-btn-white {
235
+ background: #fff;
236
+ color: #000000;
237
+ border-radius: 30px;
238
+ }
239
+ .zz-btn.zz-btn-default.zz-btn-black {
240
+ background: transparent;
241
+ color: #000000;
242
+ border: 1.5px solid #000000;
243
+ }
244
+ .zz-btn.zz-btn-default.zz-btn-white {
245
+ background: transparent;
246
+ color: #fff;
247
+ border: 1.5px solid #fff;
248
+ }
249
+ .zz-btn.zz-btn-default.zz-btn-orange {
250
+ background: transparent;
251
+ color: #FC6C0F;
252
+ border: 1.5px solid #FC6C0F;
253
+ }
254
+
255
+ .zz-btn.zz-btn-round.zz-btn-black {
256
+ background: transparent;
257
+ color: #000000;
258
+ border: 1.5px solid #000000;
259
+ border-radius: 30px;
260
+ }
261
+ .zz-btn.zz-btn-round.zz-btn-white {
262
+ background: transparent;
263
+ color: #fff;
264
+ border: 1.5px solid #fff;
265
+ border-radius: 30px;
266
+ }
267
+ .zz-btn.zz-btn-round.zz-btn-orange {
268
+ background: transparent;
269
+ color: #ff9900;
270
+ border: 1.5px solid #ff9900;
271
+ border-radius: 30px;
272
+ }
273
+
274
+
275
+ .zz-btn:hover {
276
+ opacity: 0.8;
277
+ }
278
+
279
+ .zz-btn:active {
280
+ transform: scale(0.97);
281
+ }
282
+
283
+ .zz-btn:disabled {
284
+ opacity: 0.5;
285
+ cursor: not-allowed;
286
+ }
287
+ .zz-btn.zz-btn-large {
288
+ height: 42px;
289
+ padding: 0px 28px;
290
+ }
291
+ .zz-btn.zz-btn-small {
292
+ height: 21px;
293
+ padding: 0px 10px;
294
+ font-size: 10px;
295
+ }
296
+ .zz-btn-link.zz-btn-link-small {
297
+ font-size: 10px;
298
+ }
299
+ .zz-btn-link.zz-btn-link-large {
300
+ font-size: 14px;
301
+ }
302
+
303
+ @media (min-width: 1024px) {
304
+ .zz-btn.zz-btn-large {
305
+ height: 48px;
306
+ padding: 0px 32px;
307
+ }
308
+ .zz-btn.zz-btn-small {
309
+ height: 26px;
310
+ padding: 0px 10px;
311
+ font-size: 14px;
312
+ }
313
+ .zz-btn-link.zz-btn-link-small {
314
+ font-size: 12px;
315
+ }
316
+ .zz-btn-link.zz-btn-link-large {
317
+ font-size: 16px;
318
+ }
319
+ }
320
+
321
+ .zz-video {
322
+ border-radius: inherit;
323
+ }