weaver 0.8.10 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/exe/weaver +7 -6
  3. data/lib/weaver/element_types/code.rb +2 -2
  4. data/lib/weaver/element_types/dynamic_table.rb +1 -1
  5. data/lib/weaver/element_types/form_elements.rb +6 -2
  6. data/lib/weaver/element_types/panel.rb +1 -1
  7. data/lib/weaver/elements.rb +8 -5
  8. data/lib/weaver/page_types/page.rb +3 -1
  9. data/lib/weaver/version.rb +1 -1
  10. data/weaver.gemspec +2 -2
  11. metadata +16 -82
  12. data/data/weaver/js/plugins/skeuocard/Gruntfile.coffee +0 -74
  13. data/data/weaver/js/plugins/skeuocard/LICENSE +0 -21
  14. data/data/weaver/js/plugins/skeuocard/README.md +0 -393
  15. data/data/weaver/js/plugins/skeuocard/bower.json +0 -40
  16. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.eot +0 -0
  17. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.svg +0 -138
  18. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.ttf +0 -0
  19. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.woff +0 -0
  20. data/data/weaver/js/plugins/skeuocard/images/card-flip-arrow.png +0 -0
  21. data/data/weaver/js/plugins/skeuocard/images/card-front-background.png +0 -0
  22. data/data/weaver/js/plugins/skeuocard/images/card-invalid-indicator.png +0 -0
  23. data/data/weaver/js/plugins/skeuocard/images/card-valid-anim.gif +0 -0
  24. data/data/weaver/js/plugins/skeuocard/images/card-valid-indicator.png +0 -0
  25. data/data/weaver/js/plugins/skeuocard/images/error-pointer.png +0 -0
  26. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-chase-sapphire.png +0 -0
  27. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-simple-front.png +0 -0
  28. data/data/weaver/js/plugins/skeuocard/images/products/amex-front.png +0 -0
  29. data/data/weaver/js/plugins/skeuocard/images/products/dinersclubintl-front.png +0 -0
  30. data/data/weaver/js/plugins/skeuocard/images/products/discover-front.png +0 -0
  31. data/data/weaver/js/plugins/skeuocard/images/products/generic-back.png +0 -0
  32. data/data/weaver/js/plugins/skeuocard/images/products/generic-front.png +0 -0
  33. data/data/weaver/js/plugins/skeuocard/images/products/jcb-front.png +0 -0
  34. data/data/weaver/js/plugins/skeuocard/images/products/maestro-front.png +0 -0
  35. data/data/weaver/js/plugins/skeuocard/images/products/mastercard-front.png +0 -0
  36. data/data/weaver/js/plugins/skeuocard/images/products/unionpay-front.png +0 -0
  37. data/data/weaver/js/plugins/skeuocard/images/products/visa-back.png +0 -0
  38. data/data/weaver/js/plugins/skeuocard/images/products/visa-front.png +0 -0
  39. data/data/weaver/js/plugins/skeuocard/images/src/card-front-background.fw.png +0 -0
  40. data/data/weaver/js/plugins/skeuocard/images/src/error-pointer.png +0 -0
  41. data/data/weaver/js/plugins/skeuocard/images/src/product-amex-front.fw.png +0 -0
  42. data/data/weaver/js/plugins/skeuocard/images/src/product-dinersclub-front.fw.png +0 -0
  43. data/data/weaver/js/plugins/skeuocard/images/src/product-discover-front.fw.png +0 -0
  44. data/data/weaver/js/plugins/skeuocard/images/src/product-generic-front.fw.png +0 -0
  45. data/data/weaver/js/plugins/skeuocard/images/src/product-jcb-front.fw.png +0 -0
  46. data/data/weaver/js/plugins/skeuocard/images/src/product-maestro-front.fw.png +0 -0
  47. data/data/weaver/js/plugins/skeuocard/images/src/product-mastercard-front.fw.png +0 -0
  48. data/data/weaver/js/plugins/skeuocard/images/src/product-unionpay-front.fw.png +0 -0
  49. data/data/weaver/js/plugins/skeuocard/images/src/product-visa-front.fw.png +0 -0
  50. data/data/weaver/js/plugins/skeuocard/index.html +0 -124
  51. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.js +0 -1748
  52. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.min.js +0 -2
  53. data/data/weaver/js/plugins/skeuocard/javascripts/src/CardProduct.coffee +0 -284
  54. data/data/weaver/js/plugins/skeuocard/javascripts/src/ExpirationInputView.coffee +0 -206
  55. data/data/weaver/js/plugins/skeuocard/javascripts/src/FlipTabView.coffee +0 -67
  56. data/data/weaver/js/plugins/skeuocard/javascripts/src/SegmentedCardNumberInputView.coffee +0 -284
  57. data/data/weaver/js/plugins/skeuocard/javascripts/src/Skeuocard.coffee +0 -439
  58. data/data/weaver/js/plugins/skeuocard/javascripts/src/TextInputView.coffee +0 -42
  59. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/cssua.min.js +0 -7
  60. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/demo.fix.js +0 -17
  61. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/jquery-2.0.3.min.js +0 -5
  62. data/data/weaver/js/plugins/skeuocard/package-lock.json +0 -760
  63. data/data/weaver/js/plugins/skeuocard/package.json +0 -19
  64. data/data/weaver/js/plugins/skeuocard/screenshot.png +0 -0
  65. data/data/weaver/js/plugins/skeuocard/styles/demo.css +0 -2
  66. data/data/weaver/js/plugins/skeuocard/styles/demo.css.map +0 -7
  67. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css +0 -2
  68. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css.map +0 -7
  69. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css +0 -2
  70. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css.map +0 -7
  71. data/data/weaver/js/plugins/skeuocard/styles/src/_browser_hacks.scss +0 -52
  72. data/data/weaver/js/plugins/skeuocard/styles/src/_cards.scss +0 -516
  73. data/data/weaver/js/plugins/skeuocard/styles/src/_util.scss +0 -15
  74. data/data/weaver/js/plugins/skeuocard/styles/src/demo.scss +0 -265
  75. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.reset.scss +0 -60
  76. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.scss +0 -190
@@ -1,516 +0,0 @@
1
- @import "util";
2
-
3
- $image-front-background: url('../images/card-front-background.png');
4
- $image-generic-front: url('../images/products/generic-front.png');
5
- $image-generic-back: url('../images/products/generic-back.png');
6
-
7
- $card-face-width: 12.4em;
8
- $card-face-height: 7.8em;
9
- $sprite-front-height: 46.8em;
10
-
11
- $card-face-width-lg: 24.8em;
12
- $card-face-height-lg: 15.6em;
13
- $sprite-front-height-lg: 93.6em;
14
-
15
- // *****************************************************************************
16
- // Generic card layout
17
- // *****************************************************************************
18
- .skeuocard.js {
19
-
20
- .face.front {
21
- background-color: #eee;
22
- background-image: url('../images/products/generic-front.png'), $image-front-background;
23
- background-repeat: no-repeat;
24
- background-size: cover;
25
- }
26
-
27
- .face.back {
28
- background-color: #eee;
29
- background-image: url('../images/products/generic-back.png');
30
- background-repeat: no-repeat;
31
- background-size: cover;
32
- }
33
-
34
- .face.valid{
35
- @include vendor-prefix(box-shadow, 0 0 10px $color-valid);
36
- }
37
-
38
- /*
39
- 1. If a field (or group) has focus, regardless of whether it's filled, the
40
- inputs should look like inputs.
41
- 2. Focused inputs within a focused field or group should look focused.
42
- 3. An un-filled field should always look editable.
43
- 4. Filled, valid fields should be flat until hover.
44
- */
45
-
46
- .cc-field{
47
-
48
- input{
49
- border: none;
50
- outline: none;
51
- background-color: rgba(255, 255, 255, 0.6);
52
- @include vendor-prefix(border-radius, 0px);
53
- @include vendor-prefix(box-shadow, inset 1px 1px 1px 1px #ccc);
54
- @include vendor-prefix(transition, background-color 300ms ease);
55
- }
56
-
57
- input:focus{
58
- outline: 3px auto $color-field-glow;
59
- @include vendor-prefix(box-shadow, none);
60
- }
61
-
62
- &.filled.valid:not(.focus){
63
- input{
64
- @include vendor-prefix(box-shadow, none);
65
- background-color: transparent;
66
- }
67
- }
68
-
69
- &.filled:hover:not(.focus){
70
- input{
71
- @include vendor-prefix(box-shadow, inset 1px 1px 1px 1px #ccc);
72
- background-color: rgba(255, 255, 255, 0.6);
73
- }
74
- }
75
-
76
- }
77
-
78
- .face.filled .cc-field.invalid{
79
- input{
80
- @include vendor-prefix(box-shadow, inset 0px 0px 2px 1px $color-invalid);
81
- border: 1px solid $color-invalid;
82
- }
83
-
84
- input:focus{
85
- @include vendor-prefix(box-shadow, none);
86
- }
87
-
88
- /*
89
- &:after{
90
- display: inline-block;
91
- width: 1.575em;
92
- height: 1.25em;
93
- content: "";
94
- background: url('../images/error-pointer.png') no-repeat center center;
95
- background-size: 1.575em 1.25em;
96
- padding-left: 4px;
97
- }
98
- */
99
- }
100
-
101
- .cc-number{
102
- position: absolute;
103
- display: block;
104
- left: 1.8em;
105
- top: 8.05em;
106
- padding: 0.1em;
107
- input{
108
- color: #333;
109
- font-family: $cc-field-family;
110
- font-size: 1.5em;
111
- &.group4{ width: 3.2em; }
112
- &.group5{ width: 3.8em; }
113
- &.group6{ width: 4.6em; }
114
- &.group19{ width: 14em; }
115
- }
116
- input + input {
117
- margin-left: 0.4em;
118
- }
119
- }
120
-
121
- .cc-exp {
122
- position: absolute;
123
- display: block;
124
- input, .separator {
125
- margin: 0; padding: 0;
126
- font-size: 1em;
127
- font-family: $cc-field-family;
128
- color: #333;
129
- text-align: center;
130
- &.group2{ width: 2em; }
131
- &.group4{ width: 4em; }
132
- }
133
- }
134
-
135
- .cc-name {
136
- margin: 0; padding: 0;
137
- position: absolute;
138
- display: block;
139
- font-size: 1em;
140
- font-family: $cc-field-family;
141
- text-transform: uppercase;
142
- }
143
-
144
- .cc-cvc {
145
- margin: 0; padding: 0;
146
- position: absolute;
147
- display: block;
148
- font-size: 1em;
149
- font-family: $cc-label-family;
150
- }
151
-
152
- &.unaccepted .cc-number input{
153
- outline: none;
154
- @include vendor-prefix(box-shadow, 0 0 10px $color-invalid);
155
- @include vendor-prefix(transition, box-shadow linear 0.15s);
156
- }
157
- }
158
-
159
- // *****************************************************************************
160
- // Base layout for cards
161
- // This is inherited by card products.
162
- // *****************************************************************************
163
- .skeuocard.card-product {
164
- .face.front{
165
- background-repeat: no-repeat, no-repeat;
166
- background-size: cover, cover;
167
- }
168
- .face.back{
169
- background-repeat: no-repeat, no-repeat;
170
- background-size: cover, cover;
171
- }
172
- }
173
-
174
- // *****************************************************************************
175
- // Visa product layout
176
- // *****************************************************************************
177
- .skeuocard.product-visa {
178
- @extend .skeuocard.card-product;
179
-
180
- .face.front{
181
- background-image: url('../images/products/visa-front.png'), $image-front-background;
182
- }
183
-
184
- .face.back {
185
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
186
- }
187
-
188
- .cc-number{
189
- left: 1.8em;
190
- top: 8.05em;
191
- }
192
-
193
- .cc-exp{
194
- left: 10.9em;
195
- top: 11.2em;
196
- width: 5em;
197
- }
198
-
199
- .cc-name{
200
- left: 1.8em;
201
- top: 13em;
202
- }
203
-
204
- .cc-cvc{
205
- top: 7.15em;
206
- left: 18.1em;
207
- width: 3em;
208
- }
209
-
210
- // This card puts all required information on the back, rather than the front.
211
- &.issuer-chase-sapphire{
212
- .face.front{
213
- background-image: url('../images/issuers/visa-chase-sapphire.png');
214
- }
215
- .cc-name{
216
- left: 1.25em;
217
- top: 8.90em;
218
- font-family: $cc-label-family;
219
- letter-spacing: 2px;
220
- }
221
- .cc-number{
222
- left: 1.25em;
223
- top: 9.6em;
224
- input{
225
- font-family: $cc-label-family;
226
- letter-spacing: 2px;
227
- font-size: 1.425em;
228
- &.group4{ width: 2.8em; }
229
- }
230
- input + input{
231
- margin-left: 0.1em;
232
- }
233
- }
234
- .cc-exp{
235
- left: 3.75em;
236
- top: 11.5em;
237
- input, .separator{
238
- font-family: $cc-label-family;
239
- &.group2{ width: 1.6em; }
240
- }
241
- }
242
- .cc-cvc{
243
- top: 6.3em;
244
- left: 15.25em;
245
- }
246
-
247
- }
248
-
249
- }
250
-
251
- // *****************************************************************************
252
- // China UnionPay card layout
253
- // *****************************************************************************
254
- .skeuocard.product-unionpay {
255
- @extend .skeuocard.card-product;
256
-
257
- .face.front{
258
- background-image: url('../images/products/unionpay-front.png'), $image-front-background;
259
- }
260
- .face.back {
261
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
262
- }
263
-
264
- .cc-number{
265
- left: 1.8em;
266
- top: 8.05em;
267
- }
268
-
269
- .cc-exp{
270
- left: 10.9em;
271
- top: 11.2em;
272
- width: 5em;
273
- }
274
-
275
- .cc-name{
276
- left: 1.8em;
277
- top: 13em;
278
- }
279
-
280
- .cc-cvc{
281
- top: 7.15em;
282
- left: 18.1em;
283
- width: 3em;
284
- }
285
- }
286
-
287
- // *****************************************************************************
288
- // American Express card layout
289
- // *****************************************************************************
290
- .skeuocard.product-amex {
291
- @extend .skeuocard.card-product;
292
-
293
- .face.front {
294
- background-image: url('../images/products/amex-front.png'), $image-front-background;
295
- }
296
- .face.back{
297
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
298
- }
299
-
300
- .cc-number{
301
- left: 3em;
302
- top: 8em;
303
- }
304
-
305
- .cc-name{
306
- left: 2.5em;
307
- top: 13.5em;
308
- }
309
-
310
- .cc-exp{
311
- left: 2.5em;
312
- top: 11.5em;
313
- }
314
-
315
- .cc-cvc{
316
- left: 21.25em;
317
- top: 7em;
318
- width: 3em;
319
- }
320
- }
321
-
322
- // *****************************************************************************
323
- // Diners Club International card layout
324
- // *****************************************************************************
325
- .skeuocard.product-dinersclubintl {
326
- @extend .skeuocard.card-product;
327
-
328
- .face.front{
329
- background-image: url('../images/products/dinersclubintl-front.png'), $image-front-background;
330
- }
331
- .face.back{
332
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
333
- }
334
- .cc-number{
335
- left: 1.8em;
336
- top: 8.05em;
337
- }
338
- .cc-name{
339
- left: 1.8em;
340
- top: 11.5em;
341
- }
342
- .cc-exp{
343
- left: 17.5em;
344
- top: 13.5em;
345
- }
346
- .cc-cvc{
347
- top: 7.15em;
348
- left: 18.1em;
349
- width: 3em;
350
- }
351
- }
352
-
353
- // *****************************************************************************
354
- // Mastercard card layout
355
- // *****************************************************************************
356
- .skeuocard.product-mastercard {
357
- @extend .skeuocard.card-product;
358
-
359
- .face.front{
360
- background-image: url('../images/products/mastercard-front.png'), $image-front-background;
361
- }
362
- .face.back{
363
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
364
- }
365
-
366
- .cc-number{
367
- position: absolute;
368
- display: block;
369
- left: 1.8em;
370
- top: 8.05em;
371
- padding: 0.1em;
372
- input{
373
- font-size: 1.1em;
374
- &.group4{ width: 3.0em; }
375
- }
376
- input + input {
377
- margin-left: 0.4em;
378
- }
379
- }
380
-
381
- .cc-name{
382
- left: 1.8em;
383
- top: 12.2em;
384
- }
385
-
386
- .cc-exp{
387
- left: 11.5em;
388
- top: 10.8em;
389
- }
390
-
391
- .cc-cvc{
392
- top: 7.15em;
393
- left: 18.1em;
394
- width: 3em;
395
- }
396
- }
397
-
398
- // *****************************************************************************
399
- // Maestro card layout
400
- // *****************************************************************************
401
- .skeuocard.product-maestro {
402
- @extend .skeuocard.card-product;
403
-
404
- .face.front{
405
- background-image: url('../images/products/maestro-front.png'), $image-front-background;
406
- }
407
- .face.back{
408
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
409
- }
410
-
411
- .cc-number{
412
- left: 1.8em;
413
- top: 8.05em;
414
- }
415
-
416
- .cc-name{
417
- left: 2.5em;
418
- top: 12.2em;
419
- }
420
-
421
- .cc-exp{
422
- left: 11.5em;
423
- top: 10.8em;
424
- }
425
-
426
- .cc-cvc{
427
- top: 7.15em;
428
- left: 18.1em;
429
- width: 3em;
430
- }
431
- }
432
-
433
- // *****************************************************************************
434
- // Discover card layout
435
- // *****************************************************************************
436
- .skeuocard.product-discover {
437
- @extend .skeuocard.card-product;
438
-
439
- .face.front{
440
- background-image: url('../images/products/discover-front.png'), $image-front-background;
441
- }
442
-
443
- .face.back{
444
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
445
- }
446
-
447
- .cc-number{
448
- left: 1.8em;
449
- top: 8.05em;
450
- }
451
-
452
- .cc-name{
453
- left: 1.55em;
454
- top: 13.575em;
455
- }
456
-
457
- .cc-exp{
458
- left: 13.15em;
459
- top: 11.61em;
460
- }
461
-
462
- .cc-cvc{
463
- top: 7.15em;
464
- left: 18.1em;
465
- width: 3em;
466
- }
467
- }
468
-
469
- // *****************************************************************************
470
- // JCB card product
471
- // *****************************************************************************
472
- .skeuocard.product-jcb {
473
- @extend .skeuocard.card-product;
474
-
475
- .face.front{
476
- background-image: url('../images/products/jcb-front.png'), $image-front-background;
477
- }
478
-
479
- .face.back{
480
- background-image: url('../images/products/visa-back.png'), $image-generic-back;
481
- }
482
-
483
- .cc-number{
484
- left: 1.8em;
485
- top: 8.05em;
486
- }
487
-
488
- .cc-name{
489
- left: 1.55em;
490
- top: 13.575em;
491
- }
492
-
493
- .cc-exp{
494
- left: 10.65em;
495
- top: 11.50em;
496
- }
497
-
498
- .cc-cvc{
499
- top: 7.15em;
500
- left: 18.1em;
501
- width: 3em;
502
- }
503
- }
504
-
505
- /* Preload face images */
506
- body:after{
507
- display:none;
508
- content: url('../images/products/visa-back.png') // most use this
509
- url('../images/products/visa-front.png')
510
- url('../images/products/unionpay-front.png')
511
- url('../images/products/amex-front.png')
512
- url('../images/products/discover-front.png')
513
- url('../images/products/mastercard-front.png')
514
- url('../images/products/dinersclubintl-front.png')
515
- url('../images/products/jcb-front.png');
516
- }
@@ -1,15 +0,0 @@
1
- @mixin input-placeholder {
2
- &.placeholder { @content; }
3
- &:-moz-placeholder { @content; }
4
- &::-moz-placeholder { @content; }
5
- &:-ms-input-placeholder { @content; }
6
- &::-webkit-input-placeholder { @content; }
7
- }
8
-
9
- @mixin vendor-prefix($name, $argument) {
10
- #{$name}: $argument;
11
- -webkit-#{$name}: $argument;
12
- -ms-#{$name}: $argument;
13
- -moz-#{$name}: $argument;
14
- -o-#{$name}: $argument;
15
- }