zz-shopify-components 0.0.16 → 0.0.18
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/blocks/zz-price-tag-mini.liquid +33 -15
- package/package.json +1 -1
|
@@ -13,43 +13,61 @@
|
|
|
13
13
|
| divided_by: compare_at_price
|
|
14
14
|
%}
|
|
15
15
|
{% assign discount_percentage = 100 | minus: percent %}
|
|
16
|
-
<span class='price-tag'>
|
|
17
|
-
<span class='price-
|
|
18
|
-
><span class='price-
|
|
19
|
-
<span class='price-
|
|
20
|
-
|
|
16
|
+
<span class='price-tag-mini'>
|
|
17
|
+
<span class='price-tag-mini__main'>UP TO</span
|
|
18
|
+
><span class='price-tag-mini__main-price'>
|
|
19
|
+
<span class='price-tag-mini__main-discount'>
|
|
20
|
+
{{- discount_percentage -}}</span
|
|
21
|
+
><span class='price-tag-mini__main-discount-off'>%off</span>
|
|
21
22
|
</span>
|
|
22
23
|
</span>
|
|
23
24
|
{% endif %}
|
|
24
25
|
{% endif %}
|
|
25
26
|
|
|
26
27
|
<style>
|
|
27
|
-
.price-tag {
|
|
28
|
+
#shopify-block-{{ block.id }} .price-tag-mini {
|
|
28
29
|
left: 20px;
|
|
29
30
|
position: relative;
|
|
30
31
|
display: flex;
|
|
31
32
|
flex-direction: column;
|
|
32
|
-
height:
|
|
33
|
+
height: 40px;
|
|
33
34
|
margin-bottom: 10px;
|
|
34
35
|
padding: 4px 4px;
|
|
35
36
|
color: #fff;
|
|
36
37
|
font-weight: bold;
|
|
37
|
-
background-color: #
|
|
38
|
+
background-color: #FC6C0F;
|
|
38
39
|
line-height: 1;
|
|
39
40
|
justify-content: start;
|
|
40
41
|
align-items: center;
|
|
41
42
|
clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main {
|
|
46
|
+
font-size: 12px;
|
|
45
47
|
}
|
|
46
|
-
.price-
|
|
47
|
-
font-size:
|
|
48
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main-discount {
|
|
49
|
+
font-size: 13px;
|
|
48
50
|
}
|
|
49
|
-
.price-
|
|
50
|
-
font-size:
|
|
51
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main-discount-off {
|
|
52
|
+
font-size: 9px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 750px) {
|
|
56
|
+
#shopify-block-{{ block.id }} .price-tag-mini {
|
|
57
|
+
height: 54px;
|
|
58
|
+
}
|
|
59
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main {
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
}
|
|
62
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main-discount {
|
|
63
|
+
font-size: 18px;
|
|
64
|
+
}
|
|
65
|
+
#shopify-block-{{ block.id }} .price-tag-mini__main-discount-off {
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
}
|
|
51
68
|
}
|
|
52
|
-
|
|
69
|
+
|
|
70
|
+
#shopify-block-{{ block.id }} .price-tag-mini span {
|
|
53
71
|
position: relative;
|
|
54
72
|
z-index: 1;
|
|
55
73
|
}
|