alertify-rails 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,95 @@
1
+ .alertify-show,
2
+ .alertify-log {
3
+ -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1); /* older webkit */
4
+ -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
5
+ -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
6
+ -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
7
+ -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
8
+ transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */
9
+ }
10
+ .alertify-hide {
11
+ -webkit-transition: all 250ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
12
+ -webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
13
+ -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
14
+ -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
15
+ -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
16
+ transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
17
+ }
18
+ .alertify-cover {
19
+ position: fixed; z-index: 99999;
20
+ top: 0; right: 0; bottom: 0; left: 0;
21
+ }
22
+ .alertify {
23
+ position: fixed; z-index: 99999;
24
+ top: 50px; left: 50%;
25
+ width: 550px;
26
+ margin-left: -275px;
27
+ }
28
+ .alertify-hidden {
29
+ top: -50px;
30
+ visibility: hidden;
31
+ }
32
+ .alertify-logs {
33
+ position: fixed;
34
+ z-index: 5000;
35
+ bottom: 10px;
36
+ right: 10px;
37
+ width: 300px;
38
+ }
39
+ .alertify-log {
40
+ display: block;
41
+ margin-top: 10px;
42
+ position: relative;
43
+ right: -300px;
44
+ }
45
+ .alertify-log-show {
46
+ right: 0;
47
+ }
48
+ .alertify-dialog {
49
+ padding: 25px;
50
+ }
51
+ .alertify-resetFocus {
52
+ border: 0;
53
+ clip: rect(0 0 0 0);
54
+ height: 1px;
55
+ margin: -1px;
56
+ overflow: hidden;
57
+ padding: 0;
58
+ position: absolute;
59
+ width: 1px;
60
+ }
61
+ .alertify-inner {
62
+ text-align: center;
63
+ }
64
+ .alertify-text {
65
+ margin-bottom: 15px;
66
+ width: 100%;
67
+ -webkit-box-sizing: border-box;
68
+ -moz-box-sizing: border-box;
69
+ box-sizing: border-box;
70
+ font-size: 100%;
71
+ }
72
+ .alertify-buttons {
73
+ }
74
+ .alertify-button {
75
+ /* line-height and font-size for input button */
76
+ line-height: 1.5;
77
+ font-size: 100%;
78
+ display: inline-block;
79
+ cursor: pointer;
80
+ margin-left: 5px;
81
+ }
82
+
83
+ @media only screen and (max-width: 680px) {
84
+ .alertify,
85
+ .alertify-logs {
86
+ width: 90%;
87
+ -webkit-box-sizing: border-box;
88
+ -moz-box-sizing: border-box;
89
+ box-sizing: border-box;
90
+ }
91
+ .alertify {
92
+ left: 5%;
93
+ margin: 0;
94
+ }
95
+ }
@@ -0,0 +1,5 @@
1
+ /*
2
+ *= require alertify.core
3
+ *= require alertify.default
4
+ */
5
+
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Default Look and Feel
3
+ */
4
+ .alertify,
5
+ .alertify-log {
6
+ font-family: sans-serif;
7
+ }
8
+ .alertify {
9
+ background: #FFF;
10
+ border: 10px solid #333; /* browsers that don't support rgba */
11
+ border: 10px solid rgba(0,0,0,.7);
12
+ border-radius: 8px;
13
+ box-shadow: 0 3px 3px rgba(0,0,0,.3);
14
+ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
15
+ -moz-background-clip: padding; /* Firefox 3.6 */
16
+ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
17
+ }
18
+ .alertify-text {
19
+ border: 1px solid #CCC;
20
+ padding: 10px;
21
+ border-radius: 4px;
22
+ }
23
+ .alertify-button {
24
+ border-radius: 4px;
25
+ color: #FFF;
26
+ font-weight: bold;
27
+ padding: 6px 15px;
28
+ text-decoration: none;
29
+ text-shadow: 1px 1px 0 rgba(0,0,0,.5);
30
+ box-shadow: inset 0 1px 0 0 rgba(255,255,255,.5);
31
+ background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
32
+ background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
33
+ background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
34
+ background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
35
+ background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
36
+ }
37
+ .alertify-button:hover,
38
+ .alertify-button:focus {
39
+ outline: none;
40
+ box-shadow: 0 0 15px #2B72D5;
41
+ background-image: -webkit-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
42
+ background-image: -moz-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
43
+ background-image: -ms-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
44
+ background-image: -o-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
45
+ background-image: linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
46
+ }
47
+ .alertify-button:active {
48
+ position: relative;
49
+ top: 1px;
50
+ }
51
+ .alertify-button-cancel {
52
+ background-color: #FE1A00;
53
+ border: 1px solid #D83526;
54
+ }
55
+ .alertify-button-ok {
56
+ background-color: #5CB811;
57
+ border: 1px solid #3B7808;
58
+ }
59
+ .alertify-log {
60
+ background: #1F1F1F;
61
+ background: rgba(0,0,0,.9);
62
+ padding: 15px;
63
+ border-radius: 4px;
64
+ color: #FFF;
65
+ text-shadow: -1px -1px 0 rgba(0,0,0,.5);
66
+ }
67
+ .alertify-log-error {
68
+ background: #FE1A00;
69
+ background: rgba(254,26,0,.9);
70
+ }
71
+ .alertify-log-success {
72
+ background: #5CB811;
73
+ background: rgba(92,184,17,.9);
74
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alertify-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-29 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Use Alertify.js with Rails 3
15
15
  email:
@@ -24,11 +24,14 @@ files:
24
24
  - Rakefile
25
25
  - alertify-rails.gemspec
26
26
  - lib/alertify-rails.rb
27
- - lib/alertify/engine.rb
28
- - lib/alertify/railtie.rb
29
- - lib/alertify/version.rb
27
+ - lib/alertify/rails.rb
28
+ - lib/alertify/rails/engine.rb
29
+ - lib/alertify/rails/railtie.rb
30
+ - lib/alertify/rails/version.rb
30
31
  - vendor/assets/javascripts/alertify.js
31
- - vendor/assets/stylesheets/alertify.css
32
+ - vendor/assets/stylesheets/alertify.core.css.scss
33
+ - vendor/assets/stylesheets/alertify.css.scss
34
+ - vendor/assets/stylesheets/alertify.default.css.scss
32
35
  homepage: ''
33
36
  licenses: []
34
37
  post_install_message:
@@ -52,5 +55,6 @@ rubyforge_project:
52
55
  rubygems_version: 1.8.24
53
56
  signing_key:
54
57
  specification_version: 3
55
- summary: This gem provides the Alertify.js deiver for Rails 3 applications
58
+ summary: This gem provides the Alertify.js driver for Rails 3 applications
56
59
  test_files: []
60
+ has_rdoc:
@@ -1,5 +0,0 @@
1
- module Alertify
2
- class Engine < ::Rails::Engine
3
- end
4
- end
5
-
@@ -1,12 +0,0 @@
1
- module Alertify
2
-
3
- class Railtie < ::Rails::Railtie
4
- config.before_configuration do
5
- if config.action_view.javascript_expansions
6
- config.action_view.javascript_expansions[:defaults] << 'alertify'
7
- end
8
- end
9
- end
10
-
11
- end
12
-
@@ -1,7 +0,0 @@
1
- module Alertify
2
- module Rails
3
- VERSION = "0.0.1"
4
-
5
- end
6
- end
7
-
@@ -1,155 +0,0 @@
1
- .alertify-show,
2
- .alertify-log {
3
- -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1); /* older webkit */
4
- -webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
5
- -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
6
- -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
7
- -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
8
- transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */
9
- }
10
- .alertify-hide {
11
- -webkit-transition: all 250ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
12
- -webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
13
- -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
14
- -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
15
- -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
16
- transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
17
- }
18
- .alertify-cover {
19
- position: fixed; z-index: 99999;
20
- top: 0; right: 0; bottom: 0; left: 0;
21
- }
22
- .alertify {
23
- position: fixed; z-index: 99999;
24
- top: 50px; left: 50%;
25
- width: 550px;
26
- margin-left: -275px;
27
- }
28
- .alertify-hidden {
29
- top: -50px;
30
- visibility: hidden;
31
- }
32
- .alertify-logs {
33
- position: fixed;
34
- z-index: 5000;
35
- bottom: 10px;
36
- right: 10px;
37
- width: 300px;
38
- }
39
- .alertify-log {
40
- display: block;
41
- margin-top: 10px;
42
- position: relative;
43
- right: -300px;
44
- }
45
- .alertify-log-show {
46
- right: 0;
47
- }
48
- .alertify-dialog {
49
- padding: 25px;
50
- }
51
- .alertify-inner {
52
- text-align: center;
53
- }
54
- .alertify-text {
55
- margin-bottom: 15px;
56
- width: 100%;
57
- -webkit-box-sizing: border-box;
58
- -moz-box-sizing: border-box;
59
- box-sizing: border-box;
60
- font-size: 100%;
61
- }
62
- .alertify-buttons {
63
- }
64
- .alertify-button {
65
- display: inline-block;
66
- cursor: pointer;
67
- margin-left: 5px;
68
- }
69
-
70
- @media only screen and (max-width: 680px) {
71
- .alertify,
72
- .alertify-logs {
73
- width: 90%;
74
- -webkit-box-sizing: border-box;
75
- -moz-box-sizing: border-box;
76
- box-sizing: border-box;
77
- }
78
- .alertify {
79
- left: 5%;
80
- margin: 0;
81
- }
82
- }
83
-
84
- /**
85
- * Default Look and Feel
86
- */
87
- .alertify,
88
- .alertify-log {
89
- font-family: sans-serif;
90
- }
91
- .alertify {
92
- background: #FFF;
93
- border: 10px solid #333; /* browsers that don't support rgba */
94
- border: 10px solid rgba(0,0,0,.7);
95
- border-radius: 8px;
96
- box-shadow: 0 3px 3px rgba(0,0,0,.3);
97
- -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
98
- -moz-background-clip: padding; /* Firefox 3.6 */
99
- background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
100
- }
101
- .alertify-text {
102
- border: 1px solid #CCC;
103
- padding: 10px;
104
- border-radius: 4px;
105
- }
106
- .alertify-button {
107
- border-radius: 4px;
108
- color: #FFF;
109
- font-weight: bold;
110
- padding: 6px 15px;
111
- text-decoration: none;
112
- text-shadow: 1px 1px 0 rgba(0,0,0,.5);
113
- box-shadow: inset 0 1px 0 0 rgba(255,255,255,.5);
114
- background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
115
- background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
116
- background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
117
- background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
118
- background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
119
- }
120
- .alertify-button:hover,
121
- .alertify-button:focus {
122
- background-image: -webkit-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
123
- background-image: -moz-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
124
- background-image: -ms-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
125
- background-image: -o-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
126
- background-image: linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
127
- }
128
- .alertify-button:active {
129
- position: relative;
130
- top: 1px;
131
- }
132
- .alertify-button-cancel {
133
- background-color: #FE1A00;
134
- border: 1px solid #D83526;
135
- }
136
- .alertify-button-ok {
137
- background-color: #5CB811;
138
- border: 1px solid #3b7808;
139
- }
140
- .alertify-log {
141
- background: #1F1F1F;
142
- background: rgba(0,0,0,.9);
143
- padding: 15px;
144
- border-radius: 4px;
145
- color: #FFF;
146
- text-shadow: -1px -1px 0 rgba(0,0,0,.5);
147
- }
148
- .alertify-log-error {
149
- background: #FE1A00;
150
- background: rgba(254,26,0,.9);
151
- }
152
- .alertify-log-success {
153
- background: #5CB811;
154
- background: rgba(92,184,17,.9);
155
- }