forked from react-love/react-latest-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.less
110 lines (97 loc) · 1.89 KB
/
app.less
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
/*全局css样式*/
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
/*隐藏文本*/
.textOverflow-hidden {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/*现价*/
.now-price {
color: #f43;
}
/*原价*/
.old-price {
text-decoration: line-through;
margin-left: 0.5rem;
color: #a0a0a0;
}
/*路由切换动画——改变透明度*/
.normal-enter {
opacity: 0;
z-index: 10000;
}
.normal-enter.normal-enter-active {
opacity: 1;
transition: all 0.4s ease-in;
}
.normal-leave {
opacity: 1;
}
.normal-leave.normal-leave-active {
opacity: 0;
transition: all .4s ease-out;
}
/*路由切换动画——左移动*/
.left-enter {
position: absolute;
top: 0;
background: #fff;
z-index: 10000;
opacity: 1;
transform: translateX(100%);
}
.left-enter.left-enter-active {
opacity: 1;
transform: translateX(0);
transition: all 0.4s ease-out;
}
.left-leave {
opacity: 1;
transform: translateX(0);
}
.left-leave.left-leave-active {
opacity: 1;
transform: translateX(-100%);
transition: all 0.4s ease-out;
}
/*路由切换动画——右移动*/
.right-enter {
transform: translateX(-100%);
}
.right-enter.right-enter-active {
transform: translateX(0);
transition: all 0.4s ease-out;
}
.right-leave {
position: absolute;
top: 0;
background: #fff;
z-index: 10000;
opacity: 1;
transform: translateX(0);
}
.right-leave.right-leave-active {
opacity: 1;
transform: translateX(100%);
transition: all 0.4s ease-out;
}
/*适配设置*/
@media screen and (min-width: 320px) {
html, body { font-size: 12px; }
}
@media screen and (min-width: 360px) {
html, body { font-size: 13.5px; }
}
@media screen and (min-width: 375px) {
html, body { font-size: 14px; }
}
@media screen and (min-width: 414px) {
html, body { font-size: 15.5px; }
}