zz-shopify-components 0.0.21 → 0.0.22

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 (73) hide show
  1. package/CHANGELOG.md +21 -21
  2. package/README.md +56 -56
  3. package/assets/ScrollTrigger.min.js +11 -11
  4. package/assets/gsap.min.js +11 -11
  5. package/assets/jquery.js +2 -2
  6. package/assets/lazy-video.js +2 -2
  7. package/assets/lazyload.min.js +1 -1
  8. package/assets/lozad.js +10 -10
  9. package/assets/site-jump.js +52 -52
  10. package/assets/site-jumpV2.js +35 -35
  11. package/assets/swiper-bundle.min.css +12 -12
  12. package/assets/swiper-bundle.min.js +13 -13
  13. package/assets/swiper.css +330 -330
  14. package/assets/zz-components.css +322 -322
  15. package/assets/zz-components.js +166 -166
  16. package/assets/zz-fade-in-content.js +169 -169
  17. package/blocks/zz-accessories-item.liquid +188 -188
  18. package/blocks/zz-accessories-swiper.liquid +223 -223
  19. package/blocks/zz-button.liquid +216 -216
  20. package/blocks/zz-content-description-html.liquid +201 -201
  21. package/blocks/zz-content-description.liquid +209 -209
  22. package/blocks/zz-flex-layout-bg-block.liquid +524 -524
  23. package/blocks/zz-flex-layout-block.liquid +548 -548
  24. package/blocks/zz-flex-layout-widget.liquid +321 -321
  25. package/blocks/zz-full-screen-swiper.liquid +447 -447
  26. package/blocks/zz-icon.liquid +46 -46
  27. package/blocks/zz-mail.liquid +135 -135
  28. package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
  29. package/blocks/zz-price-tag-mini.liquid +100 -106
  30. package/blocks/zz-price-tag.liquid +41 -41
  31. package/blocks/zz-ratio-image.liquid +181 -181
  32. package/blocks/zz-ratio-video.liquid +115 -115
  33. package/blocks/zz-responsive-width-image.liquid +222 -222
  34. package/blocks/zz-responsive-width-video.liquid +166 -166
  35. package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
  36. package/blocks/zz-scroll-cover.liquid +67 -67
  37. package/blocks/zz-tag.liquid +50 -50
  38. package/blocks/zz-text.liquid +227 -227
  39. package/blocks/zz-title.liquid +287 -287
  40. package/blocks/zz-video-button.liquid +84 -84
  41. package/blocks/zz-video-swiper-perview-item.liquid +221 -221
  42. package/blocks/zz-video-swiper-perview.liquid +585 -585
  43. package/component.config.json +7 -7
  44. package/package.json +1 -1
  45. package/scripts/postinstall-v1.js +39 -39
  46. package/scripts/postinstall-v2.js +47 -47
  47. package/scripts/postinstall-v3.js +51 -51
  48. package/scripts/publish-npm.js +43 -43
  49. package/sections/zz-flex-layout-section.liquid +269 -269
  50. package/sections/zz-navigation-tab-v3.liquid +407 -407
  51. package/sections/zz-navigation-tab.liquid +411 -411
  52. package/sections/zz-shopping-card-list.liquid +399 -399
  53. package/sections/zz-video-collapse-swiper.liquid +522 -522
  54. package/sections/zz-video-tab-swiper.liquid +748 -748
  55. package/snippets/zz-button.liquid +70 -70
  56. package/snippets/zz-content-h3.liquid +15 -15
  57. package/snippets/zz-content-text.liquid +56 -56
  58. package/snippets/zz-h2.liquid +31 -31
  59. package/snippets/zz-h3.liquid +31 -31
  60. package/snippets/zz-h4.liquid +30 -30
  61. package/snippets/zz-h5.liquid +39 -39
  62. package/snippets/zz-h6.liquid +39 -39
  63. package/snippets/zz-icon-next.liquid +17 -17
  64. package/snippets/zz-icon-prev.liquid +17 -17
  65. package/snippets/zz-icon.liquid +74 -74
  66. package/snippets/zz-img.liquid +44 -44
  67. package/snippets/zz-prev-next-btn.liquid +62 -62
  68. package/snippets/zz-price-tag.liquid +22 -22
  69. package/snippets/zz-spoke.liquid +142 -142
  70. package/snippets/zz-tag.liquid +22 -22
  71. package/snippets/zz-video-button.liquid +54 -54
  72. package/snippets/zz-video-md.liquid +117 -117
  73. package/snippets/zz-video.liquid +117 -117
@@ -1,71 +1,71 @@
1
- {% comment %}
2
- 按钮配置选项:
3
- type:按钮类型
4
- - primary:主要按钮
5
- - default:默认按钮
6
- - round:圆角按钮
7
- - link:链接按钮
8
-
9
- color:按钮颜色
10
- - black:黑色
11
- - white:白色
12
- - orange:橙色
13
-
14
- size:按钮尺寸
15
- - large:大号
16
- - medium:中号(默认)
17
- - small:小号
18
-
19
- 其他参数:
20
- - href:链接地址
21
- - backdrop_filter:毛玻璃效果 true/false
22
- - icon:图标名称
23
- - text:按钮文字
24
- - class_name:自定义类名
25
- {% endcomment %}
26
-
27
- {% assign btn_type = type | default: 'primary' %}
28
- {% assign btn_color = color | default: 'black' %}
29
- {% assign btn_size = size | default: 'medium' %}
30
- {% assign icon_size = icon_size | default: 15 %}
31
- {% assign width = width | default: 'auto' %}
32
-
33
- <style>
34
- .zz-btn-icon {
35
- display: flex;
36
- }
37
- </style>
38
-
39
- {% if href %}
40
- {% if btn_type == 'link' %}
41
- <a href="{{ href | default: '#' }}" class="zz-btn-link tw-text-[#378DDD] tw-inline-flex tw-items-center tw-text-[12px] lg:tw-text-[14px] tw-no-underline zz-btn-link-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}">
42
- <span class="zz-btn-text">{{ text }}</span>
43
- {% if postfix_icon %}<span class="zz-btn-icon" style="margin-left: {{ icon_left_margin }}px; margin-right: {{ icon_right_margin }}px;">
44
- {% render 'zz-icon', icon_name: postfix_icon, icon_size: icon_size %}
45
- </span>{% endif %}
46
- </a>
47
- {% else %}
48
- <a
49
- href="{{ href | default: '#' }}"
50
- class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}"
51
- {% if backdrop_filter %}
52
- style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
53
- {% endif %}
54
- >
55
- {% if icon %}<span class="zz-btn-icon">{{ icon }}</span>{% endif %}
56
- <span class="zz-btn-text">{{ text }}</span>
57
- </a>
58
- {% endif %}
59
-
60
- {% else %}
61
-
62
- <button
63
- class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ width }} {{ class_name }}"
64
- {% if backdrop_filter %}
65
- style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
66
- {% endif %}
67
- >
68
- {% if icon %}<span class="zz-btn-icon">{{ icon }}</span>{% endif %}
69
- <span class="zz-btn-text">{{ text }}</span>
70
- </button>
1
+ {% comment %}
2
+ 按钮配置选项:
3
+ type:按钮类型
4
+ - primary:主要按钮
5
+ - default:默认按钮
6
+ - round:圆角按钮
7
+ - link:链接按钮
8
+
9
+ color:按钮颜色
10
+ - black:黑色
11
+ - white:白色
12
+ - orange:橙色
13
+
14
+ size:按钮尺寸
15
+ - large:大号
16
+ - medium:中号(默认)
17
+ - small:小号
18
+
19
+ 其他参数:
20
+ - href:链接地址
21
+ - backdrop_filter:毛玻璃效果 true/false
22
+ - icon:图标名称
23
+ - text:按钮文字
24
+ - class_name:自定义类名
25
+ {% endcomment %}
26
+
27
+ {% assign btn_type = type | default: 'primary' %}
28
+ {% assign btn_color = color | default: 'black' %}
29
+ {% assign btn_size = size | default: 'medium' %}
30
+ {% assign icon_size = icon_size | default: 15 %}
31
+ {% assign width = width | default: 'auto' %}
32
+
33
+ <style>
34
+ .zz-btn-icon {
35
+ display: flex;
36
+ }
37
+ </style>
38
+
39
+ {% if href %}
40
+ {% if btn_type == 'link' %}
41
+ <a href="{{ href | default: '#' }}" class="zz-btn-link tw-text-[#378DDD] tw-inline-flex tw-items-center tw-text-[12px] lg:tw-text-[14px] tw-no-underline zz-btn-link-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}">
42
+ <span class="zz-btn-text">{{ text }}</span>
43
+ {% if postfix_icon %}<span class="zz-btn-icon" style="margin-left: {{ icon_left_margin }}px; margin-right: {{ icon_right_margin }}px;">
44
+ {% render 'zz-icon', icon_name: postfix_icon, icon_size: icon_size %}
45
+ </span>{% endif %}
46
+ </a>
47
+ {% else %}
48
+ <a
49
+ href="{{ href | default: '#' }}"
50
+ class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ class_name }}"
51
+ {% if backdrop_filter %}
52
+ style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
53
+ {% endif %}
54
+ >
55
+ {% if icon %}<span class="zz-btn-icon">{{ icon }}</span>{% endif %}
56
+ <span class="zz-btn-text">{{ text }}</span>
57
+ </a>
58
+ {% endif %}
59
+
60
+ {% else %}
61
+
62
+ <button
63
+ class="zz-btn zz-btn-{{ btn_type }} zz-btn-{{ btn_color }} zz-btn-{{ btn_size }} {% if width == 'full' %} tw-w-full {% endif %} {{ width }} {{ class_name }}"
64
+ {% if backdrop_filter %}
65
+ style="backdrop-filter: blur(12px);background: #FFFFFF0F;"
66
+ {% endif %}
67
+ >
68
+ {% if icon %}<span class="zz-btn-icon">{{ icon }}</span>{% endif %}
69
+ <span class="zz-btn-text">{{ text }}</span>
70
+ </button>
71
71
  {% endif %}
@@ -1,15 +1,15 @@
1
- {%- capture heading_color -%}
2
- {%- if title_color_gradient != blank %}
3
- background-image: {{ title_color_gradient }};
4
- -webkit-background-clip: text;
5
- color: transparent;
6
- {%- else -%}
7
- color: {{ title_color }};
8
- {%- endif %}
9
- {%- endcapture %}
10
- <h3
11
- class='{{ class_name }} content-title tw-m-0 tw-w-[full] {% if italic != false %} tw-italic {% endif %} tw-text-[21px] lg:tw-text-[40px] tw-leading-[1.2] tw-tracking-normal'
12
- style='{{ heading_color }}'
13
- >
14
- {{ title }}
15
- </h3>
1
+ {%- capture heading_color -%}
2
+ {%- if title_color_gradient != blank %}
3
+ background-image: {{ title_color_gradient }};
4
+ -webkit-background-clip: text;
5
+ color: transparent;
6
+ {%- else -%}
7
+ color: {{ title_color }};
8
+ {%- endif %}
9
+ {%- endcapture %}
10
+ <h3
11
+ class='{{ class_name }} content-title tw-m-0 tw-w-[full] {% if italic != false %} tw-italic {% endif %} tw-text-[21px] lg:tw-text-[40px] tw-leading-[1.2] tw-tracking-normal'
12
+ style='{{ heading_color }}'
13
+ >
14
+ {{ title }}
15
+ </h3>
@@ -1,56 +1,56 @@
1
- {% comment %}
2
- text: 内容
3
- mb_text: 移动端内容
4
- color: 标题颜色
5
- highlight_color: 高亮颜色
6
- link_color: 链接颜色
7
- class_name: 增加类名
8
- pc_font_size: pc端字体大小
9
- mobile_font_size: 移动端字体大小
10
- pc_text_align: pc端对齐方式
11
- font_weight: 字体粗细
12
- mobile_text_align: 移动端对齐方式
13
- {% endcomment %}
14
-
15
- {% if text != blank %}
16
- <div class="content-text content-text-pc max-lg:tw-hidden tw-text-[#170B01B2] tw-text-[16px] tw-leading-[1.5] tw-text-left {{ class_name }} "
17
- style="color: {{ text_color }};font-weight: {{ font_weight }};
18
- font-size: {{ pc_font_size }}px;
19
- text-align: {{ pc_text_align }};
20
- {% if pc_font_line_height %}line-height: {{ pc_font_line_height }};{% endif %}"
21
- >
22
- {{ text }}
23
- </div>
24
- {% endif %}
25
-
26
- {% if mb_text != blank %}
27
- <div
28
- class="content-text content-text-mobile lg:tw-hidden tw-text-[#170B01B2] tw-text-[14px] tw-leading-[1.5] tw-text-left {{ class_name }}"
29
- style="color: {{ text_color }};font-weight: {{ font_weight }};
30
- font-size: {{ mobile_font_size }}px;
31
- text-align: {{ mobile_text_align }};
32
- {% if mobile_font_line_height %}line-height: {{ mobile_font_line_height }};{% endif %}"
33
- >
34
- {{ mb_text | default: text }}
35
- </div>
36
- {% endif %}
37
-
38
-
39
-
40
-
41
- <style>
42
-
43
- {% if highlight_color %}
44
- #shopify-section-{{ section.id }} .content-text strong {
45
- color: {{ highlight_color }};
46
- font-weight: inherit;
47
- }
48
- {% endif %}
49
- {% if link_color %}
50
- #shopify-section-{{ section.id }} .content-text a {
51
- color: {{ link_color }};
52
- text-decoration: underline;
53
- }
54
- {% endif %}
55
-
56
- </style>
1
+ {% comment %}
2
+ text: 内容
3
+ mb_text: 移动端内容
4
+ color: 标题颜色
5
+ highlight_color: 高亮颜色
6
+ link_color: 链接颜色
7
+ class_name: 增加类名
8
+ pc_font_size: pc端字体大小
9
+ mobile_font_size: 移动端字体大小
10
+ pc_text_align: pc端对齐方式
11
+ font_weight: 字体粗细
12
+ mobile_text_align: 移动端对齐方式
13
+ {% endcomment %}
14
+
15
+ {% if text != blank %}
16
+ <div class="content-text content-text-pc max-lg:tw-hidden tw-text-[#170B01B2] tw-text-[16px] tw-leading-[1.5] tw-text-left {{ class_name }} "
17
+ style="color: {{ text_color }};font-weight: {{ font_weight }};
18
+ font-size: {{ pc_font_size }}px;
19
+ text-align: {{ pc_text_align }};
20
+ {% if pc_font_line_height %}line-height: {{ pc_font_line_height }};{% endif %}"
21
+ >
22
+ {{ text }}
23
+ </div>
24
+ {% endif %}
25
+
26
+ {% if mb_text != blank %}
27
+ <div
28
+ class="content-text content-text-mobile lg:tw-hidden tw-text-[#170B01B2] tw-text-[14px] tw-leading-[1.5] tw-text-left {{ class_name }}"
29
+ style="color: {{ text_color }};font-weight: {{ font_weight }};
30
+ font-size: {{ mobile_font_size }}px;
31
+ text-align: {{ mobile_text_align }};
32
+ {% if mobile_font_line_height %}line-height: {{ mobile_font_line_height }};{% endif %}"
33
+ >
34
+ {{ mb_text | default: text }}
35
+ </div>
36
+ {% endif %}
37
+
38
+
39
+
40
+
41
+ <style>
42
+
43
+ {% if highlight_color %}
44
+ #shopify-section-{{ section.id }} .content-text strong {
45
+ color: {{ highlight_color }};
46
+ font-weight: inherit;
47
+ }
48
+ {% endif %}
49
+ {% if link_color %}
50
+ #shopify-section-{{ section.id }} .content-text a {
51
+ color: {{ link_color }};
52
+ text-decoration: underline;
53
+ }
54
+ {% endif %}
55
+
56
+ </style>
@@ -1,31 +1,31 @@
1
- {% comment %}
2
- title: 标题
3
- title_mb: 移动端标题
4
- title_color_gradient: 标题颜色渐变
5
- title_color: 标题颜色
6
- class_name: 增加类名
7
- italic: 斜体
8
- {% endcomment %}
9
- {%- capture heading_color -%}
10
- {%- if title_color_gradient != blank %}
11
- background-image: {{ title_color_gradient }};
12
- -webkit-background-clip: text;
13
- color: transparent;
14
- {%- elsif title_color != blank -%}
15
- color: {{ title_color }};
16
- {%- endif %}
17
- {%- endcapture %}
18
-
19
- <h2
20
- class='{{ class_name }} zz-title-hx title-h2 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[60px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
- >
23
- {{ title }}
24
- </h2>
25
- <h2
26
- class='{{ class_name }} zz-title-hx title-h2 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[28px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
27
- style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
28
- >
29
- {{ title_mb | default: title }}
30
- </h2>
31
-
1
+ {% comment %}
2
+ title: 标题
3
+ title_mb: 移动端标题
4
+ title_color_gradient: 标题颜色渐变
5
+ title_color: 标题颜色
6
+ class_name: 增加类名
7
+ italic: 斜体
8
+ {% endcomment %}
9
+ {%- capture heading_color -%}
10
+ {%- if title_color_gradient != blank %}
11
+ background-image: {{ title_color_gradient }};
12
+ -webkit-background-clip: text;
13
+ color: transparent;
14
+ {%- elsif title_color != blank -%}
15
+ color: {{ title_color }};
16
+ {%- endif %}
17
+ {%- endcapture %}
18
+
19
+ <h2
20
+ class='{{ class_name }} zz-title-hx title-h2 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[60px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
+ >
23
+ {{ title }}
24
+ </h2>
25
+ <h2
26
+ class='{{ class_name }} zz-title-hx title-h2 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[28px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
27
+ style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
28
+ >
29
+ {{ title_mb | default: title }}
30
+ </h2>
31
+
@@ -1,31 +1,31 @@
1
- {% comment %}
2
- title: 标题
3
- title_mb: 移动端标题
4
- title_color_gradient: 标题颜色渐变
5
- title_color: 标题颜色
6
- class_name: 增加类名
7
- italic: 斜体
8
- {% endcomment %}
9
- {%- capture heading_color -%}
10
- {%- if title_color_gradient != blank %}
11
- background-image: {{ title_color_gradient }};
12
- -webkit-background-clip: text;
13
- color: transparent;
14
- {%- elsif title_color != blank -%}
15
- color: {{ title_color }};
16
- {%- endif %}
17
- {%- endcapture %}
18
-
19
- <h3
20
- class='{{ class_name }} zz-title-hx title-h3 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[48px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
- >
23
- {{ title }}
24
- </h3>
25
- <h3
26
- class='{{ class_name }} zz-title-hx title-h3 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
27
- style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
28
- >
29
- {{ title_mb | default: title }}
30
- </h3>
31
-
1
+ {% comment %}
2
+ title: 标题
3
+ title_mb: 移动端标题
4
+ title_color_gradient: 标题颜色渐变
5
+ title_color: 标题颜色
6
+ class_name: 增加类名
7
+ italic: 斜体
8
+ {% endcomment %}
9
+ {%- capture heading_color -%}
10
+ {%- if title_color_gradient != blank %}
11
+ background-image: {{ title_color_gradient }};
12
+ -webkit-background-clip: text;
13
+ color: transparent;
14
+ {%- elsif title_color != blank -%}
15
+ color: {{ title_color }};
16
+ {%- endif %}
17
+ {%- endcapture %}
18
+
19
+ <h3
20
+ class='{{ class_name }} zz-title-hx title-h3 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[48px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
+ >
23
+ {{ title }}
24
+ </h3>
25
+ <h3
26
+ class='{{ class_name }} zz-title-hx title-h3 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
27
+ style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
28
+ >
29
+ {{ title_mb | default: title }}
30
+ </h3>
31
+
@@ -1,30 +1,30 @@
1
- {% comment %}
2
- title: 标题
3
- title_mb: 移动端标题
4
- title_color_gradient: 标题颜色渐变
5
- title_color: 标题颜色
6
- class_name: 增加类名
7
- {% endcomment %}
8
- {%- capture heading_color -%}
9
- {%- if title_color_gradient != blank %}
10
- background-image: {{ title_color_gradient }};
11
- -webkit-background-clip: text;
12
- color: transparent;
13
- {%- elsif title_color != blank -%}
14
- color: {{ title_color }};
15
- {%- endif %}
16
- {%- endcapture %}
17
-
18
- <h4
19
- class='{{ class_name }} zz-title-hx title-h4 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[40px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
20
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
21
- >
22
- {{ title }}
23
- </h4>
24
- <h4
25
- class='{{ class_name }} zz-title-hx title-h4 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[20px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
26
- style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
27
- >
28
- {{ title_mb | default: title }}
29
- </h4>
30
-
1
+ {% comment %}
2
+ title: 标题
3
+ title_mb: 移动端标题
4
+ title_color_gradient: 标题颜色渐变
5
+ title_color: 标题颜色
6
+ class_name: 增加类名
7
+ {% endcomment %}
8
+ {%- capture heading_color -%}
9
+ {%- if title_color_gradient != blank %}
10
+ background-image: {{ title_color_gradient }};
11
+ -webkit-background-clip: text;
12
+ color: transparent;
13
+ {%- elsif title_color != blank -%}
14
+ color: {{ title_color }};
15
+ {%- endif %}
16
+ {%- endcapture %}
17
+
18
+ <h4
19
+ class='{{ class_name }} zz-title-hx title-h4 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[40px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
20
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
21
+ >
22
+ {{ title }}
23
+ </h4>
24
+ <h4
25
+ class='{{ class_name }} zz-title-hx title-h4 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[20px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
26
+ style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
27
+ >
28
+ {{ title_mb | default: title }}
29
+ </h4>
30
+
@@ -1,39 +1,39 @@
1
- {% comment %}
2
- title: 标题
3
- title_mb: 移动端标题
4
- title_color_gradient: 标题颜色渐变
5
- title_color: 标题颜色
6
- class_name: 增加类名
7
- {% endcomment %}
8
- {%- capture heading_color -%}
9
- {%- if title_color_gradient != blank %}
10
- background-image: {{ title_color_gradient }};
11
- -webkit-background-clip: text;
12
- color: transparent;
13
- {%- elsif title_color != blank -%}
14
- color: {{ title_color }};
15
- {%- endif %}
16
- {%- endcapture %}
17
-
18
- {% if title_mb == blank %}
19
- <h5
20
- class='{{ class_name }} zz-title-hx title-h5 tw-m-0 tw-w-[full] tw-text-[16px] lg:tw-text-[32px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
- >
23
- {{ title }}
24
- </h5>
25
- {% else %}
26
- <h5
27
- class='{{ class_name }} zz-title-hx title-h5 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[32px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
28
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
29
- >
30
- {{ title }}
31
- </h5>
32
- <h5
33
- class='{{ class_name }} zz-title-hx title-h5 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[16px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
34
- style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
35
- >
36
- {{ title_mb }}
37
- </h5>
38
- {% endif %}
39
-
1
+ {% comment %}
2
+ title: 标题
3
+ title_mb: 移动端标题
4
+ title_color_gradient: 标题颜色渐变
5
+ title_color: 标题颜色
6
+ class_name: 增加类名
7
+ {% endcomment %}
8
+ {%- capture heading_color -%}
9
+ {%- if title_color_gradient != blank %}
10
+ background-image: {{ title_color_gradient }};
11
+ -webkit-background-clip: text;
12
+ color: transparent;
13
+ {%- elsif title_color != blank -%}
14
+ color: {{ title_color }};
15
+ {%- endif %}
16
+ {%- endcapture %}
17
+
18
+ {% if title_mb == blank %}
19
+ <h5
20
+ class='{{ class_name }} zz-title-hx title-h5 tw-m-0 tw-w-[full] tw-text-[16px] lg:tw-text-[32px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
+ >
23
+ {{ title }}
24
+ </h5>
25
+ {% else %}
26
+ <h5
27
+ class='{{ class_name }} zz-title-hx title-h5 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[32px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
28
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
29
+ >
30
+ {{ title }}
31
+ </h5>
32
+ <h5
33
+ class='{{ class_name }} zz-title-hx title-h5 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[16px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
34
+ style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
35
+ >
36
+ {{ title_mb }}
37
+ </h5>
38
+ {% endif %}
39
+
@@ -1,39 +1,39 @@
1
- {% comment %}
2
- title: 标题
3
- title_mb: 移动端标题
4
- title_color_gradient: 标题颜色渐变
5
- title_color: 标题颜色
6
- class_name: 增加类名
7
- {% endcomment %}
8
- {%- capture heading_color -%}
9
- {%- if title_color_gradient != blank %}
10
- background-image: {{ title_color_gradient }};
11
- -webkit-background-clip: text;
12
- color: transparent;
13
- {%- elsif title_color != blank -%}
14
- color: {{ title_color }};
15
- {%- endif %}
16
- {%- endcapture %}
17
-
18
- {% if title_mb == blank %}
19
- <h6
20
- class='{{ class_name }} zz-title-hx title-h6 tw-m-0 tw-w-[full] tw-text-[14px] lg:tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
- >
23
- {{ title }}
24
- </h6>
25
- {% else %}
26
- <h6
27
- class='{{ class_name }} zz-title-hx title-h6 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
28
- style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
29
- >
30
- {{ title }}
31
- </h6>
32
- <h6
33
- class='{{ class_name }} zz-title-hx title-h6 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[14px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
34
- style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
35
- >
36
- {{ title_mb }}
37
- </h6>
38
- {% endif %}
39
-
1
+ {% comment %}
2
+ title: 标题
3
+ title_mb: 移动端标题
4
+ title_color_gradient: 标题颜色渐变
5
+ title_color: 标题颜色
6
+ class_name: 增加类名
7
+ {% endcomment %}
8
+ {%- capture heading_color -%}
9
+ {%- if title_color_gradient != blank %}
10
+ background-image: {{ title_color_gradient }};
11
+ -webkit-background-clip: text;
12
+ color: transparent;
13
+ {%- elsif title_color != blank -%}
14
+ color: {{ title_color }};
15
+ {%- endif %}
16
+ {%- endcapture %}
17
+
18
+ {% if title_mb == blank %}
19
+ <h6
20
+ class='{{ class_name }} zz-title-hx title-h6 tw-m-0 tw-w-[full] tw-text-[14px] lg:tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
21
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
22
+ >
23
+ {{ title }}
24
+ </h6>
25
+ {% else %}
26
+ <h6
27
+ class='{{ class_name }} zz-title-hx title-h6 max-lg:tw-hidden tw-m-0 tw-w-[full] lg:tw-text-[24px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
28
+ style='{{ heading_color }} {% if font_weight == 'custom' %}font-weight: {{ font_weight_custom }};{% endif %}'
29
+ >
30
+ {{ title }}
31
+ </h6>
32
+ <h6
33
+ class='{{ class_name }} zz-title-hx title-h6 lg:tw-hidden tw-m-0 tw-w-[full] tw-text-[14px] tw-leading-[1.2] tw-tracking-normal {% if italic %}tw-italic{% endif %}'
34
+ style='{{ heading_color }} {% if font_weight_mb == 'custom' %}font-weight: {{ font_weight_mb_custom }};{% endif %}'
35
+ >
36
+ {{ title_mb }}
37
+ </h6>
38
+ {% endif %}
39
+