_header-nav.scss
1.39 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
/*
* @description: header css
* @author: chenglong.wang@yoho.cn
* @date: 2015/4/16
*/
.girl-nav {
height: 39px;
@include hide-text();
ul {
height: 100%;
background: #c3e2ce;
li {
float: left;
height: 100%;
position: relative;
margin: 0 12px 0 10px;
}
}
@each $nav-item in home, fashion, beauty, sport, lifestyle, magazine, video {
.nav-#{$nav-item} a {
@include retina-sprite($nav, #{$nav-item}-black);
margin-top: 9px;
}
}
}
@each $channel, $color, $val in (home, #c3e2ce, 1),
(fashion, #9b90ff, 2),
(beauty, #ffcaca, 3),
(sport, #84e3ca, 4),
(lifestyle, #ffca72, 5),
(magazine, #7ecaff, 6),
(video, #c9caca, 7) {
##{$channel} {
.girl-nav ul {
background: $color;
li:nth-of-type(#{$val}) {
a {
@include retina-sprite($nav, #{$channel}-nav);
}
/*&:after {
display: block;
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 3px;
background: #000;
}*/
}
}
}
}