zz-shopify-components 0.14.0 → 0.15.0
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.
package/assets/zz-components.css
CHANGED
|
@@ -183,6 +183,17 @@
|
|
|
183
183
|
"label": "移动端圆角大小",
|
|
184
184
|
"default": 0
|
|
185
185
|
},
|
|
186
|
+
{
|
|
187
|
+
"type": "select",
|
|
188
|
+
"id": "pc_mobile_show",
|
|
189
|
+
"label": "PC/移动端分开显示",
|
|
190
|
+
"options": [
|
|
191
|
+
{ "value": "pc_mobile_show", "label": "PC/移动端都显示" },
|
|
192
|
+
{ "value": "pc_only", "label": "PC端显示" },
|
|
193
|
+
{ "value": "mobile_only", "label": "移动端显示" }
|
|
194
|
+
],
|
|
195
|
+
"default": "pc_mobile_show"
|
|
196
|
+
},
|
|
186
197
|
{
|
|
187
198
|
"type": "header",
|
|
188
199
|
"content": "动画设置"
|
|
@@ -256,13 +267,18 @@
|
|
|
256
267
|
{% endschema %}
|
|
257
268
|
|
|
258
269
|
<style>
|
|
259
|
-
|
|
260
|
-
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
270
|
+
@media (max-width: 1024px) {
|
|
271
|
+
#shopify-block-{{ block.id }} {
|
|
272
|
+
{% if block.settings.mobile_width == 0 %}
|
|
273
|
+
width: 100%;
|
|
274
|
+
flex: 1;
|
|
275
|
+
{% else %}
|
|
276
|
+
width: {{ block.settings.mobile_width }}%;
|
|
277
|
+
{% endif %}
|
|
278
|
+
{% if block.settings.pc_mobile_show == "pc_only" %}
|
|
279
|
+
display: none;
|
|
280
|
+
{% endif %}
|
|
281
|
+
}
|
|
266
282
|
}
|
|
267
283
|
#shopify-block-{{ block.id }} .flex-layout-widget-container {
|
|
268
284
|
width: 100%;
|
|
@@ -288,6 +304,9 @@
|
|
|
288
304
|
{% else %}
|
|
289
305
|
width: {{ block.settings.pc_width }}%;
|
|
290
306
|
{% endif %}
|
|
307
|
+
{% if block.settings.pc_mobile_show == "mobile_only" %}
|
|
308
|
+
display: none;
|
|
309
|
+
{% endif %}
|
|
291
310
|
}
|
|
292
311
|
#shopify-block-{{ block.id }} .flex-layout-widget-container {
|
|
293
312
|
width: 100%;
|