_magazine.scss
4.35 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
@charset "utf-8";
/*
* @description: index css
* @author: chenglong.wang@yoho.cn
* @date: 2015/4/17
*/
//banner
.magazine-banner {
width: 220px;
height: auto;
margin: 11px auto 0 auto;
position: relative;
.swiper-container, .swiper-slide, img {
width: 220px;
height: 275px;
display: block;
overflow: hidden;
}
.swiper-slide {
float: left;
}
.pagination-wrap {
position: relative;
margin-top: 8px;
text-align: center;
}
.pagination {
height: auto;
overflow: hidden;
display: inline-block;
margin: 0 auto;
}
.swiper-pagination-switch {
@include retina-sprite($icons, normal-new);
margin-right: 8px;
float: left;
&:nth-last-of-type(1) {
margin-right: 0;
}
&.swiper-active-switch {
@include retina-sprite($icons, active-new);
}
}
.magazine-only-one {
width: 220px;
height: 275px;
img {
width: 220px;
}
}
}
.magazine-more {
width: 100%;
height: 80px;
position: relative;
overflow: hidden;
time, > span, a.buy {
text-align: center;
display: block;
}
time {
margin-top: 8px;
color: #333;
font-size: 1.2rem;
}
> span {
margin-top: 5px;
color: #666;
font-size: 1.2rem;
}
a.buy {
@include retina-sprite($icons, buy, true, false);
bottom: 0;
font-size: 1.4rem;
font-weight: bold;
line-height: 34px;
color: #fff;
@include hover-link();
}
}
//magazine轮播图公用部分
.magazine-slide-style {
height: 180px;
width: 100%;
overflow: hidden;
li.swiper-slide {
width: 131px;
height: 180px;
float: left;
&:nth-last-of-type(1) {
width: 121px;
}
a {
display: block;
height: auto;
overflow: hidden;
position: relative;
&.magazine-special {
&:after {
content: '';
//@include retina-sprite($icons,special-new,0,0);
}
}
}
img {
width: 121px;
height: 160px;
display: block;
overflow: hidden;
}
time {
display: block;
margin-top: 8px;
text-align: center;
font-weight: bold;
width: 121px;
font-size: 1.2rem;
}
}
}
//buy按钮下方的滚动图片
#buy-slide {
margin: 38px 15px 0 15px;
width: auto;
}
//e-zine中的滚动图片
.e-zine {
margin: 55px 15px 0 15px;
overflow: hidden;
position: relative;
> h2 {
@include retina-sprite($icons, e-zine, true, 0);
@include hide-text();
}
.zine-slide {
margin-top: 34px;
}
}
//girl-app
.girl-app {
margin: 30px 15px 0 15px;
height: auto;
overflow: hidden;
position: relative;
.app-background {
float: left;
width: 133px;
height: 96px;
display: block;
@include retain-background("app.jpg");
}
&:after {
content: '';
display: block;
width: 5px;
height: 80px;
background: inline_image("base64/line.png") center center no-repeat;
@include background-size(100%);
position: absolute;
left: 135px;
top: 50%;
margin-top: -40px;
}
.app-info {
width: 150px;
float: right;
h2 {
font-size: 1.8rem;
margin: 5px 0 0 23px;
}
p {
color: #666;
line-height: 15px;
margin: 2px 0 0 23px;
font-size: 1.2rem;
}
.app-download {
@include retina-sprite($icons, download);
font-size: 1.4rem;
font-weight: bold;
line-height: 30px;
color: #fff;
@include hover-link();
text-align: center;
margin: 9px 0 0 23px;
}
}
}