zz-shopify-components 0.32.1-beta.2 → 0.32.1-beta.3
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.
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
{% render 'zz-h6',
|
|
38
38
|
title: block.settings.heading,
|
|
39
39
|
title_color: block.settings.title_color,
|
|
40
|
-
class_name: 'media-box-title tw-text-
|
|
40
|
+
class_name: 'media-box-title tw-text-left max-lg:tw-hidden tw-absolute tw-top-[20px] tw-left-[20px] tw-right-[20px]'
|
|
41
41
|
%}
|
|
42
42
|
{% if block.settings.video_pc != blank %}
|
|
43
43
|
{% if block.settings.video_url_pc != blank %}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
pc_font_size: 16,
|
|
81
81
|
mobile_font_size: 12,
|
|
82
82
|
text_color: block.settings.content_color,
|
|
83
|
-
class_name: 'tw-text-left',
|
|
83
|
+
class_name: 'max-lg:tw-text-center lg:tw-text-left',
|
|
84
84
|
%}
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
|
|
130
130
|
</style>
|
|
131
131
|
|
|
132
|
-
<div class="left-title-desc max-lg:tw-px-[20px] lg:tw-w-[
|
|
132
|
+
<div class="left-title-desc max-lg:tw-px-[20px] lg:tw-w-[460px] xl:tw-w-[531px] tw-flex-shrink-0 max-lg:tw-mb-[20px] fade-in-box">
|
|
133
133
|
|
|
134
134
|
{% render 'zz-h4',
|
|
135
135
|
title: block.settings.heading,
|
|
136
|
-
title_mb: block.settings.
|
|
136
|
+
title_mb: block.settings.heading_mobile,
|
|
137
137
|
title_color: block.settings.text_color,
|
|
138
138
|
class_name: 'content-title tw-text-left tw-mb-[20px] lg:tw-mb-[24px] '
|
|
139
139
|
%}
|
|
@@ -356,6 +356,12 @@
|
|
|
356
356
|
"label": "标题 (Heading)",
|
|
357
357
|
"default": "<p>这里是文字内容</p>"
|
|
358
358
|
},
|
|
359
|
+
{
|
|
360
|
+
"type": "richtext",
|
|
361
|
+
"id": "heading_mobile",
|
|
362
|
+
"label": "标题 移动 (Heading)",
|
|
363
|
+
"default": "<p>这里是文字内容</p>"
|
|
364
|
+
},
|
|
359
365
|
{
|
|
360
366
|
"type": "richtext",
|
|
361
367
|
"id": "desc",
|
package/package.json
CHANGED
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
{% assign collapsible_title_color = section.settings.collapsible_title_color
|
|
349
349
|
| color_modify: 'alpha', 0.5
|
|
350
350
|
%}
|
|
351
|
-
<div class="tw-daisy-collapse-title tw-py-[20px] tw-pl-0 tw-pr-[30px] tw-text-[20px] tw-font-[700] tw-leading-[1]" style="color: {{ collapsible_title_color }};">
|
|
351
|
+
<div class="tw-daisy-collapse-title tw-py-[20px] tw-pl-0 tw-pr-[30px] tw-text-[20px] tw-font-[700] tw-leading-[1.3]" style="color: {{ collapsible_title_color }};">
|
|
352
352
|
{{ collapsible_row.settings.heading }}
|
|
353
353
|
</div>
|
|
354
354
|
<div class="tw-p-0 tw-daisy-collapse-content">
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
display: flex;
|
|
602
602
|
align-items: center;
|
|
603
603
|
justify-content: center;
|
|
604
|
-
|
|
604
|
+
margin: 0px 20px 0px 0px;
|
|
605
605
|
height: 58px;
|
|
606
606
|
padding: 16px;
|
|
607
607
|
{% if section.settings.collapse_button_color == 'black' %}
|
|
@@ -620,10 +620,9 @@
|
|
|
620
620
|
white-space: nowrap;
|
|
621
621
|
height: auto;
|
|
622
622
|
background: none;
|
|
623
|
+
margin: 0;
|
|
623
624
|
|
|
624
625
|
{% endif %}
|
|
625
|
-
|
|
626
|
-
margin: 0;
|
|
627
626
|
width: fit-content;
|
|
628
627
|
font-size: 14px;
|
|
629
628
|
border-top: 0;
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
display: flex;
|
|
27
27
|
gap: 16px;
|
|
28
28
|
justify-content: space-between;
|
|
29
|
+
align-items: flex-end;
|
|
29
30
|
top: 0px;
|
|
30
31
|
left: 0px;
|
|
31
32
|
right:0px;
|
|
@@ -76,18 +77,11 @@
|
|
|
76
77
|
}
|
|
77
78
|
#shopify-section-{{ section.id }} .swiper-pagination-bullet-active .bullet-desc{
|
|
78
79
|
color: #FFFFFF;
|
|
80
|
+
display: block !important;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
#shopify-section-{{ section.id }} {
|
|
84
|
-
padding-top: {{ section.settings.pc_padding_top }}px;
|
|
85
|
-
padding-bottom: {{ section.settings.pc_padding_bottom }}px;
|
|
86
|
-
}
|
|
87
|
-
#shopify-section-{{ section.id }} .zz-video-progress-swiper .swiper-pagination-bullets .swiper-pagination-bullet {
|
|
88
|
-
padding-bottom: 30px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
84
|
+
|
|
91
85
|
@media screen and (max-width: 1024px) {
|
|
92
86
|
#shopify-section-{{ section.id }} {
|
|
93
87
|
padding-left: 20px;
|
|
@@ -127,6 +121,9 @@
|
|
|
127
121
|
#shopify-section-{{ section.id }} .swiper-pagination-horizontal::-webkit-scrollbar {
|
|
128
122
|
display: none; /* Chrome, Safari */
|
|
129
123
|
}
|
|
124
|
+
#shopify-section-{{ section.id }} .bullet-title + .bullet-desc {
|
|
125
|
+
margin-bottom: 10px;
|
|
126
|
+
}
|
|
130
127
|
}
|
|
131
128
|
@media screen and (min-width: 1024px) {
|
|
132
129
|
#shopify-section-{{ section.id }} .content-title {
|
|
@@ -138,6 +135,18 @@
|
|
|
138
135
|
#shopify-section-{{ section.id }} .zz-video-progress-swiper .swiper-slide {
|
|
139
136
|
width: 90vw;
|
|
140
137
|
}
|
|
138
|
+
|
|
139
|
+
#shopify-section-{{ section.id }} {
|
|
140
|
+
padding-top: {{ section.settings.pc_padding_top }}px;
|
|
141
|
+
padding-bottom: {{ section.settings.pc_padding_bottom }}px;
|
|
142
|
+
}
|
|
143
|
+
#shopify-section-{{ section.id }} .zz-video-progress-swiper .swiper-pagination-bullets .swiper-pagination-bullet {
|
|
144
|
+
padding-bottom: 30px;
|
|
145
|
+
}
|
|
146
|
+
#shopify-section-{{ section.id }} .bullet-title + .bullet-desc {
|
|
147
|
+
margin-bottom: 16px;
|
|
148
|
+
}
|
|
149
|
+
|
|
141
150
|
#shopify-section-{{ section.id }} .zz-video-progress-swiper .swiper-slide .media-box {
|
|
142
151
|
position: relative;
|
|
143
152
|
aspect-ratio: 16 / 9;
|
|
@@ -284,7 +293,7 @@
|
|
|
284
293
|
const title = slideTitles[index % slideTitles.length];
|
|
285
294
|
const desc = slideDescs[index % slideDescs.length];
|
|
286
295
|
return `<div class="${className}" {% if section.settings.module_id != blank %} data-track-zz-element="{{ section.settings.module_id }}_change" {% endif %}>
|
|
287
|
-
<div class="bullet-title tw-text-left tw-text-[14px] lg:tw-text-[24px] tw-
|
|
296
|
+
<div class="bullet-title tw-text-left tw-text-[14px] lg:tw-text-[24px] tw-flex tw-items-center tw-gap-[10px]">
|
|
288
297
|
<span class="bullet-active-icon tw-hidden tw-w-[17px] tw-h-[17px] lg:tw-w-[32px] lg:tw-h-[32px]">
|
|
289
298
|
<img class="tw-w-full tw-h-full tw-object-contain" src="{{ section.settings.active_icon | image_url: width: 40 }}" alt="Specs Header" width="40" height="auto">
|
|
290
299
|
|
|
@@ -297,7 +306,7 @@
|
|
|
297
306
|
</span>
|
|
298
307
|
${title}
|
|
299
308
|
</div>
|
|
300
|
-
<div class="bullet-desc tw-text-left tw-text-[10px] lg:tw-text-[16px] tw-leading-[1.5]">${desc}</div>
|
|
309
|
+
<div class="bullet-desc tw-hidden tw-text-left tw-text-[10px] lg:tw-text-[16px] tw-leading-[1.5]">${desc}</div>
|
|
301
310
|
<span class="progress-line"></span>
|
|
302
311
|
</div>`;
|
|
303
312
|
}
|