zz-shopify-components 0.32.1-beta.1 → 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-center max-lg:tw-hidden tw-absolute tw-top-[20px] tw-left-[20px]'
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-[450px] xl:tw-w-[509px] tw-flex-shrink-0 max-lg:tw-mb-[20px] fade-in-box">
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.heading,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.32.1-beta.1",
3
+ "version": "0.32.1-beta.3",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -62,7 +62,6 @@
62
62
  { "value": "black", "label": "黑色" },
63
63
  ],
64
64
  "default": "white",
65
- "visible_if": "{{ section.settings.mobile_style == 'left_right' }}"
66
65
  },
67
66
  {
68
67
  "type": "image_picker",
@@ -349,7 +348,7 @@
349
348
  {% assign collapsible_title_color = section.settings.collapsible_title_color
350
349
  | color_modify: 'alpha', 0.5
351
350
  %}
352
- <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 }};">
353
352
  {{ collapsible_row.settings.heading }}
354
353
  </div>
355
354
  <div class="tw-p-0 tw-daisy-collapse-content">
@@ -552,14 +551,23 @@
552
551
 
553
552
  {% else %}
554
553
  #shopify-section-{{ section.id }} .zz-collapse-swiper .swiper-pagination-bullets {
554
+ display: flex;
555
+ align-items: center;
555
556
  bottom: 170px;
556
557
  left: 50%;
557
558
  transform: translateX(-50%);
558
559
  width: calc(100% - 40px);
559
560
  {% if section.settings.mobile_style == 'tab' %}
560
561
  {% comment %} tab栏展示两行文字 {% endcomment %}
561
- background: white;
562
+
562
563
  border-radius: 10px;
564
+ {% if section.settings.collapse_button_color == 'black' %}
565
+ background: white;
566
+ {% else %}
567
+ background: #282828;
568
+ {% endif %}
569
+
570
+
563
571
 
564
572
  {% else %}
565
573
  {% comment %} tab栏展示一行文字 {% endcomment %}
@@ -589,12 +597,21 @@
589
597
  {% if section.settings.mobile_style == 'tab' %}
590
598
  {% comment %} tab栏展示两行文字 {% endcomment %}
591
599
  box-sizing: border-box;
592
- line-height: normal;
593
600
  border-radius: 10px;
594
- vertical-align: top; /* 关键 */
595
- color: #00000080;
596
- height: 66px;
601
+ display: flex;
602
+ align-items: center;
603
+ justify-content: center;
604
+ margin: 0px 20px 0px 0px;
605
+ height: 58px;
597
606
  padding: 16px;
607
+ {% if section.settings.collapse_button_color == 'black' %}
608
+ color: #00000080;
609
+ background: none;
610
+ {% else %}
611
+ color: #FFFFFF80;
612
+ background: none;
613
+
614
+ {% endif %}
598
615
 
599
616
  {% else %}
600
617
  {% comment %} tab栏展示一行文字 {% endcomment %}
@@ -602,13 +619,12 @@
602
619
  color: #FFFFFFB2;
603
620
  white-space: nowrap;
604
621
  height: auto;
622
+ background: none;
623
+ margin: 0;
605
624
 
606
625
  {% endif %}
607
-
608
- margin: 0;
609
626
  width: fit-content;
610
627
  font-size: 14px;
611
- background: none;
612
628
  border-top: 0;
613
629
  opacity: 1;
614
630
 
@@ -619,8 +635,15 @@
619
635
  #shopify-section-{{ section.id }} .zz-collapse-swiper .swiper-pagination-bullets .swiper-pagination-bullet-active {
620
636
  {% if section.settings.mobile_style == 'tab' %}
621
637
  {% comment %} tab栏展示两行文字 {% endcomment %}
622
- background:#000000;
623
- color: #ffffff;
638
+
639
+
640
+ {% if section.settings.collapse_button_color == 'black' %}
641
+ background:#000000;
642
+ color: #ffffff;
643
+ {% else %}
644
+ background: #0000004D;
645
+ color: #ffffff;
646
+ {% endif %}
624
647
 
625
648
  {% else %}
626
649
  {% comment %} tab栏展示一行文字 {% endcomment %}
@@ -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
- @media screen and (min-width: 1024px) {
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-mb-[10px] lg:tw-mb-[16px] tw-flex tw-items-center tw-gap-[10px]">
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
  }