_fresh-only.scss
3.11 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.fresh-swiper {
position: relative;
overflow: hidden;
ul {
li {
float: left;
width: 100%;
a, img {
display: block;
width: 100%;
height: 100%;
}
}
}
.swiper-pagination {
position: absolute;
left: 0;
right: 0;
bottom: 20rem / $pxConvertRem;
text-align: center;
.pagination-inner {
display: inline-block;
span {
display: inline-block;
width: 14rem / $pxConvertRem;
height: 14rem / $pxConvertRem;
background: #fff;
opacity: 0.5;
margin: 0 (9rem / $pxConvertRem);
border-radius: 50%;
}
span.swiper-active-switch {
opacity: 1;
}
}
}
}
.fresh-list-swiper {
overflow: hidden;
padding-bottom: 15rem / $pxConvertRem;
background-color: #fff;
height: 470rem / $pxConvertRem;
ul {
box-sizing: border-box;
}
li {
float:left;
width:240rem / $pxConvertRem;
margin: (20rem / $pxConvertRem) (10rem / $pxConvertRem) 0 (10rem / $pxConvertRem);
border: none;
&:first-child {
margin-left: 20rem / $pxConvertRem;
}
&:last-child {
margin-right: 20rem / $pxConvertRem;
}
.img-box {
width: 100%;
height:320rem / $pxConvertRem;
overflow: hidden;
text-align: center;
position: relative;
img {
width: 100%;
height: 320rem / $pxConvertRem;
vertical-align: middle;
border: none;
outline: none;
}
}
.fresh-info {
.fresh-name a{
display:block;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
color: #444;
line-height: 48rem / $pxConvertRem;
font-size: 22rem / $pxConvertRem;
}
.cur-price {
color: #d62927;
font-size: 22rem / $pxConvertRem;
}
.old-price {
margin: 0 0 0 (10rem / $pxConvertRem);
color: #b0b0b0;
text-decoration: line-through;
font-size: 22rem / $pxConvertRem;
}
.fresh-icon {
background: #d62927;
width: 100rem / $pxConvertRem;
height: 33rem / $pxConvertRem;
display: block;
margin: (8rem / $pxConvertRem) auto 0 auto;
color: #fff;
text-align: center;
border-radius: 40rem / $pxConvertRem;
line-height: 33rem / $pxConvertRem;
font-size: 22rem / $pxConvertRem;
}
}
}
}
.fresh-list{
position: relative;
padding:(15rem / $pxConvertRem) 0 0 (15rem / $pxConvertRem);
}