-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.wxss
More file actions
222 lines (183 loc) · 3.17 KB
/
app.wxss
File metadata and controls
222 lines (183 loc) · 3.17 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/**app.wxss**/
/* flex布局兼容性写法
flex:定义布局为盒模型
flex-v:盒模型垂直布局
flex-l:盒模型水平布局
flex-1:子元素占据剩余的空间
flex-align-center:子元素垂直居中
flex-pack-center:子元素水平居中
flex-pack-justify:子元素两端对齐
border-box:元素padding不影响
flex-text:按钮文本居中
*/
.flex {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.flex-v {
-webkit-box-orient: vertical;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.flex-l {
-webkit-box-orient: horizontal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.flex-1 {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.flex-align-center {
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.flex-pack-center {
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.flex-pack-justify {
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
}
.border-box {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.flex-text {
display: flex;
align-items: center;
justify-content: center;
}
/* 清除浮动 */
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: ' ';
clear: both;
height: 0;
}
.clearfix {
display: inline-table;
}
/* 解决动画闪烁,开启硬件加速,优化CSS动画性能 */
.css3fix {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
-moz-perspective: 1000;
-ms-perspective: 1000;
perspective: 1000;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
/* 修复IOS执行动画结束或闪一下 */
animation-fill-mode: forwards;
}
/* 框架布局 */
.fl {
float: left;
}
.fr {
float: right;
}
.ovH {
overflow: hidden;
}
.poR {
position: relative;
}
/* 文本对齐 */
.tL {
text-align: left;
}
.tR {
text-align: right;
}
/* 间距 */
.mt10 {
margin-top: 10px;
}
.mr10 {
margin-right: 10px;
}
.mb10 {
margin-bottom: 10px;
}
.ml10 {
margin-left: 10px;
}
.mt20 {
margin-top: 20px;
}
.mr20 {
margin-right: 20px;
}
.mb20 {
margin-bottom: 20px;
}
.ml20 {
margin-left: 20px;
}
.mt30 {
margin-top: 30px;
}
.mr30 {
margin-right: 30px;
}
.mb30 {
margin-bottom: 30px;
}
.ml30 {
margin-left: 30px;
}
.mt40 {
margin-top: 40px;
}
.mr40 {
margin-right: 40px;
}
.mb40 {
margin-bottom: 40px;
}
.ml40 {
margin-left: 40px;
}
/* 清楚小程序按钮样式 */
button::after {
border: none;
}
input {
outline: none;
border: none;
list-style: none;
}
button {
margin: 0;
padding: 0;
background: none;
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}