tab.css
2.79 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
.m-nav {
width: 100%;
font-size: 14px;
color: #999;
overflow: hidden;
box-sizing: border-box;
}
.m-nav a {
color: #999;
padding: 0 10px;
min-width: 70px;
display: block;
}
.m-nav li {
float: left;
line-height: 40px;
text-align: center;
position: relative;
}
.m-nav li:last-child {
padding-right: 0;
}
.m-nav .on a {
color: #FFF;
background-color: #23ac38;
display: block;
position: relative;
}
.m-tab {
width: 100%;
background-color: #FFF;
font-size: 14px;
color: #999;
border-width: 1px 0;
overflow: hidden;
box-sizing: border-box;
margin-bottom: 10px;
}
.m-tab a {
display: block;
color: #999;
padding: 0 10px;
min-width: 70px;
}
.m-tab li {
float: left;
line-height: 45px;
text-align: center;
position: relative;
}
.m-tab li:last-child {
padding-right: 0;
}
.m-tab .on a {
color: #23ac38;
display: block;
position: relative;
}
.m-tab .on a:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background-color: #23ac38;
}
.m-tab.hasright {
position: relative;
}
.m-tab.hasright:before {
content: ' ';
display: block;
position: absolute;
top: 18px;
left: 94%;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 0 5px 5px;
border-color: transparent transparent transparent #23ac38;
transform: scaleY(1);
animation: movehint 1.2s linear 3;
-webkit-animation: movehint 1.2s linear 3;
transition: all .3s;
-webkit-transition: all .3s;
opacity: 0;
}
.m-tab.hasright:after {
content: ' ';
display: block;
position: absolute;
top: 18px;
left: 96%;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 0 5px 5px;
border-color: transparent transparent transparent #23ac38;
transform: scaleY(1);
animation: movehint 1.2s linear 3;
-webkit-animation: movehint 1.2s linear 3;
transition: all .3s;
-webkit-transition: all .3s;
opacity: 0;
}
@keyframes movehint {
0%,
20%,
53%,
80%,
100% {
-webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
40%,
43% {
-webkit-transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
-webkit-transform: translate3d(-20px, 0, 0);
transform: translate3d(-20px, 0, 0);
}
70% {
-webkit-transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
-webkit-transform: translate3d(-10px, 0, 0);
transform: translate3d(-10px, 0, 0);
}
90% {
-webkit-transform: translate3d(-4px, 0, 0);
transform: translate3d(-4px, 0, 0);
}
}