common.scss
1.58 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
@import './sprite';
* {
margin: 0;
padding: 0;
}
img {
width: 100%;
height: 100%;
vertical-align: top;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.btn-disabled {
background: #ccc !important;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.y-center {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.fixed-btn {
position: fixed !important;
bottom: 20px;
}
.btn-on-leave {
position: relative;
overflow: hidden;
&::after {
position: absolute;
top: 0;
left: 0;
content: '';
width: 100%;
height: 100%;
background-color: rgba($color: #000000, $alpha: .1);
display: block;
}
}
// 路由淡入淡出
.fade-enter-active,
.fade-leave-active {
transition-property: opacity;
transition-duration: .3s;
}
.fade-enter-active {
transition-delay: .3s;
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
.disabled {
background-color: #999 !important;
}
.line-through {
text-decoration:line-through;
}
.refresh-animation {
animation: rotate 4s;
-webkit-animation: rotate 1s;
}
@keyframes rotate {
0%{
transform:rotate(0deg);
-ms-transform:rotate(0deg); /* IE 9 */
-moz-transform:rotate(0deg); /* Firefox */
-o-transform:rotate(0deg);
}
100% {
transform:rotate(360deg);
-ms-transform:rotate(360deg); /* IE 9 */
-moz-transform:rotate(360deg); /* Firefox */
-o-transform:rotate(360deg);
}
}
@-webkit-keyframes rotate {
0%{
-moz-transform:rotate(0deg);
}
100%{
-moz-transform:rotate(360deg);
}
}