weui-rails 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +28 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +89 -0
- data/Rakefile +2 -0
- data/assets/stylesheets/_weui.scss +32 -0
- data/assets/stylesheets/base/fn.scss +13 -0
- data/assets/stylesheets/base/mixin/_mobile.scss +20 -0
- data/assets/stylesheets/base/mixin/_setArrow.scss +97 -0
- data/assets/stylesheets/base/mixin/_setChecked.scss +21 -0
- data/assets/stylesheets/base/mixin/_setOnepx.scss +47 -0
- data/assets/stylesheets/base/mixin/_text.scss +15 -0
- data/assets/stylesheets/base/reset.scss +24 -0
- data/assets/stylesheets/base/variable/_global.scss +32 -0
- data/assets/stylesheets/base/variable/_monokai.scss +11 -0
- data/assets/stylesheets/base/variable/_weui_button.scss +21 -0
- data/assets/stylesheets/base/variable/_weui_cell.scss +12 -0
- data/assets/stylesheets/base/variable/_weui_msg.scss +7 -0
- data/assets/stylesheets/base/variable/weui_progress.scss +5 -0
- data/assets/stylesheets/icon/weui_font.scss +62 -0
- data/assets/stylesheets/icon/weui_icon_font.scss +73 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_default.scss +13 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_disabled.scss +9 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_global.scss +36 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_plain.scss +30 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_primary.scss +12 -0
- data/assets/stylesheets/widget/weui_button/weui_btn_warn.scss +12 -0
- data/assets/stylesheets/widget/weui_button/weui_button.scss +58 -0
- data/assets/stylesheets/widget/weui_cell/weui_access.scss +22 -0
- data/assets/stylesheets/widget/weui_cell/weui_cell_global.scss +68 -0
- data/assets/stylesheets/widget/weui_cell/weui_check.scss +4 -0
- data/assets/stylesheets/widget/weui_cell/weui_check/weui_check_common.scss +10 -0
- data/assets/stylesheets/widget/weui_cell/weui_check/weui_checkbox.scss +35 -0
- data/assets/stylesheets/widget/weui_cell/weui_check/weui_radio.scss +27 -0
- data/assets/stylesheets/widget/weui_cell/weui_form.scss +6 -0
- data/assets/stylesheets/widget/weui_cell/weui_form/weui_form_common.scss +64 -0
- data/assets/stylesheets/widget/weui_cell/weui_form/weui_select.scss +38 -0
- data/assets/stylesheets/widget/weui_cell/weui_form/weui_select_after.scss +6 -0
- data/assets/stylesheets/widget/weui_cell/weui_form/weui_select_before.scss +30 -0
- data/assets/stylesheets/widget/weui_cell/weui_form/weui_vcode.scss +14 -0
- data/assets/stylesheets/widget/weui_cell/weui_switch.scss +51 -0
- data/assets/stylesheets/widget/weui_page/weui_article.scss +23 -0
- data/assets/stylesheets/widget/weui_page/weui_msg.scss +48 -0
- data/assets/stylesheets/widget/weui_progress/weui_progress.scss +23 -0
- data/assets/stylesheets/widget/weui_tips/weui_actionsheet.scss +43 -0
- data/assets/stylesheets/widget/weui_tips/weui_dialog.scss +93 -0
- data/assets/stylesheets/widget/weui_tips/weui_mask.scss +35 -0
- data/assets/stylesheets/widget/weui_tips/weui_toast.scss +349 -0
- data/lib/weui-rails.rb +13 -0
- data/lib/weui-rails/version.rb +5 -0
- data/weui-rails.gemspec +18 -0
- data/weui-rails.sublime-project +16 -0
- metadata +96 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
$weuiDialogBackgroundColor: #FAFAFC;
|
4
|
+
$weuiDialogLineColor: #D5D5D6;
|
5
|
+
$weuiDialogLinkColor: #3CC51F;
|
6
|
+
|
7
|
+
.weui_dialog {
|
8
|
+
position: fixed;
|
9
|
+
z-index: 13;
|
10
|
+
width: 85%;
|
11
|
+
top: 50%;
|
12
|
+
left: 50%;
|
13
|
+
transform: translate(-50%, -50%);
|
14
|
+
|
15
|
+
background-color: $weuiDialogBackgroundColor;
|
16
|
+
text-align: center;
|
17
|
+
border-radius: 3px;
|
18
|
+
.weui_dialog_confirm & {
|
19
|
+
.weui_dialog_hd {
|
20
|
+
text-align: left;
|
21
|
+
padding: 1.2em 20px .5em;
|
22
|
+
}
|
23
|
+
.weui_dialog_bd {
|
24
|
+
text-align: left;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.weui_dialog_hd {
|
30
|
+
padding: 1.2em 0 .5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
.weui_dialog_title {
|
34
|
+
font-weight: 400;
|
35
|
+
font-size: 17px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.weui_dialog_bd {
|
39
|
+
padding: 0 20px;
|
40
|
+
font-size: 15px;
|
41
|
+
color: $globalTextColor;
|
42
|
+
}
|
43
|
+
|
44
|
+
.weui_dialog_ft {
|
45
|
+
position: relative;
|
46
|
+
line-height: 42px;
|
47
|
+
margin-top: 20px;
|
48
|
+
font-size: 17px;
|
49
|
+
display: flex;
|
50
|
+
a {
|
51
|
+
display: block;
|
52
|
+
flex: 1;
|
53
|
+
color: $weuiDialogLinkColor;
|
54
|
+
text-decoration: none;
|
55
|
+
@include setTapColor();
|
56
|
+
&:active, &:hover {
|
57
|
+
text-decoration: none;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
&:after {
|
61
|
+
content: " ";
|
62
|
+
@include setTopLine($weuiDialogLineColor);
|
63
|
+
}
|
64
|
+
.weui_dialog_confirm & {
|
65
|
+
a {
|
66
|
+
position: relative;
|
67
|
+
&:after {
|
68
|
+
content: " ";
|
69
|
+
@include setLeftLine($weuiDialogLineColor);
|
70
|
+
}
|
71
|
+
&:first-child {
|
72
|
+
&:after {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.weui_btn_dialog {
|
81
|
+
&.default {
|
82
|
+
color: #353535;
|
83
|
+
}
|
84
|
+
&.primary {
|
85
|
+
color: #0BB20C;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
@media screen and (min-width: 1024px) {
|
90
|
+
.weui_dialog {
|
91
|
+
width: 35%;
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.weui_mask {
|
4
|
+
position: fixed;
|
5
|
+
z-index: 1;
|
6
|
+
width: 100%;
|
7
|
+
height: 100%;
|
8
|
+
top: 0;
|
9
|
+
left: 0;
|
10
|
+
background: rgba(0, 0, 0, .6);
|
11
|
+
}
|
12
|
+
|
13
|
+
.weui_mask_transparent {
|
14
|
+
position: fixed;
|
15
|
+
z-index: 1;
|
16
|
+
width: 100%;
|
17
|
+
height: 100%;
|
18
|
+
top: 0;
|
19
|
+
left: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
.weui_mask_transition{
|
23
|
+
display: none;
|
24
|
+
position: fixed;
|
25
|
+
z-index: 1;
|
26
|
+
width: 100%;
|
27
|
+
height: 100%;
|
28
|
+
top: 0;
|
29
|
+
left: 0;
|
30
|
+
background: rgba(0,0,0,0);
|
31
|
+
transition:background .3s;
|
32
|
+
}
|
33
|
+
.weui_fade_toggle{
|
34
|
+
background: rgba(0,0,0,.6);
|
35
|
+
}
|
@@ -0,0 +1,349 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.weui_toast {
|
4
|
+
position: fixed;
|
5
|
+
z-index: 3;
|
6
|
+
width: 7.6em;
|
7
|
+
min-height: 7.6em;
|
8
|
+
top: 180px;
|
9
|
+
left: 50%;
|
10
|
+
margin-left: -3.8em;
|
11
|
+
background: rgba(40, 40, 40, 0.75);
|
12
|
+
text-align: center;
|
13
|
+
border-radius: 5px;
|
14
|
+
color: #FFFFFF;
|
15
|
+
}
|
16
|
+
|
17
|
+
.weui_icon_toast {
|
18
|
+
margin: 22px 0 0;
|
19
|
+
display: block;
|
20
|
+
&:before {
|
21
|
+
content: '\EA08';
|
22
|
+
color: #FFFFFF;
|
23
|
+
font-size: 55px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.weui_toast_content {
|
28
|
+
margin: 0 0 15px;
|
29
|
+
}
|
30
|
+
|
31
|
+
// loading toast
|
32
|
+
.weui_loading_toast {
|
33
|
+
.weui_toast_content {
|
34
|
+
margin-top: 64%;
|
35
|
+
font-size: 14px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.weui_loading {
|
40
|
+
position: absolute;
|
41
|
+
width: 0px;
|
42
|
+
z-index: 2000000000;
|
43
|
+
left: 50%;
|
44
|
+
top: 38%;
|
45
|
+
}
|
46
|
+
|
47
|
+
.weui_loading_leaf {
|
48
|
+
position: absolute;
|
49
|
+
top: -1px;
|
50
|
+
@include opacity(0.25);
|
51
|
+
&:before {
|
52
|
+
content: " ";
|
53
|
+
position: absolute;
|
54
|
+
width: 8.14px;
|
55
|
+
height: 3.08px;
|
56
|
+
background: rgb(209, 209, 213);
|
57
|
+
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 1px;
|
58
|
+
border-radius: 1px;
|
59
|
+
transform-origin: left 50% 0px;
|
60
|
+
}
|
61
|
+
&_0 {
|
62
|
+
animation: opacity-60-25-0-12 1.25s linear infinite;
|
63
|
+
&:before {
|
64
|
+
transform: rotate(0deg) translate(7.92px, 0px);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
&_1 {
|
68
|
+
animation: opacity-60-25-1-12 1.25s linear infinite;
|
69
|
+
&:before {
|
70
|
+
transform: rotate(30deg) translate(7.92px, 0px);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
&_2 {
|
74
|
+
animation: opacity-60-25-2-12 1.25s linear infinite;
|
75
|
+
&:before {
|
76
|
+
transform: rotate(60deg) translate(7.92px, 0px);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
&_3 {
|
80
|
+
animation: opacity-60-25-3-12 1.25s linear infinite;
|
81
|
+
&:before {
|
82
|
+
transform: rotate(90deg) translate(7.92px, 0px);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
&_4 {
|
86
|
+
animation: opacity-60-25-4-12 1.25s linear infinite;
|
87
|
+
&:before {
|
88
|
+
transform: rotate(120deg) translate(7.92px, 0px);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
&_5 {
|
92
|
+
animation: opacity-60-25-5-12 1.25s linear infinite;
|
93
|
+
&:before {
|
94
|
+
transform: rotate(150deg) translate(7.92px, 0px);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
&_6 {
|
98
|
+
animation: opacity-60-25-6-12 1.25s linear infinite;
|
99
|
+
&:before {
|
100
|
+
transform: rotate(180deg) translate(7.92px, 0px);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
&_7 {
|
104
|
+
animation: opacity-60-25-7-12 1.25s linear infinite;
|
105
|
+
&:before {
|
106
|
+
transform: rotate(210deg) translate(7.92px, 0px);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
&_8 {
|
110
|
+
animation: opacity-60-25-8-12 1.25s linear infinite;
|
111
|
+
&:before {
|
112
|
+
transform: rotate(240deg) translate(7.92px, 0px);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
&_9 {
|
116
|
+
animation: opacity-60-25-9-12 1.25s linear infinite;
|
117
|
+
&:before {
|
118
|
+
transform: rotate(270deg) translate(7.92px, 0px);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
&_10 {
|
122
|
+
animation: opacity-60-25-10-12 1.25s linear infinite;
|
123
|
+
&:before {
|
124
|
+
transform: rotate(300deg) translate(7.92px, 0px);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
&_11 {
|
128
|
+
animation: opacity-60-25-11-12 1.25s linear infinite;
|
129
|
+
&:before {
|
130
|
+
transform: rotate(330deg) translate(7.92px, 0px);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@keyframes opacity-60-25-0-12 {
|
136
|
+
0% {
|
137
|
+
@include opacity(0.25);
|
138
|
+
}
|
139
|
+
0.01% {
|
140
|
+
@include opacity(0.25);
|
141
|
+
}
|
142
|
+
0.02% {
|
143
|
+
@include opacity(1);
|
144
|
+
}
|
145
|
+
60.01% {
|
146
|
+
@include opacity(0.25);
|
147
|
+
}
|
148
|
+
100% {
|
149
|
+
@include opacity(0.25);
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
@keyframes opacity-60-25-1-12 {
|
154
|
+
0% {
|
155
|
+
@include opacity(0.25);
|
156
|
+
}
|
157
|
+
8.34333% {
|
158
|
+
@include opacity(0.25);
|
159
|
+
}
|
160
|
+
8.35333% {
|
161
|
+
@include opacity(1);
|
162
|
+
}
|
163
|
+
68.3433% {
|
164
|
+
@include opacity(0.25);
|
165
|
+
}
|
166
|
+
100% {
|
167
|
+
@include opacity(0.25);
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
@keyframes opacity-60-25-2-12 {
|
172
|
+
0% {
|
173
|
+
@include opacity(0.25);
|
174
|
+
}
|
175
|
+
16.6767% {
|
176
|
+
@include opacity(0.25);
|
177
|
+
}
|
178
|
+
16.6867% {
|
179
|
+
@include opacity(1);
|
180
|
+
}
|
181
|
+
76.6767% {
|
182
|
+
@include opacity(0.25);
|
183
|
+
}
|
184
|
+
100% {
|
185
|
+
@include opacity(0.25);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
@keyframes opacity-60-25-3-12 {
|
190
|
+
0% {
|
191
|
+
@include opacity(0.25);
|
192
|
+
}
|
193
|
+
25.01% {
|
194
|
+
@include opacity(0.25);
|
195
|
+
}
|
196
|
+
25.02% {
|
197
|
+
@include opacity(1);
|
198
|
+
}
|
199
|
+
85.01% {
|
200
|
+
@include opacity(0.25);
|
201
|
+
}
|
202
|
+
100% {
|
203
|
+
@include opacity(0.25);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
@keyframes opacity-60-25-4-12 {
|
208
|
+
0% {
|
209
|
+
@include opacity(0.25);
|
210
|
+
}
|
211
|
+
33.3433% {
|
212
|
+
@include opacity(0.25);
|
213
|
+
}
|
214
|
+
33.3533% {
|
215
|
+
@include opacity(1);
|
216
|
+
}
|
217
|
+
93.3433% {
|
218
|
+
@include opacity(0.25);
|
219
|
+
}
|
220
|
+
100% {
|
221
|
+
@include opacity(0.25);
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
@keyframes opacity-60-25-5-12 {
|
226
|
+
0% {
|
227
|
+
@include opacity(0.270958333333333);
|
228
|
+
}
|
229
|
+
41.6767% {
|
230
|
+
@include opacity(0.25);
|
231
|
+
}
|
232
|
+
41.6867% {
|
233
|
+
@include opacity(1);
|
234
|
+
}
|
235
|
+
1.67667% {
|
236
|
+
@include opacity(0.25);
|
237
|
+
}
|
238
|
+
100% {
|
239
|
+
@include opacity(0.270958333333333);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
@keyframes opacity-60-25-6-12 {
|
244
|
+
0% {
|
245
|
+
@include opacity(0.375125);
|
246
|
+
}
|
247
|
+
50.01% {
|
248
|
+
@include opacity(0.25);
|
249
|
+
}
|
250
|
+
50.02% {
|
251
|
+
@include opacity(1);
|
252
|
+
}
|
253
|
+
10.01% {
|
254
|
+
@include opacity(0.25);
|
255
|
+
}
|
256
|
+
100% {
|
257
|
+
@include opacity(0.375125);
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
@keyframes opacity-60-25-7-12 {
|
262
|
+
0% {
|
263
|
+
@include opacity(0.479291666666667);
|
264
|
+
}
|
265
|
+
58.3433% {
|
266
|
+
@include opacity(0.25);
|
267
|
+
}
|
268
|
+
58.3533% {
|
269
|
+
@include opacity(1);
|
270
|
+
}
|
271
|
+
18.3433% {
|
272
|
+
@include opacity(0.25);
|
273
|
+
}
|
274
|
+
100% {
|
275
|
+
@include opacity(0.479291666666667);
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
@keyframes opacity-60-25-8-12 {
|
280
|
+
0% {
|
281
|
+
@include opacity(0.583458333333333);
|
282
|
+
}
|
283
|
+
66.6767% {
|
284
|
+
@include opacity(0.25);
|
285
|
+
}
|
286
|
+
66.6867% {
|
287
|
+
@include opacity(1);
|
288
|
+
}
|
289
|
+
26.6767% {
|
290
|
+
@include opacity(0.25);
|
291
|
+
}
|
292
|
+
100% {
|
293
|
+
@include opacity(0.583458333333333);
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
@keyframes opacity-60-25-9-12 {
|
298
|
+
0% {
|
299
|
+
@include opacity(0.687625);
|
300
|
+
}
|
301
|
+
75.01% {
|
302
|
+
@include opacity(0.25);
|
303
|
+
}
|
304
|
+
75.02% {
|
305
|
+
@include opacity(1);
|
306
|
+
}
|
307
|
+
35.01% {
|
308
|
+
@include opacity(0.25);
|
309
|
+
}
|
310
|
+
100% {
|
311
|
+
@include opacity(0.687625);
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
@keyframes opacity-60-25-10-12 {
|
316
|
+
0% {
|
317
|
+
@include opacity(0.791791666666667);
|
318
|
+
}
|
319
|
+
83.3433% {
|
320
|
+
@include opacity(0.25);
|
321
|
+
}
|
322
|
+
83.3533% {
|
323
|
+
@include opacity(1);
|
324
|
+
}
|
325
|
+
43.3433% {
|
326
|
+
@include opacity(0.25);
|
327
|
+
}
|
328
|
+
100% {
|
329
|
+
@include opacity(0.791791666666667);
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
@keyframes opacity-60-25-11-12 {
|
334
|
+
0% {
|
335
|
+
@include opacity(0.895958333333333);
|
336
|
+
}
|
337
|
+
91.6767% {
|
338
|
+
@include opacity(0.25);
|
339
|
+
}
|
340
|
+
91.6867% {
|
341
|
+
@include opacity(1);
|
342
|
+
}
|
343
|
+
51.6767% {
|
344
|
+
@include opacity(0.25);
|
345
|
+
}
|
346
|
+
100% {
|
347
|
+
@include opacity(0.895958333333333);
|
348
|
+
}
|
349
|
+
}
|