Goods.wxss
1.17 KB
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
/* components/Goods/Goods.wxss */
@import '/sprite.wxss';
.Goods {
width: 100%;
border-radius: 8rpx;
}
.Goods .preview {
height: 252rpx;
border-radius: 8rpx;
overflow: hidden;
}
.Goods .name {
color: #2D2D2E;
margin: 16rpx 0;
}
.Goods .info {
color: #B1B1B3;
font-size: 20rpx;
display: flex;
align-items: center;
}
.Goods .info .icon {
width: 24rpx;
height: 24rpx;
margin-right: 2rpx;
}
.Goods .info .icon .text {
width: calc(100% - 26rpx);
}
.Goods .price {
display: flex;
align-items: center;
margin-top: 16rpx;
font-size: 20rpx;
}
.Goods .price .now {
display: flex;
align-items: baseline;
color: var(--btnColor);
font-size: 34rpx;
line-height: 34rpx;
font-weight: 500;
letter-spacing: -0.5rpx;
}
.Goods .price .now.true {
font-size: 40rpx;
line-height: 40rpx;
}
.Goods .price .now .unit {
font-size: 20rpx;
margin: 0 4rpx;
}
.Goods .price .now.true .unit {
font-size: 24rpx;
}
.Goods .price .now .up {
transform: translateY(-2rpx);
}
.Goods .price .old {
color: #C9CACC;
text-decoration: line-through;
margin-left: 8rpx;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}