weui-rails 0.4.4 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -1
  3. data/app/views/weui/_message_box.html.erb +8 -8
  4. data/app/views/weui/message_box.html.erb +1 -1
  5. data/lib/weui-rails/helpers/weui_message_box.rb +1 -1
  6. data/lib/weui-rails/version.rb +1 -1
  7. data/vendor/assets/stylesheets/_weui.scss +43 -23
  8. data/vendor/assets/stylesheets/base/fn.scss +9 -6
  9. data/vendor/assets/stylesheets/base/mixin/_mobile.scss +1 -18
  10. data/vendor/assets/stylesheets/base/mixin/_setArrow.scss +11 -82
  11. data/vendor/assets/stylesheets/base/mixin/_setOnepx.scss +4 -4
  12. data/vendor/assets/stylesheets/base/mixin/_text.scss +5 -0
  13. data/vendor/assets/stylesheets/base/reset.scss +4 -3
  14. data/vendor/assets/stylesheets/base/variable/_color.scss +20 -0
  15. data/vendor/assets/stylesheets/base/variable/_global.scss +6 -32
  16. data/vendor/assets/stylesheets/base/variable/_weui-button.scss +37 -0
  17. data/vendor/assets/stylesheets/base/variable/{_weui_cell.scss → _weui-cell.scss} +11 -3
  18. data/vendor/assets/stylesheets/base/variable/_weui-dialog.scss +5 -0
  19. data/vendor/assets/stylesheets/base/variable/{_weui_grid.scss → _weui-grid.scss} +0 -0
  20. data/vendor/assets/stylesheets/base/variable/{_weui_msg.scss → _weui-msg.scss} +0 -0
  21. data/vendor/assets/stylesheets/base/variable/{_weui_progress.scss → _weui-progress.scss} +0 -0
  22. data/vendor/assets/stylesheets/icon/weui-font.scss +56 -0
  23. data/vendor/assets/stylesheets/icon/weui-icon_font.scss +94 -0
  24. data/vendor/assets/stylesheets/widget/weui-agree/weui-agree.scss +59 -0
  25. data/vendor/assets/stylesheets/widget/weui-animate/weui-animate.scss +54 -0
  26. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_default.scss → weui-button/weui-btn_default.scss} +1 -1
  27. data/vendor/assets/stylesheets/widget/weui-button/weui-btn_disabled.scss +15 -0
  28. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_global.scss → weui-button/weui-btn_global.scss} +4 -5
  29. data/vendor/assets/stylesheets/widget/weui-button/weui-btn_plain.scss +29 -0
  30. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_primary.scss → weui-button/weui-btn_primary.scss} +0 -0
  31. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_warn.scss → weui-button/weui-btn_warn.scss} +0 -0
  32. data/vendor/assets/stylesheets/widget/weui-button/weui-button.scss +60 -0
  33. data/vendor/assets/stylesheets/widget/weui-cell/weui-access.scss +32 -0
  34. data/vendor/assets/stylesheets/widget/{weui_cell/weui_cell_global.scss → weui-cell/weui-cell_global.scss} +25 -29
  35. data/vendor/assets/stylesheets/widget/weui-cell/weui-check.scss +4 -0
  36. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_check_common.scss → weui-cell/weui-check/weui-check_common.scss} +0 -0
  37. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_checkbox.scss → weui-cell/weui-check/weui-checkbox.scss} +3 -3
  38. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_radio.scss → weui-cell/weui-check/weui-radio.scss} +2 -2
  39. data/vendor/assets/stylesheets/widget/weui-cell/weui-form.scss +5 -0
  40. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-form-preview.scss +89 -0
  41. data/vendor/assets/stylesheets/widget/{weui_cell/weui_form/weui_form_common.scss → weui-cell/weui-form/weui-form_common.scss} +26 -26
  42. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-select.scss +69 -0
  43. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-vcode.scss +27 -0
  44. data/vendor/assets/stylesheets/widget/weui-cell/weui-gallery.scss +35 -0
  45. data/vendor/assets/stylesheets/widget/weui-cell/weui-switch.scss +52 -0
  46. data/vendor/assets/stylesheets/widget/{weui_cell/weui_uploader.scss → weui-cell/weui-uploader.scss} +36 -36
  47. data/vendor/assets/stylesheets/widget/weui-flex/weui-flex.scss +8 -0
  48. data/vendor/assets/stylesheets/widget/weui-footer/weui-footer.scss +41 -0
  49. data/vendor/assets/stylesheets/widget/weui-grid/weui-grid.scss +55 -0
  50. data/vendor/assets/stylesheets/widget/weui-loading/weui-loading.scss +32 -0
  51. data/vendor/assets/stylesheets/widget/weui-media-box/weui-media-box.scss +87 -0
  52. data/vendor/assets/stylesheets/widget/{weui_page/weui_article.scss → weui-page/weui-article.scss} +5 -4
  53. data/vendor/assets/stylesheets/widget/weui-page/weui-msg.scss +45 -0
  54. data/vendor/assets/stylesheets/widget/weui-panel/weui-panel.scss +34 -0
  55. data/vendor/assets/stylesheets/widget/weui-picker/weui-picker.scss +98 -0
  56. data/vendor/assets/stylesheets/widget/weui-progress/weui-progress.scss +24 -0
  57. data/vendor/assets/stylesheets/widget/{weui_searchbar/weui_searchbar.scss → weui-searchbar/weui-searchbar.scss} +17 -17
  58. data/vendor/assets/stylesheets/widget/{weui_tab → weui-tab}/navbar.scss +7 -7
  59. data/vendor/assets/stylesheets/widget/weui-tab/tabbar.scss +57 -0
  60. data/vendor/assets/stylesheets/widget/{weui_tab/weui_tab.scss → weui-tab/weui-tab.scss} +2 -6
  61. data/vendor/assets/stylesheets/widget/weui-tips/weui-actionsheet.scss +84 -0
  62. data/vendor/assets/stylesheets/widget/weui-tips/weui-dialog.scss +133 -0
  63. data/vendor/assets/stylesheets/widget/weui-tips/weui-loadmore.scss +41 -0
  64. data/vendor/assets/stylesheets/widget/weui-tips/weui-mask.scss +20 -0
  65. data/vendor/assets/stylesheets/widget/weui-tips/weui-toast.scss +35 -0
  66. metadata +54 -47
  67. data/vendor/assets/stylesheets/base/mixin/_setChecked.scss +0 -21
  68. data/vendor/assets/stylesheets/base/variable/_monokai.scss +0 -11
  69. data/vendor/assets/stylesheets/base/variable/_weui_button.scss +0 -21
  70. data/vendor/assets/stylesheets/icon/weui_font.scss +0 -63
  71. data/vendor/assets/stylesheets/icon/weui_icon_font.scss +0 -83
  72. data/vendor/assets/stylesheets/widget/weui_button/weui_btn_disabled.scss +0 -9
  73. data/vendor/assets/stylesheets/widget/weui_button/weui_btn_plain.scss +0 -30
  74. data/vendor/assets/stylesheets/widget/weui_button/weui_button.scss +0 -58
  75. data/vendor/assets/stylesheets/widget/weui_cell/weui_access.scss +0 -23
  76. data/vendor/assets/stylesheets/widget/weui_cell/weui_check.scss +0 -4
  77. data/vendor/assets/stylesheets/widget/weui_cell/weui_form.scss +0 -6
  78. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select.scss +0 -39
  79. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_after.scss +0 -9
  80. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_before.scss +0 -31
  81. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_vcode.scss +0 -14
  82. data/vendor/assets/stylesheets/widget/weui_cell/weui_switch.scss +0 -56
  83. data/vendor/assets/stylesheets/widget/weui_grid/weui_grid.scss +0 -73
  84. data/vendor/assets/stylesheets/widget/weui_media_box/weui_media_box.scss +0 -93
  85. data/vendor/assets/stylesheets/widget/weui_page/weui_msg.scss +0 -48
  86. data/vendor/assets/stylesheets/widget/weui_panel/weui_panel.scss +0 -64
  87. data/vendor/assets/stylesheets/widget/weui_progress/weui_progress.scss +0 -23
  88. data/vendor/assets/stylesheets/widget/weui_tab/tabbar.scss +0 -49
  89. data/vendor/assets/stylesheets/widget/weui_tips/weui_actionsheet.scss +0 -43
  90. data/vendor/assets/stylesheets/widget/weui_tips/weui_dialog.scss +0 -94
  91. data/vendor/assets/stylesheets/widget/weui_tips/weui_mask.scss +0 -35
  92. data/vendor/assets/stylesheets/widget/weui_tips/weui_toast.scss +0 -349
@@ -1,35 +0,0 @@
1
- @import "../../base/fn";
2
-
3
- .#{$weui_ns}mask {
4
- position: fixed;
5
- z-index: 1000;
6
- width: 100%;
7
- height: 100%;
8
- top: 0;
9
- left: 0;
10
- background: rgba(0, 0, 0, .6);
11
- }
12
-
13
- .#{$weui_ns}mask_transparent {
14
- position: fixed;
15
- z-index: 1000;
16
- width: 100%;
17
- height: 100%;
18
- top: 0;
19
- left: 0;
20
- }
21
-
22
- .#{$weui_ns}mask_transition{
23
- display: none;
24
- position: fixed;
25
- z-index: 1000;
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_ns}fade_toggle{
34
- background: rgba(0,0,0,.6);
35
- }
@@ -1,349 +0,0 @@
1
- @import "../../base/fn";
2
-
3
- .#{$weui_ns}toast {
4
- position: fixed;
5
- z-index: 50000;
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_ns}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_ns}toast_content {
28
- margin: 0 0 15px;
29
- }
30
-
31
- // loading toast
32
- .#{$weui_ns}loading_toast {
33
- .#{$weui_ns}toast_content {
34
- margin-top: 64%;
35
- font-size: 14px;
36
- }
37
- }
38
-
39
- .#{$weui_ns}loading {
40
- position: absolute;
41
- width: 0px;
42
- z-index: 1;
43
- left: 50%;
44
- top: 38%;
45
- }
46
-
47
- .#{$weui_ns}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
- }