_home-header.scss
2.34 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
/* @include keyframes(turn) {
1% {
@include rotateX(90deg);
background: image-url('yohologo02.png') no-repeat center center;
background-size: 100%
}
2% {
@include rotateX(180deg);
background: image-url('yohologo01.png') no-repeat center center;
background-size: 100%
}
3% {
@include rotateX(90deg);
background: image-url('yohologo02.png') no-repeat center center;
background-size: 100%
}
4% {
@include rotateX(0deg);
background: image-url('yohologo02.png') no-repeat center center;
background-size: 100%
}
100% {
@include rotateX(0deg);
background: image-url('yohologo02.png') no-repeat center center;
background-size: 100%
}
} */
.home-header {
height: 90rem / $pxConvertRem;
line-height: 90rem / $pxConvertRem;
@include background-image(linear-gradient(#323232, #414141));
position: relative;
.iconfont {
color: #fff;
}
.nav-btn {
position: absolute;
left: 0;
top: 0;
bottom: 0;
z-index: 2;
padding: 0 32rem / $pxConvertRem;
}
.logo {
display: block;
margin: 0 auto;
width: 208rem / $pxConvertRem;
height: 87rem / $pxConvertRem;
background: image-url("yohologo02.png") no-repeat center center;
background-size: 100%;
/*@include animation(60s turn infinite);*/
&.animate{
background: image-url("yohologo01.png") no-repeat center center;
background-size: 100%;
}
}
.search-btn {
position: absolute;
right: 0;
top: 0;
width: 90rem / $pxConvertRem;
height: 90rem / $pxConvertRem;
text-align: center;
a {
display: block;
color: #fff;
font-size: 40rem / $pxConvertRem;
line-height: 90rem / $pxConvertRem;
}
&.highlight {
background: rgba(200,200,200,.4);
}
}
}
.girls-wrap .home-header {
background: #FF88AE;
}
.kids-wrap .home-header {
background: #7ad9f9;
}
.lifestyle-wrap .home-header {
background: #4f4138;
}
.kids-wrap .logo {
font-style: italic;
font-family: "helvetica","Arial","榛戜綋";
font-weight: bold;
color: #fff;
}