twitter_ratchet_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/app/assets/fonts/ratchicons.eot +0 -0
  5. data/app/assets/fonts/ratchicons.svg +61 -0
  6. data/app/assets/fonts/ratchicons.ttf +0 -0
  7. data/app/assets/fonts/ratchicons.woff +0 -0
  8. data/app/assets/javascripts/twitter_ratchet_rails/ratchet.js +916 -0
  9. data/app/assets/javascripts/twitter_ratchet_rails.js +1 -0
  10. data/app/assets/stylesheets/ratchet_android.css +4 -0
  11. data/app/assets/stylesheets/ratchet_base.css +3 -0
  12. data/app/assets/stylesheets/ratchet_ios.css +4 -0
  13. data/app/assets/stylesheets/twitter_ratchet_rails/ratchet-theme-android.css +588 -0
  14. data/app/assets/stylesheets/twitter_ratchet_rails/ratchet-theme-ios.css +471 -0
  15. data/app/assets/stylesheets/twitter_ratchet_rails/ratchet.css.erb +1430 -0
  16. data/app/helpers/twitter_ratchet_rails/application_helper.rb +4 -0
  17. data/app/views/layouts/twitter_ratchet_rails/application.html.erb +14 -0
  18. data/lib/tasks/twitter_ratchet_rails_tasks.rake +4 -0
  19. data/lib/twitter_ratchet_rails/engine.rb +5 -0
  20. data/lib/twitter_ratchet_rails/version.rb +3 -0
  21. data/lib/twitter_ratchet_rails.rb +4 -0
  22. data/test/dummy/README.rdoc +28 -0
  23. data/test/dummy/Rakefile +6 -0
  24. data/test/dummy/app/assets/javascripts/application.js +13 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  26. data/test/dummy/app/controllers/application_controller.rb +5 -0
  27. data/test/dummy/app/helpers/application_helper.rb +2 -0
  28. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/test/dummy/bin/bundle +3 -0
  30. data/test/dummy/bin/rails +4 -0
  31. data/test/dummy/bin/rake +4 -0
  32. data/test/dummy/config/application.rb +23 -0
  33. data/test/dummy/config/boot.rb +5 -0
  34. data/test/dummy/config/database.yml +25 -0
  35. data/test/dummy/config/environment.rb +5 -0
  36. data/test/dummy/config/environments/development.rb +29 -0
  37. data/test/dummy/config/environments/production.rb +80 -0
  38. data/test/dummy/config/environments/test.rb +36 -0
  39. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +12 -0
  44. data/test/dummy/config/initializers/session_store.rb +3 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +23 -0
  47. data/test/dummy/config/routes.rb +4 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/public/404.html +58 -0
  50. data/test/dummy/public/422.html +58 -0
  51. data/test/dummy/public/500.html +57 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/integration/navigation_test.rb +10 -0
  54. data/test/test_helper.rb +15 -0
  55. data/test/twitter_ratchet_rails_test.rb +7 -0
  56. metadata +146 -0
@@ -0,0 +1 @@
1
+ //= require twitter_ratchet_rails/ratchet
@@ -0,0 +1,4 @@
1
+ /*
2
+ *=require ratchet_base
3
+ *=require twitter_ratchet_rails/ratchet-theme-android
4
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *=require twitter_ratchet_rails/ratchet
3
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ *=require ratchet_base
3
+ *=require twitter_ratchet_rails/ratchet-theme-ios
4
+ */
@@ -0,0 +1,588 @@
1
+ /*!
2
+ * =====================================================
3
+ * Ratchet v2.0.1 (http://goratchet.com)
4
+ * Copyright 2014 Connor Sears
5
+ * Licensed under MIT.
6
+ *
7
+ * v2.0.1 designed by @connors.
8
+ * =====================================================
9
+ */
10
+
11
+ body {
12
+ font-family: "Roboto", sans-serif;
13
+ font-size: 18px;
14
+ line-height: 22px;
15
+ color: #222222;
16
+ }
17
+
18
+ a {
19
+ color: #33b5e5;
20
+ }
21
+ a:active {
22
+ color: #1a9bcb;
23
+ }
24
+
25
+ .content {
26
+ background-color: #f2f2f2;
27
+ }
28
+
29
+ .bar-nav ~ .content {
30
+ padding-top: 50px;
31
+ }
32
+
33
+ .bar-header-secondary ~ .content {
34
+ padding-top: 100px;
35
+ }
36
+
37
+ .bar-tab ~ .content {
38
+ padding-top: 50px;
39
+ padding-bottom: 0;
40
+ }
41
+
42
+ .bar-footer ~ .content {
43
+ padding-bottom: 50px;
44
+ }
45
+
46
+ .bar-footer-secondary ~ .content {
47
+ padding-bottom: 100px;
48
+ }
49
+
50
+ .btn {
51
+ padding: 8px 15px;
52
+ font-size: 14px;
53
+ color: #222222;
54
+ background-color: #cecece;
55
+ border: 0;
56
+ border-radius: 2px;
57
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
58
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
59
+ }
60
+ .btn:active, .btn.active {
61
+ color: #222222;
62
+ border: 0;
63
+ background-color: #999999;
64
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
65
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
66
+ }
67
+
68
+ .btn-primary {
69
+ color: #fff;
70
+ border: 0;
71
+ background-color: #33b5e5;
72
+ }
73
+ .btn-primary:active, .btn-primary.active {
74
+ color: #fff;
75
+ border: 0;
76
+ background-color: #1a9bcb;
77
+ }
78
+
79
+ .btn-positive {
80
+ color: #fff;
81
+ border: 0;
82
+ background-color: #99cc00;
83
+ }
84
+ .btn-positive:active, .btn-positive.active {
85
+ color: #fff;
86
+ border: 0;
87
+ background-color: #739900;
88
+ }
89
+
90
+ .btn-negative {
91
+ color: #fff;
92
+ border: 0;
93
+ background-color: #ff4444;
94
+ }
95
+ .btn-negative:active, .btn-negative.active {
96
+ color: #fff;
97
+ border: 0;
98
+ background-color: #ff1111;
99
+ }
100
+
101
+ .btn-outlined {
102
+ border: 1px solid #999999;
103
+ background-color: transparent;
104
+ -webkit-box-shadow: none;
105
+ box-shadow: none;
106
+ }
107
+ .btn-outlined.btn-primary {
108
+ border: 1px solid #33b5e5;
109
+ color: #33b5e5;
110
+ }
111
+ .btn-outlined.btn-primary:active {
112
+ border: 1px solid #33b5e5;
113
+ background-color: #33b5e5;
114
+ }
115
+ .btn-outlined.btn-positive {
116
+ border: 1px solid #99cc00;
117
+ color: #99cc00;
118
+ }
119
+ .btn-outlined.btn-positive:active {
120
+ border: 1px solid #99cc00;
121
+ background-color: #99cc00;
122
+ }
123
+ .btn-outlined.btn-negative {
124
+ border: 1px solid #ff4444;
125
+ color: #ff4444;
126
+ }
127
+ .btn-outlined.btn-negative:active {
128
+ border: 1px solid #ff4444;
129
+ background-color: #ff4444;
130
+ }
131
+ .btn-outlined:active {
132
+ border: 1px solid #999999;
133
+ background-color: #999999;
134
+ -webkit-box-shadow: none;
135
+ box-shadow: none;
136
+ }
137
+ .btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
138
+ color: #fff;
139
+ -webkit-box-shadow: none;
140
+ box-shadow: none;
141
+ }
142
+
143
+ .btn-link {
144
+ color: #33b5e5;
145
+ background-color: transparent;
146
+ border: none;
147
+ -webkit-box-shadow: none;
148
+ box-shadow: none;
149
+ }
150
+ .btn-link:active, .btn-link.active {
151
+ color: #1a9bcb;
152
+ background-color: transparent;
153
+ -webkit-box-shadow: none;
154
+ box-shadow: none;
155
+ }
156
+
157
+ .btn-block {
158
+ padding: 15px 0;
159
+ font-size: 18px;
160
+ }
161
+
162
+ .btn .badge {
163
+ background-color: rgba(0, 0, 0, 0.15);
164
+ }
165
+ .btn .badge.badge-inverted {
166
+ background-color: transparent;
167
+ }
168
+ .btn:active .badge {
169
+ color: #fff;
170
+ }
171
+
172
+ .bar {
173
+ height: 50px;
174
+ background-color: #dddddd;
175
+ border-bottom: 1px solid #b1b1b1;
176
+ -webkit-box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
177
+ box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
178
+ }
179
+ .bar.bar-header-secondary {
180
+ top: 50px;
181
+ }
182
+ .bar.bar-footer-secondary {
183
+ bottom: 50px;
184
+ }
185
+ .bar.bar-footer-secondary-tab {
186
+ bottom: 50px;
187
+ }
188
+ .bar .bar-footer,
189
+ .bar .bar-footer-secondary,
190
+ .bar .bar-footer-secondary-tab {
191
+ border-bottom: 0;
192
+ border-top: 1px solid #b1b1b1;
193
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
194
+ box-shadow: inset 0 -2px 0 #33b5e5;
195
+ }
196
+
197
+ .bar-tab {
198
+ top: 0;
199
+ bottom: auto;
200
+ height: 50px;
201
+ border-top: 0;
202
+ }
203
+ .bar-tab .tab-item {
204
+ color: #929292;
205
+ }
206
+ .bar-tab .tab-item.active {
207
+ color: #33b5e5;
208
+ -webkit-box-shadow: inset 0 -2px 0 #33b5e5;
209
+ box-shadow: inset 0 -2px 0 #33b5e5;
210
+ }
211
+ .bar-tab .tab-item:active {
212
+ color: #929292;
213
+ background-color: #78c6e3;
214
+ }
215
+ .bar-tab .tab-item .icon {
216
+ top: 3px;
217
+ padding-top: 0;
218
+ padding-bottom: 0;
219
+ }
220
+
221
+ .title {
222
+ position: static;
223
+ padding-left: 15px;
224
+ font-size: 18px;
225
+ line-height: 49px;
226
+ text-align: left;
227
+ }
228
+
229
+ .bar .btn {
230
+ top: 7px;
231
+ padding-top: 10px;
232
+ padding-bottom: 10px;
233
+ }
234
+ .bar .btn-link {
235
+ top: 0;
236
+ padding: 0;
237
+ color: #33b5e5;
238
+ font-size: 18px;
239
+ line-height: 49px;
240
+ }
241
+ .bar .btn-link:active, .bar .btn-link.active {
242
+ color: #1a9bcb;
243
+ }
244
+ .bar .btn-link .icon {
245
+ top: 2px;
246
+ padding: 0;
247
+ }
248
+ .bar .btn-block {
249
+ top: 4px;
250
+ }
251
+
252
+ .bar .segmented-control {
253
+ top: 7px;
254
+ }
255
+
256
+ .bar .icon {
257
+ padding-top: 13px;
258
+ padding-bottom: 13px;
259
+ }
260
+ .bar .title .icon {
261
+ padding: 0;
262
+ }
263
+ .bar .title .icon.icon-caret {
264
+ top: 10px;
265
+ color: #777;
266
+ }
267
+
268
+ .bar input[type="search"] {
269
+ height: 35px;
270
+ }
271
+
272
+ .badge.badge-inverted {
273
+ color: #999999;
274
+ background-color: transparent;
275
+ }
276
+
277
+ .badge-primary {
278
+ color: #fff;
279
+ background-color: #33b5e5;
280
+ }
281
+ .badge-primary.badge-inverted {
282
+ color: #33b5e5;
283
+ background-color: transparent;
284
+ }
285
+
286
+ .badge-positive {
287
+ color: #fff;
288
+ background-color: #99cc00;
289
+ }
290
+ .badge-positive.badge-inverted {
291
+ color: #99cc00;
292
+ background-color: transparent;
293
+ }
294
+
295
+ .badge-negative {
296
+ color: #fff;
297
+ background-color: #ff4444;
298
+ }
299
+ .badge-negative.badge-inverted {
300
+ color: #ff4444;
301
+ background-color: transparent;
302
+ }
303
+
304
+ .card {
305
+ border-color: #d9d9d9;
306
+ border-radius: 2px;
307
+ background-color: transparent;
308
+ }
309
+
310
+ .table-view {
311
+ background-color: transparent;
312
+ }
313
+ .table-view .table-view-cell {
314
+ border-bottom: 1px solid #d9d9d9;
315
+ }
316
+ .table-view .table-view-cell:last-child {
317
+ background-image: none;
318
+ }
319
+ .table-view .table-view-cell > a:not(.btn):active {
320
+ background-color: #e0e0e0;
321
+ }
322
+ .table-view .table-view-cell > a:not(.btn):active .icon {
323
+ color: #fff;
324
+ }
325
+ .table-view .table-view-divider {
326
+ padding-top: 25px;
327
+ font-size: 12px;
328
+ font-weight: bold;
329
+ text-transform: uppercase;
330
+ border-top: 0;
331
+ border-bottom: 2px solid #a9a9a9;
332
+ background-color: transparent;
333
+ }
334
+
335
+ select,
336
+ textarea,
337
+ input[type="text"],
338
+ input[type="search"],
339
+ input[type="password"],
340
+ input[type="datetime"],
341
+ input[type="datetime-local"],
342
+ input[type="date"],
343
+ input[type="month"],
344
+ input[type="time"],
345
+ input[type="week"],
346
+ input[type="number"],
347
+ input[type="email"],
348
+ input[type="url"],
349
+ input[type="tel"],
350
+ input[type="color"],
351
+ .input-group {
352
+ height: 40px;
353
+ padding: 10px 15px;
354
+ border: 1px solid rgba(0, 0, 0, 0.2);
355
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
356
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
357
+ }
358
+
359
+ input[type="search"] {
360
+ border-radius: 2px;
361
+ }
362
+
363
+ select,
364
+ textarea,
365
+ .input-group {
366
+ height: auto;
367
+ }
368
+
369
+ .input-group {
370
+ padding: 0;
371
+ border: 0;
372
+ }
373
+
374
+ .input-group input {
375
+ border: 0;
376
+ border-bottom: 1px solid #d9d9d9;
377
+ -webkit-box-shadow: none;
378
+ box-shadow: none;
379
+ }
380
+
381
+ .input-group input:last-child {
382
+ background-image: none;
383
+ }
384
+
385
+ .input-row {
386
+ border-bottom: 1px solid #d9d9d9;
387
+ }
388
+
389
+ .input-row label + input {
390
+ background-image: none;
391
+ border-bottom: 0;
392
+ }
393
+
394
+ .segmented-control {
395
+ font-size: 14px;
396
+ background-color: #cecece;
397
+ border: 0;
398
+ border-radius: 2px;
399
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
400
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
401
+ }
402
+ .segmented-control .control-item {
403
+ padding-top: 10px;
404
+ padding-bottom: 10px;
405
+ color: #222222;
406
+ border-left: 1px solid #999;
407
+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
408
+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
409
+ }
410
+ .segmented-control .control-item:first-child {
411
+ border-left-width: 0;
412
+ }
413
+ .segmented-control .control-item:active, .segmented-control .control-item.active {
414
+ background-color: #999999;
415
+ }
416
+
417
+ .segmented-control-primary {
418
+ border: 0;
419
+ }
420
+ .segmented-control-primary .control-item {
421
+ color: #fff;
422
+ border-color: inherit;
423
+ }
424
+ .segmented-control-primary .control-item:active, .segmented-control-primary .control-item.active {
425
+ color: #fff;
426
+ background-color: #33b5e5;
427
+ }
428
+
429
+ .segmented-control-positive {
430
+ border: 0;
431
+ }
432
+ .segmented-control-positive .control-item {
433
+ color: #fff;
434
+ border-color: inherit;
435
+ }
436
+ .segmented-control-positive .control-item:active, .segmented-control-positive .control-item.active {
437
+ color: #fff;
438
+ background-color: #99cc00;
439
+ }
440
+
441
+ .segmented-control-negative {
442
+ border: 0;
443
+ }
444
+ .segmented-control-negative .control-item {
445
+ color: #fff;
446
+ border-color: inherit;
447
+ }
448
+ .segmented-control-negative .control-item:active, .segmented-control-negative .control-item.active {
449
+ color: #fff;
450
+ background-color: #ff4444;
451
+ }
452
+
453
+ .popover {
454
+ top: 47px;
455
+ left: 15px;
456
+ width: 200px;
457
+ margin-left: 0;
458
+ border: 1px solid #9b9b9b;
459
+ border-radius: 0;
460
+ -webkit-transition: -webkit-transform .1s ease-in-out, opacity .2s ease-in-out;
461
+ -moz-transition: -moz-transform .1s ease-in-out, opacity .2s ease-in-out;
462
+ transition: transform .1s ease-in-out, opacity .2s ease-in-out;
463
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
464
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
465
+ -webkit-transform: scale(0.75);
466
+ -ms-transform: scale(0.75);
467
+ transform: scale(0.75);
468
+ }
469
+ .popover:before {
470
+ display: none;
471
+ }
472
+ .popover.visible {
473
+ -webkit-transform: scale(1);
474
+ -ms-transform: scale(1);
475
+ transform: scale(1);
476
+ }
477
+
478
+ .backdrop {
479
+ background-color: transparent;
480
+ }
481
+
482
+ .popover .bar {
483
+ border-radius: 0;
484
+ }
485
+ .popover .bar-nav ~ .table-view {
486
+ padding-top: 50px;
487
+ }
488
+
489
+ .popover .table-view {
490
+ border-radius: 12px;
491
+ }
492
+
493
+ .toggle {
494
+ width: 104px;
495
+ height: 28px;
496
+ border: 2px solid #d7d7d7;
497
+ border-radius: 0;
498
+ background-color: #d7d7d7;
499
+ }
500
+ .toggle .toggle-handle {
501
+ top: 0;
502
+ left: 0;
503
+ width: 50px;
504
+ height: 24px;
505
+ border: 1px solid #b5b5b5;
506
+ border-radius: 2px;
507
+ background-color: #bebebe;
508
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
509
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
510
+ }
511
+ .toggle:before {
512
+ top: 1px;
513
+ right: auto;
514
+ left: 11px;
515
+ z-index: 3;
516
+ color: #fff;
517
+ }
518
+ .toggle.active {
519
+ border: 2px solid #d7d7d7;
520
+ background-color: #d7d7d7;
521
+ }
522
+ .toggle.active .toggle-handle {
523
+ margin-right: 2px;
524
+ background-color: #33b5e5;
525
+ border-color: #33b5e5;
526
+ -webkit-transform: translate3d(50px, 0, 0);
527
+ -ms-transform: translate3d(50px, 0, 0);
528
+ transform: translate3d(50px, 0, 0);
529
+ }
530
+ .toggle.active:before {
531
+ left: auto;
532
+ right: 14px;
533
+ color: #fff;
534
+ }
535
+
536
+ .navigate-left:after,
537
+ .push-left:after {
538
+ content: '';
539
+ }
540
+
541
+ .navigate-right:after,
542
+ .push-right:after {
543
+ content: '';
544
+ }
545
+
546
+ .icon-caret:before {
547
+ content: '\e800';
548
+ }
549
+
550
+ .icon-down:before,
551
+ .icon-down-nav:before {
552
+ content: '\e801';
553
+ }
554
+
555
+ .icon-download:before {
556
+ content: '\e802';
557
+ }
558
+
559
+ .icon-left:before,
560
+ .icon-left-nav:before {
561
+ content: '\e803';
562
+ }
563
+
564
+ .icon-more-vertical:before {
565
+ content: '\e804';
566
+ }
567
+
568
+ .icon-more:before {
569
+ content: '\e805';
570
+ }
571
+
572
+ .icon-right:before,
573
+ .icon-right-nav:before {
574
+ content: '\e806';
575
+ }
576
+
577
+ .icon-search:before {
578
+ content: '\e807';
579
+ }
580
+
581
+ .icon-share:before {
582
+ content: '\e808';
583
+ }
584
+
585
+ .icon-up:before,
586
+ .icon-up-nav:before {
587
+ content: '\e809';
588
+ }