_recommend-for-you.scss
1.51 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
.recommend-for-you {
padding: pxToRem(30px) 0 pxToRem(30px);
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
background: #fff;
.title {
font-size: pxToRem(32px);
line-height: pxToRe(88px);
text-align: center;
color: #444;
// font-weight: bold;
}
.swiper-container {
padding: pxToRem(30px) 0 pxToRem(20px);
width: 100%;
// height: pxToRem(252px);
// overflow: hidden;
.swiper-slide {
padding: 0 pxToRem(10px);
float: left;
width: pxToRem(156px);
&:first-child {
padding-left: pxToRem(30px);
}
&:last-child {
padding-right: pxToRem(30px);
}
img {
width: 100%;
height: pxToRem(208px);
}
}
}
.sale-name {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
margin-top: pxToRem(20px);
color: gray;
}
.price {
position: relative;
margin-top: pxToRem(8px);
font-size: pxToRem(24px);
line-height: 1;
.sale-price {
display: block;
color: #d9134f;
margin-right: pxToRem(8px);
}
.old-price {
display: block;
color: #b0b0b0;
text-decoration: line-through;
}
.no-price {
color: #444;
}
}
}