forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-price.css
95 lines (80 loc) · 1.54 KB
/
component-price.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.price {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: wrap;
font-size: 1.6rem;
letter-spacing: 0.1rem;
line-height: 1.5;
color: rgb(var(--color-foreground));
}
.price.price--unavailable {
visibility: hidden;
}
.price--end {
justify-content: flex-end;
}
.price dl {
margin: 0;
display: flex;
flex-direction: column;
}
.price dd {
margin: 0 1rem 0 0;
}
.price .price__last:last-of-type {
margin: 0;
}
@media screen and (min-width: 750px) {
.price {
margin-bottom: 0;
}
}
.price--large {
font-size: 1.6rem;
line-height: 1.5;
letter-spacing: 0.13rem;
}
@media screen and (min-width: 750px) {
.price--large {
font-size: 1.8rem;
}
}
.price--sold-out .price__availability,
.price__regular {
display: block;
}
.price__sale,
.price__availability,
.price .price__badge-sale,
.price .price__badge-sold-out,
.price--on-sale .price__regular,
.price--on-sale .price__availability,
.price--no-compare .price__compare {
display: none;
}
.price--sold-out .price__badge-sold-out,
.price--on-sale .price__badge-sale {
display: inline-flex;
}
.price--on-sale .price__sale {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.price--center {
display: flex;
justify-content: center;
}
.price--on-sale .price-item--regular {
text-decoration: line-through;
color: rgba(var(--color-foreground), 0.75);
}
.unit-price {
font-size: 1.1rem;
letter-spacing: 0.04rem;
line-height: 1.2;
margin-top: 0.2rem;
text-transform: uppercase;
color: rgba(var(--color-foreground), 0.7);
}