common.scss
2.5 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* 多行行文本溢出出现省略号 */
.clamp {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.clamp.clamp-a {
-webkit-line-clamp: 1;
}
.clamp.clamp-b {
-webkit-line-clamp: 2;
}
.clamp.clamp-c {
-webkit-line-clamp: 3;
}
/* 开启硬件加速 */
.threeD {
transform: translateZ(0);
}
.anim {
transition: all 0.4s;
}
@keyframes turn {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(90deg);
}
50% {
transform: rotate(180deg);
}
75% {
transform: rotate(270deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes flicker {
0% {
transform: scale(1); /*开始为原始大小*/
}
25% {
transform: scale(1.1); /*放大1.1倍*/
}
50% {
transform: scale(1);
}
75% {
transform: scale(1.1);
}
}
.flicker {
animation: flicker 2s infinite;
}
@keyframes spin {
to {
transform: rotate(0deg);
}
from {
transform: rotate(-360deg);
}
}
.spin {
animation: spin 1s infinite;
animation-fill-mode: forwards;
}
.turn {
animation: turn 1s infinite;
animation-fill-mode: forwards;
}
.transform90 {
transform: rotate(90deg);
}
.pos-rel {
position: relative;
}
.pos-abs {
position: absolute;
}
.text-l {
text-align: left !important;
}
.text-r {
text-align: right !important;
}
.text-c {
text-align: center !important;
}
.left {
float: left;
}
.right {
float: right;
}
.clear:after {
display: block;
content: '.';
clear: both;
visibility: hidden;
overflow: hidden;
width: 100%;
height: 0;
}
.clear {
clear: both;
}
.flex {
display: flex;
}
.al-i-c {
align-items: center;
}
.ju-c-sb {
justify-content: space-between;
}
.ju-c-sa {
justify-content: space-around;
}
.ju-c-c {
justify-content: center;
}
.ju-c-end {
justify-content: flex-end;
}
@for $i from 1 through 50 {
.p-#{$i} {
padding: (1px * $i) !important;
}
.p-t-#{$i} {
padding-top: (1px * $i) !important;
}
.p-r-#{$i} {
padding-right: (1px * $i) !important;
}
.p-b-#{$i} {
padding-bottom: (1px * $i) !important;
}
.p-l-#{$i} {
padding-left: (1px * $i) !important;
}
.m-#{$i} {
margin: (1px * $i) !important;
}
.m-t-#{$i} {
margin-top: (1px * $i) !important;
}
.m-r-#{$i} {
margin-right: (1px * $i) !important;
}
.m-b-#{$i} {
margin-bottom: (1px * $i) !important;
}
.m-l-#{$i} {
margin-left: (1px * $i) !important;
}
.fz-#{$i} {
font-size: (1px * $i) !important;
}
}
.text-line-thr {
text-decoration: line-through !important;
}