_fav.scss
2 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
$fav: sprite-map("me/fav/*.png",$spacing: 5px);
.yoho-favorite-page {
width: 100%;
height: auto;
// 选项卡切换
.fav-tab {
width: 100%;
height: pxToRem(88px);
line-height: pxToRem(88px);
border-bottom: 1px solid #e0e0e0;
color: #b0b0b0;
font-size: pxToRem(26px);
li {
width: 50%;
height: 100%;
float: left;
text-align: center;
&.active {
color: #444;
}
&:nth-last-of-type(1) {
float: right;
position: relative;
&:after {
content: '';
display: block;
width: 1px;
height: pxToRem(44px);
position: absolute;
left: 0;
top: pxToRem(22px);
background: #b0b0b0;
}
}
}
}
//收藏主体
.fav-content {
padding: 0 pxToRem(30px);
.fav-null {
font-size: pxToRem(22px);
color: #444;
display: block;
margin-top: pxToRem(100px);
text-align: center;
&:before {
content: '';
display: block;
@include rem-sprite($fav, fav-null);
width: pxToRem(image_width(sprite-file($fav, fav-null)));
height: pxToRem(image_height(sprite-file($fav, fav-null)));
margin: 0 auto pxToRem(45px) auto;
}
}
.go-shopping {
width: pxToRem(472px);
height: pxToRem(88px);
line-height: pxToRem(88px);
margin: pxToRem(125px) auto 0 auto;
background: #444;
text-align: center;
color: #fff;
display: block;
font-size: pxToRem(26px);
}
}
}