outdated_browser 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/Gemfile +4 -0
  4. data/README.md +36 -0
  5. data/Rakefile +2 -0
  6. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  7. data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  8. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  10. data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  11. data/app/assets/images/outdated_browser/bg.jpg +0 -0
  12. data/app/assets/images/outdated_browser/browsehappy-sprite.png +0 -0
  13. data/app/assets/images/outdated_browser/browsers.png +0 -0
  14. data/app/assets/javascripts/bootstrap/bootstrap.js +2363 -0
  15. data/app/assets/javascripts/bootstrap/bootstrap.min.js +7 -0
  16. data/app/assets/javascripts/bootstrap/npm.js +13 -0
  17. data/app/assets/javascripts/outdated_browser/modernizr-1.6.min.js +30 -0
  18. data/app/assets/javascripts/outdated_browser/outdated_browser_alerta.js +179 -0
  19. data/app/assets/stylesheets/bootstrap/bootstrap-theme.css +587 -0
  20. data/app/assets/stylesheets/bootstrap/bootstrap-theme.css.map +1 -0
  21. data/app/assets/stylesheets/bootstrap/bootstrap-theme.min.css +6 -0
  22. data/app/assets/stylesheets/bootstrap/bootstrap-theme.min.css.map +1 -0
  23. data/app/assets/stylesheets/bootstrap/bootstrap.css +6760 -0
  24. data/app/assets/stylesheets/bootstrap/bootstrap.css.map +1 -0
  25. data/app/assets/stylesheets/bootstrap/bootstrap.min.css +6 -0
  26. data/app/assets/stylesheets/bootstrap/bootstrap.min.css.map +1 -0
  27. data/app/assets/stylesheets/outdated_browser/enablejs.css.erb +448 -0
  28. data/app/assets/stylesheets/outdated_browser/outdated_browser_alerta.css +26 -0
  29. data/app/assets/stylesheets/outdated_browser/outdated_browser_index.css.erb +558 -0
  30. data/app/controllers/outdated_browser_controller.rb +22 -0
  31. data/app/helpers/outdated_browser_helper.rb +35 -0
  32. data/app/views/layouts/sign.html.erb +36 -0
  33. data/app/views/outdated_browser/_outdated_browser.html.erb +34 -0
  34. data/app/views/outdated_browser/index.html.erb +50 -0
  35. data/app/views/outdated_browser/javascript_disabled.html.erb +180 -0
  36. data/bin/console +14 -0
  37. data/bin/setup +8 -0
  38. data/config/initializers/assets.rb +2 -0
  39. data/config/initializers/browser.rb +9 -0
  40. data/config/locales/outdated_browser.pt-BR.yml +75 -0
  41. data/config/routes.rb +7 -0
  42. data/lib/outdated_browser.rb +5 -0
  43. data/lib/outdated_browser/rails.rb +7 -0
  44. data/lib/outdated_browser/version.rb +3 -0
  45. data/outdated_browser.gemspec +25 -0
  46. metadata +129 -0
@@ -0,0 +1,26 @@
1
+ /*!--------------------------------------------------------------------
2
+ STYLES "Outdated Browser"
3
+ Version: 1.1.0 - 2014
4
+ author: Burocratik
5
+ website: http://www.burocratik.com
6
+ * @preserve
7
+ -----------------------------------------------------------------------*/
8
+ #outdated{
9
+ display: none; position: fixed; top: 0; left: 0; width: 100%; height: 110px;
10
+ text-align: center; text-transform: uppercase; z-index:1500;
11
+ background-color: #f25648; color: #ffffff;
12
+ }
13
+ * html #outdated{position: absolute;}
14
+ #outdated h6{font-size: 25px; line-height: 25px; margin: 20px 0 10px;}
15
+ #outdated p{font-size: 12px; line-height: 12px; margin: 0;}
16
+ #outdated #btnUpdateBrowser{
17
+ display: block; position: relative; padding: 10px 20px; margin: 15px auto 0; width: 230px; /*need for IE*/
18
+ color: #ffffff; text-decoration: none; border: 2px solid #ffffff; cursor: pointer;
19
+ }
20
+ #outdated #btnUpdateBrowser:hover{color: #f25648; background-color:#ffffff;}
21
+ #outdated .last{position: absolute; top: 10px; right: 25px; width: 20px; height: 20px;}
22
+ #outdated .last[dir='rtl']{right: auto !important; left: 25px !important;}
23
+ #outdated #btnCloseUpdateBrowser{
24
+ display: block; position: relative; width: 100%; height: 100%;
25
+ text-decoration: none; color: #ffffff; font-size: 36px; line-height: 36px;
26
+ }
@@ -0,0 +1,558 @@
1
+ //= depend_on_asset "outdated_browser/bg.jpg"
2
+ //= depend_on_asset "outdated_browser/browsehappy-sprite.png"
3
+ /*
4
+ * Theme Name: Browse Happy
5
+ * Theme URI: http://browsehappy.com/
6
+ * Description: The 2011 design for Browse Happy, proudly powered by WordPress.
7
+ * Author: WordPress
8
+ * Author URI: http://wordpress.org/
9
+ * License: GPLv2 or later
10
+ */
11
+
12
+ /* Reset */
13
+
14
+ html, body, div, span, h1, h2, p, code, em, img, ins, strong, ol, ul, li, article, aside, footer, header, hgroup, menu, nav, section {
15
+ margin: 0;
16
+ padding: 0;
17
+ border: 0;
18
+ outline: 0;
19
+ font-size: 100%;
20
+ vertical-align: baseline;
21
+ background: transparent;
22
+ }
23
+
24
+ article,footer,header,hgroup,menu,nav,section {
25
+ display: block;
26
+ }
27
+
28
+ ul {
29
+ list-style: none;
30
+ }
31
+
32
+ a {
33
+ margin: 0;
34
+ padding: 0;
35
+ font-size: 100%;
36
+ vertical-align: baseline;
37
+ background: transparent;
38
+ }
39
+
40
+ a:link {
41
+ -webkit-tap-highlight-color: #F0D200;
42
+ }
43
+
44
+ html {
45
+ overflow-y: scroll;
46
+ }
47
+
48
+ strong {
49
+ font-weight: bold;
50
+ }
51
+
52
+ h1, h2 {
53
+ font-weight: normal;
54
+ }
55
+
56
+ ::-moz-selection {
57
+ background: #F0D200;
58
+ color: #fff;
59
+ text-shadow: none;
60
+ }
61
+
62
+ ::selection {
63
+ background: #F0D200;
64
+ color: #fff;
65
+ text-shadow: none;
66
+ }
67
+
68
+ /* Generic Stuff */
69
+
70
+ body {
71
+ font: 13px/1.5 "lemonde-courrier-1","lemonde-courrier-2", Helvetica, Arial, sans-serif;
72
+ *font-size: small;
73
+ background: #2b4141;
74
+ color: #3F4B4B;
75
+ min-width: 960px;
76
+ }
77
+
78
+ #body-wrap {
79
+ background: #DED3BF url(<%= asset_path("outdated_browser/bg.jpg") %>) repeat 0 0;
80
+ }
81
+
82
+ header, #main, footer {
83
+ width: 100%;
84
+ min-width: 960px;
85
+ }
86
+
87
+ .wrap:before, .wrap:after {
88
+ content: "\0020";
89
+ display: block;
90
+ height: 0;
91
+ visibility: hidden;
92
+ }
93
+
94
+ .wrap:after {
95
+ clear: both;
96
+ }
97
+
98
+ .wrap {
99
+ zoom: 1;
100
+ width: 960px;
101
+ margin: 0 auto;
102
+ }
103
+
104
+ a:link, a:visited {
105
+ color: #1E8585;
106
+ text-decoration: none;
107
+ }
108
+
109
+ a:hover, a:active {
110
+ color: #000;
111
+ }
112
+
113
+ /* i18n */
114
+
115
+ #i18n-alert {
116
+ text-align: center;
117
+ padding: 10px 0;
118
+ background: #2B4141 url(imgs/bg-footer.png) repeat-x 0 -10px;
119
+ width: 100%;
120
+ font-family: "lemonde-courrier-1","lemonde-courrier-2", Helvetica, Arial, sans-serif;
121
+ }
122
+
123
+ #i18n-alert p {
124
+ width: 960px;
125
+ margin: 0 auto;
126
+ display: block;
127
+ color: #efefef;
128
+ text-shadow: 0 1px 0;
129
+ }
130
+
131
+ #i18n-alert p a {
132
+ color: #fff;
133
+ text-decoration: underline;
134
+ }
135
+ #i18n-alert p a:hover {
136
+ text-decoration: none;
137
+ }
138
+
139
+ /* Header */
140
+
141
+ header {
142
+ text-align: center;
143
+ border-top: 1px solid #9DC8C3;
144
+ padding: 70px 0;
145
+ background: url(imgs/bg-header.png?1) repeat-x left bottom;
146
+ }
147
+
148
+ header h1 {
149
+ font: 1100%/1 Impact, Helvetica, sans-serif;
150
+ text-transform: uppercase;
151
+ margin: 0;
152
+ color: #324B4B;
153
+ text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 -1px 0 rgba(0,0,0,.8);
154
+ }
155
+
156
+ .wf-leaguegothic1leaguegothic2-n4-active header h1 {
157
+ font-size: 1491%;
158
+ font-family: "league-gothic-1","league-gothic-2";
159
+ }
160
+
161
+ header h1 em {
162
+ font-style: normal;
163
+ color: #F0D200;
164
+ text-shadow: 0 1px 0 rgba(0, 50, 40, 0.5), 0 -1px 0 rgba(255, 255, 0, 0.8);
165
+ }
166
+
167
+ header h2 {
168
+ font-size: 177%;
169
+ font-weight: normal;
170
+ color: #fff;
171
+ text-shadow: 0 1px 0 #4C7C7B;
172
+ font-family: "lemonde-courrier-1","lemonde-courrier-2", Helvetica, Arial, sans-serif !important;
173
+ }
174
+
175
+ header h2 em {
176
+ font-weight: 700;
177
+ }
178
+
179
+ /* Browser Status Bar */
180
+
181
+ #browser-status {
182
+ background: #DC3228;
183
+ border: 1px solid #c62d24;
184
+ margin: 20px auto 0;
185
+ padding: 20px 30px;
186
+ width: 870px;
187
+ color: white;
188
+ font-size: 120%;
189
+ font-family: "lemonde-courrier-1","lemonde-courrier-2", Helvetica, Arial, sans-serif;
190
+ text-shadow: 0 2px 0 #c62d24;
191
+ -webkit-border-radius: 2px;
192
+ -moz-border-radius: 2px;
193
+ -o-border-radius: 2px;
194
+ -ms-border-radius: 2px;
195
+ border-radius: 2px;
196
+ -webkit-box-shadow: inset 0 0 0 1px #e66f68;
197
+ -moz-box-shadow: inset 0 0 0 1px #e66f68;
198
+ -o-box-shadow: inset 0 0 0 1px #e66f68;
199
+ -ms-box-shadow: inset 0 0 0 1px #e66f68;
200
+ box-shadow: inset 0 0 0 1px #e66f68;
201
+ }
202
+
203
+ .browser-status-text {
204
+ float: left;
205
+ width: 80%;
206
+ }
207
+
208
+ .browser-status-action {
209
+ float: right;
210
+ width: 18%;
211
+ text-align: right;
212
+ margin-right: -10px;
213
+ }
214
+ .browser-status-action a {
215
+ display: block;
216
+ background: #333;
217
+ border: 1px solid #222;
218
+ color: #efefef;
219
+ text-align: center;
220
+ padding: 5px 10px;
221
+ margin: -5px 0;
222
+ text-shadow: 0 -2px 0 #000;
223
+ -webkit-border-radius: 3px;
224
+ -moz-border-radius: 3px;
225
+ -o-border-radius: 3px;
226
+ -ms-border-radius: 3px;
227
+ border-radius: 3px;
228
+ }
229
+ .browser-status-action a:hover {
230
+ background: #3a3a3a;
231
+ border: 1px solid #333;
232
+ color: #fff;
233
+ text-shadow: 0 -2px 0 #111;
234
+ -webkit-box-shadow: inset 0 1px 3px #464646;
235
+ -moz-box-shadow: inset 0 1px 3px #464646;
236
+ -o-box-shadow: inset 0 1px 3px #464646;
237
+ -ms-box-shadow: inset 0 1px 3px #464646;
238
+ box-shadow: inset 0 1px 3px #464646;
239
+ }
240
+ .browser-status-action a:active {
241
+ background: #2a2a2a;
242
+ color: #ddd;
243
+ text-shadow: 0 -2px 0 #000;
244
+ -webkit-box-shadow: inset 0 1px 3px #1a1a1a;
245
+ -moz-box-shadow: inset 0 1px 3px #1a1a1a;
246
+ -o-box-shadow: inset 0 1px 3px #1a1a1a;
247
+ -ms-box-shadow: inset 0 1px 3px #1a1a1a;
248
+ box-shadow: inset 0 1px 3px #1a1a1a;
249
+ }
250
+
251
+
252
+ /* Main */
253
+
254
+ #main {
255
+ padding: 20px 0 50px;
256
+ }
257
+
258
+ #browserlist:before, #browserlist:after {
259
+ content: "\0020";
260
+ display: block;
261
+ height: 0;
262
+ visibility: hidden;
263
+ }
264
+
265
+ #browserlist:after {
266
+ clear: both;
267
+ }
268
+
269
+ #browserlist {
270
+ zoom: 1;
271
+ }
272
+
273
+ #browserlist li {
274
+ width: 192px;
275
+ float: left;
276
+ margin: 0;
277
+ }
278
+
279
+ #browserlist li .icon {
280
+ width: 125px;
281
+ height: 135px;
282
+ margin: 0 auto 20px;
283
+ background: url(<%= asset_path("outdated_browser/browsehappy-sprite.png") %>) no-repeat;
284
+ }
285
+
286
+ #browserlist li#chrome .icon {
287
+ background-position: 0 0;
288
+ }
289
+
290
+ #browserlist li#firefox .icon {
291
+ background-position: -125px 0;
292
+ }
293
+
294
+ #browserlist li#opera .icon {
295
+ background-position: -250px 0;
296
+ }
297
+
298
+ #browserlist li#safari .icon {
299
+ background-position: -375px 0;
300
+ }
301
+
302
+ #browserlist li#ie .icon {
303
+ background-position: -500px 0;
304
+ }
305
+
306
+ #browserlist h2 {
307
+ font: 140%/1 Impact, Helvetica, sans-serif;
308
+ text-align: center;
309
+ text-transform: uppercase;
310
+ color: #DC3228;
311
+ text-shadow: 0 1px 0 #fff;
312
+ background-color: rgba(255,255,255,.3);
313
+ margin: 0 0 10px;
314
+ line-height: 1;
315
+ padding: 8px 0;
316
+ -webkit-border-radius: 3px;
317
+ -moz-border-radius: 3px;
318
+ border-radius: 3px;
319
+ }
320
+
321
+ .wf-leaguegothic1leaguegothic2-n4-active #browserlist h2 {
322
+ font-size: 200%;
323
+ font-family: "league-gothic-1","league-gothic-2";
324
+ }
325
+
326
+ .no-rgba #browserlist h2 {
327
+ background: url(imgs/alphabg.png) repeat;
328
+ }
329
+
330
+ #browserlist p {
331
+ padding: 0 5px;
332
+ text-shadow: 0 1px 0 rgba(255,255,255,.8);
333
+ }
334
+
335
+ #browserlist p.info {
336
+ min-height: 120px;
337
+ }
338
+
339
+ #browserlist p.version {
340
+ margin-bottom: 10px;
341
+ text-align: center;
342
+ }
343
+
344
+ #browserlist p.website {
345
+ background-color: rgba(255,255,255,.3);
346
+ line-height: 1;
347
+ margin: 0;
348
+ padding: 8px 5px;
349
+ text-align: center;
350
+ -webkit-border-radius: 3px;
351
+ -moz-border-radius: 3px;
352
+ border-radius: 3px;
353
+ }
354
+
355
+ .no-rgba #browserlist p.website {
356
+ background: url(imgs/alphabg.png) repeat;
357
+ }
358
+
359
+ #browserlist li a:link, #browserlist li a:visited {
360
+ color: #324B4B;
361
+ padding: 30px 10px 10px;
362
+ display: block;
363
+ overflow: hidden;
364
+ -webkit-border-radius: 3px;
365
+ -moz-border-radius: 3px;
366
+ border-radius: 3px;
367
+ }
368
+
369
+ #browserlist li a:hover {
370
+ background: rgba(255,255,255,.3);
371
+ -webkit-transform: scale(1.05,1.05);
372
+ -moz-transform: scale(1.05,1.05);
373
+ -o-transform: scale(1.05,1.05);
374
+ transform: scale(1.05,1.05);
375
+ }
376
+
377
+ .no-rgba #browserlist li a:hover {
378
+ background: url(imgs/alphabg.png) repeat;
379
+ }
380
+
381
+ #browserlist li a:hover .website {
382
+ background: #4daaa7;
383
+ color: #fff;
384
+ text-shadow: 0 1px 0 #266E67;
385
+ }
386
+
387
+ #browserlist li a:hover .icon {
388
+ -webkit-transform: scale(1.1,1.1);
389
+ -moz-transform: scale(1.1,1.1);
390
+ -o-transform: scale(1.1,1.1);
391
+ transform: scale(1.1,1.1);
392
+ }
393
+
394
+ #browserlist li a, #browserlist li a .icon {
395
+ -webkit-transition: all .1s;
396
+ -moz-transition: all .1s;
397
+ -o-transition: all .1s;
398
+ transition: all .1s;
399
+ }
400
+
401
+ #browserlist li a .website {
402
+ -webkit-transition: all .5s ease-in;
403
+ -moz-transition: all .5s ease-in;
404
+ -o-transition: all .5s ease-in;
405
+ transition: all .5s ease-in;
406
+ }
407
+
408
+ #browserlist li a:hover, #browserlist li a:hover .icon {
409
+ -webkit-transition: all .8s;
410
+ -moz-transition: all .8s;
411
+ -o-transition: all .8s;
412
+ transition: all .8s;
413
+ }
414
+
415
+ #browserlist li a:link, #browserlist li a:link .icon {
416
+ -webkit-transition: all .2s;
417
+ -moz-transition: all .2s;
418
+ -o-transition: all .2s;
419
+ transition: all .2s;
420
+ }
421
+
422
+ #browserlist li a:hover .website {
423
+ -webkit-transition: all .3s ease-out;
424
+ -moz-transition: all .3s ease-out;
425
+ -o-transition: all .3s ease-out;
426
+ transition: all .3s ease-out;
427
+ }
428
+
429
+ #browserlist li a:link .website {
430
+ -webkit-transition: all .1s ease-out;
431
+ -moz-transition: all .1s ease-out;
432
+ -o-transition: all .1s ease-out;
433
+ transition: all .1s ease-out;
434
+ }
435
+
436
+ #browserlist p.likebutton {
437
+ text-align: center;
438
+ margin: 15px 5px 0
439
+ }
440
+
441
+ /* Footer */
442
+
443
+ footer {
444
+ color: #f1f1f1;
445
+ padding: 70px 0;
446
+ overflow: hidden;
447
+ background: url(imgs/bg-footer.png) repeat-x left top;
448
+ }
449
+
450
+ footer .wrap {
451
+ position: relative;
452
+ }
453
+
454
+ footer h2 {
455
+ font: 150% Impact, Helvetica, sans-serif;
456
+ padding-top: 8px;
457
+ margin-bottom: 10px;
458
+ color: #F0D200;
459
+ text-transform: uppercase;
460
+ text-shadow: 0 1px 0 #333;
461
+ }
462
+
463
+ .wf-leaguegothic1leaguegothic2-n4-active footer h2 {
464
+ font-size: 200%;
465
+ padding-top: 5px;
466
+ font-family: "league-gothic-1","league-gothic-2";
467
+ }
468
+
469
+ #about {
470
+ width: 600px;
471
+ float: left;
472
+ margin-left: 15px;
473
+ }
474
+
475
+ #share {
476
+ width: 300px;
477
+ float: right;
478
+ margin-right: 15px;
479
+ position: relative;
480
+ }
481
+
482
+ #share h2 {
483
+ margin-right: 84px;
484
+ }
485
+
486
+ #share nav {
487
+ width: 84px;
488
+ height: 32px;
489
+ overflow: hidden;
490
+ position: absolute;
491
+ top: 3px;
492
+ right: 0;
493
+ }
494
+
495
+ #share nav li {
496
+ width: 32px;
497
+ height: 32px;
498
+ float: left;
499
+ margin-left: 9px;
500
+ }
501
+
502
+ #share nav li a {
503
+ width: 32px;
504
+ height: 32px;
505
+ display: block;
506
+ text-indent: -9999px;
507
+ background: url(<%= asset_path("outdated_browser/browsehappy-sprite.png") %>) no-repeat;
508
+ -moz-opacity: 0.4;
509
+ -khtml-opacity: 0.4;
510
+ opacity: 0.4;
511
+ -webkit-transition: all .5s;
512
+ -moz-transition: all .5s;
513
+ -o-transition: all .5s;
514
+ transition: all .5s;
515
+ }
516
+
517
+ #share nav li.twitter a {
518
+ background-position: -300px -135px;
519
+ }
520
+
521
+ #share nav li.facebook a {
522
+ background-position: -332px -135px;
523
+ }
524
+
525
+ #share nav li a:hover {
526
+ -moz-opacity: 1;
527
+ -khtml-opacity: 1;
528
+ opacity: 1;
529
+ }
530
+
531
+ #byline {
532
+ position: absolute;
533
+ bottom: 0;
534
+ right: 15px;
535
+ width: 300px;
536
+ height: 20px;
537
+ }
538
+
539
+ #byline a {
540
+ width: 300px;
541
+ height: 20px;
542
+ display: block;
543
+ background: url(<%= asset_path("outdated_browser/browsehappy-sprite.png") %>) no-repeat 0 -135px;
544
+ text-indent: -9999px;
545
+ -moz-opacity: 0.6;
546
+ -khtml-opacity: 0.6;
547
+ opacity: 0.6;
548
+ -webkit-transition: all .5s;
549
+ -moz-transition: all .5s;
550
+ -o-transition: all .5s;
551
+ transition: all .5s;
552
+ }
553
+
554
+ #byline a:hover {
555
+ -moz-opacity: 1;
556
+ -khtml-opacity: 1;
557
+ opacity: 1;
558
+ }