adminpanel 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/.rspec +2 -2
  2. data/.ruby-version +1 -0
  3. data/.travis.yml +8 -8
  4. data/Gemfile +26 -24
  5. data/README.md +57 -57
  6. data/adminpanel.gemspec +41 -39
  7. data/app/assets/fonts/fontawesome-webfont.svg +254 -254
  8. data/app/assets/javascripts/adminpanel/bootstrap-datepicker.js +1159 -1159
  9. data/app/assets/javascripts/adminpanel/bootstrap-timepicker.js +803 -803
  10. data/app/assets/javascripts/adminpanel/bootstrap.js +2170 -2170
  11. data/app/assets/javascripts/adminpanel/{products.js → images_form.js} +13 -13
  12. data/app/assets/javascripts/adminpanel/imagesloaded.js +12 -12
  13. data/app/assets/javascripts/adminpanel/jquery.dataTables.min.js +155 -155
  14. data/app/assets/javascripts/adminpanel/jquery.facybox.js +395 -395
  15. data/app/assets/javascripts/adminpanel/jquery.masonry.min.js +9 -9
  16. data/app/assets/javascripts/adminpanel/jquery.slimscroll.min.js +13 -13
  17. data/app/assets/javascripts/adminpanel/medium-editor.js +702 -702
  18. data/app/assets/javascripts/adminpanel/realm.js +87 -87
  19. data/app/assets/javascripts/adminpanel/tables.js +126 -126
  20. data/app/assets/javascripts/application-admin.js +15 -15
  21. data/app/assets/stylesheets/adminpanel/_clearfix.css.scss +7 -7
  22. data/app/assets/stylesheets/adminpanel/alertify.css +241 -241
  23. data/app/assets/stylesheets/adminpanel/bootstrap.css +6103 -6103
  24. data/app/assets/stylesheets/adminpanel/colorpicker.css +6 -6
  25. data/app/assets/stylesheets/adminpanel/datepicker.css +9 -9
  26. data/app/assets/stylesheets/adminpanel/elfinder.min.css +59 -59
  27. data/app/assets/stylesheets/adminpanel/facybox.css +146 -146
  28. data/app/assets/stylesheets/adminpanel/font-awesome.min.css +33 -33
  29. data/app/assets/stylesheets/adminpanel/fullcalendar.css +618 -618
  30. data/app/assets/stylesheets/adminpanel/fullcalendar.print.css +61 -61
  31. data/app/assets/stylesheets/adminpanel/select2.css +524 -524
  32. data/app/assets/stylesheets/adminpanel/theme.css +1571 -1571
  33. data/app/assets/stylesheets/adminpanel/timepicker.css +82 -82
  34. data/app/assets/stylesheets/application-admin.css +13 -13
  35. data/app/controllers/adminpanel/application_controller.rb +32 -17
  36. data/app/controllers/adminpanel/galleries_controller.rb +80 -80
  37. data/app/controllers/adminpanel/sections_controller.rb +45 -45
  38. data/app/controllers/adminpanel/sessions_controller.rb +26 -26
  39. data/app/controllers/adminpanel/users_controller.rb +84 -84
  40. data/app/helpers/adminpanel/application_helper.rb +41 -51
  41. data/app/helpers/adminpanel/breadcrumbs_helper.rb +16 -0
  42. data/app/helpers/adminpanel/custom_form_builder.rb +248 -0
  43. data/app/helpers/adminpanel/images_helper.rb +9 -9
  44. data/app/helpers/adminpanel/rest_actions_helper.rb +47 -0
  45. data/app/helpers/adminpanel/router_helper.rb +33 -0
  46. data/app/helpers/adminpanel/sessions_helper.rb +25 -25
  47. data/app/models/adminpanel/gallery.rb +60 -60
  48. data/app/models/adminpanel/image.rb +14 -14
  49. data/app/models/adminpanel/section.rb +22 -22
  50. data/app/models/adminpanel/user.rb +35 -35
  51. data/app/uploaders/adminpanel/gallery_uploader.rb +55 -55
  52. data/app/uploaders/adminpanel/image_uploader.rb +57 -57
  53. data/app/views/adminpanel/galleries/_galleries_table.html.erb +14 -14
  54. data/app/views/adminpanel/galleries/create.html.erb +2 -2
  55. data/app/views/adminpanel/galleries/delete.html.erb +2 -2
  56. data/app/views/adminpanel/galleries/edit.html.erb +25 -25
  57. data/app/views/adminpanel/galleries/index.html.erb +51 -51
  58. data/app/views/adminpanel/galleries/new.html.erb +17 -17
  59. data/app/views/adminpanel/galleries/show.html.erb +17 -17
  60. data/app/views/adminpanel/galleries/update.html.erb +2 -2
  61. data/app/views/adminpanel/sections/_image_fields.html.erb +23 -23
  62. data/app/views/adminpanel/sections/_sections_table.html.erb +16 -16
  63. data/app/views/adminpanel/sections/create.html.erb +2 -2
  64. data/app/views/adminpanel/sections/destroy.html.erb +2 -2
  65. data/app/views/adminpanel/sections/edit.html.erb +41 -41
  66. data/app/views/adminpanel/sections/index.html.erb +44 -44
  67. data/app/views/adminpanel/sections/new.html.erb +26 -26
  68. data/app/views/adminpanel/sections/show.html.erb +30 -30
  69. data/app/views/adminpanel/sections/update.html.erb +2 -2
  70. data/app/views/adminpanel/sessions/new.html.erb +25 -25
  71. data/app/views/adminpanel/users/_user_form.html.erb +20 -20
  72. data/app/views/adminpanel/users/edit.html.erb +5 -5
  73. data/app/views/adminpanel/users/index.html.erb +49 -49
  74. data/app/views/adminpanel/users/new.html.erb +5 -5
  75. data/app/views/adminpanel/users/show.html.erb +20 -20
  76. data/app/views/layouts/_shim.html.erb +3 -3
  77. data/app/views/layouts/_side_menu.html.erb +49 -43
  78. data/app/views/layouts/_top_bar.html.erb +43 -43
  79. data/app/views/layouts/admin-login.html.erb +28 -28
  80. data/app/views/layouts/admin.html.erb +41 -39
  81. data/app/views/shared/_breadcrumb.html.erb +6 -6
  82. data/app/views/shared/_error_messages.html.erb +16 -16
  83. data/app/views/shared/_form_fields.html.erb +25 -0
  84. data/app/views/{adminpanel/products → shared}/_image_fields.html.erb +23 -23
  85. data/app/views/shared/_init_editor.html.erb +24 -0
  86. data/app/views/shared/edit.html.erb +28 -0
  87. data/app/views/shared/index.html.erb +94 -0
  88. data/app/views/shared/new.html.erb +28 -0
  89. data/app/views/shared/show.html.erb +63 -0
  90. data/config/locales/en.yml +5 -5
  91. data/config/locales/es.yml +127 -129
  92. data/config/routes.rb +24 -16
  93. data/lib/adminpanel.rb +9 -7
  94. data/lib/adminpanel/active_record_extension.rb +38 -0
  95. data/lib/adminpanel/engine.rb +5 -5
  96. data/lib/adminpanel/version.rb +3 -3
  97. data/lib/generators/adminpanel/initialize/initialize_generator.rb +17 -0
  98. data/lib/generators/adminpanel/{install/templates/migrations → initialize/templates}/create_adminpanel_tables.rb +45 -64
  99. data/lib/generators/adminpanel/resource/resource_generator.rb +105 -0
  100. data/lib/generators/adminpanel/resource/templates/controller.rb +4 -0
  101. data/lib/generators/adminpanel/resource/templates/migration.rb +9 -0
  102. data/lib/generators/adminpanel/resource/templates/resource.rb +19 -0
  103. data/spec/dummy/.gitignore +17 -17
  104. data/spec/dummy/README.rdoc +261 -261
  105. data/spec/dummy/Rakefile +7 -7
  106. data/{app/views/adminpanel/categories/show.html.erb → spec/dummy/app/adminpanel/products.rb} +0 -0
  107. data/spec/dummy/app/assets/javascripts/application.js +13 -13
  108. data/spec/dummy/app/assets/stylesheets/application.css +13 -13
  109. data/spec/dummy/app/controllers/adminpanel/.gitkeep +0 -0
  110. data/spec/dummy/app/controllers/application_controller.rb +3 -11
  111. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  112. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  113. data/spec/dummy/config.ru +4 -4
  114. data/spec/dummy/config/application.rb +62 -62
  115. data/spec/dummy/config/boot.rb +9 -9
  116. data/spec/dummy/config/carrierwve.rb +5 -5
  117. data/spec/dummy/config/database.yml +24 -24
  118. data/spec/dummy/config/environment.rb +5 -5
  119. data/spec/dummy/config/environments/development.rb +41 -41
  120. data/spec/dummy/config/environments/production.rb +72 -72
  121. data/spec/dummy/config/environments/test.rb +41 -41
  122. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  123. data/spec/dummy/config/initializers/inflections.rb +15 -15
  124. data/spec/dummy/config/initializers/mime_types.rb +5 -5
  125. data/spec/dummy/config/initializers/secret_token.rb +8 -8
  126. data/spec/dummy/config/initializers/session_store.rb +8 -8
  127. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  128. data/spec/dummy/config/locales/en.yml +5 -5
  129. data/spec/dummy/config/routes.rb +4 -4
  130. data/spec/dummy/db/schema.rb +15 -15
  131. data/spec/dummy/public/404.html +26 -26
  132. data/spec/dummy/public/422.html +26 -26
  133. data/spec/dummy/public/500.html +25 -25
  134. data/spec/dummy/public/uploads/gallery/file/1/hipster.jpg +0 -0
  135. data/spec/dummy/public/uploads/gallery/file/1/thumb_hipster.jpg +0 -0
  136. data/spec/dummy/script/rails +6 -6
  137. data/spec/features/authentication_pages_spec.rb +43 -43
  138. data/spec/features/galleries_pages_spec.rb +124 -124
  139. data/spec/features/section_pages_spec.rb +37 -37
  140. data/spec/features/user_pages_spec.rb +48 -48
  141. data/spec/generators/initialize_spec.rb +9 -0
  142. data/spec/generators/resource_spec.rb +122 -0
  143. data/spec/models/gallery_spec.rb +21 -21
  144. data/spec/models/section_spec.rb +66 -66
  145. data/spec/models/user_spec.rb +105 -105
  146. data/spec/spec_helper.rb +32 -31
  147. data/spec/support/define_factory_models.rb +25 -36
  148. data/spec/support/helper_methods.rb +26 -26
  149. data/spec/support/submit_forms_without_button.rb +16 -16
  150. data/spec/support/test_database.rb +45 -58
  151. data/spec/uploaders/gallery_uploader_spec.rb +36 -30
  152. data/spec/uploaders/image_uploader_spec.rb +30 -29
  153. metadata +208 -64
  154. checksums.yaml +0 -7
  155. data/app/assets/javascripts/adminpanel/init_editor.js +0 -28
  156. data/app/controllers/adminpanel/categories_controller.rb +0 -41
  157. data/app/controllers/adminpanel/products_controller.rb +0 -88
  158. data/app/helpers/custom_form_builder.rb +0 -219
  159. data/app/models/adminpanel/category.rb +0 -7
  160. data/app/models/adminpanel/product.rb +0 -24
  161. data/app/views/adminpanel/categories/edit.html.erb +0 -18
  162. data/app/views/adminpanel/categories/index.html.erb +0 -55
  163. data/app/views/adminpanel/categories/new.html.erb +0 -18
  164. data/app/views/adminpanel/products/.DS_Store +0 -0
  165. data/app/views/adminpanel/products/_product_form.html.erb +0 -31
  166. data/app/views/adminpanel/products/edit.html.erb +0 -10
  167. data/app/views/adminpanel/products/index.html.erb +0 -51
  168. data/app/views/adminpanel/products/new.html.erb +0 -10
  169. data/app/views/adminpanel/products/show.html.erb +0 -61
  170. data/config/database.yml +0 -24
  171. data/lib/generators/adminpanel/install/install_generator.rb +0 -12
  172. data/spec/features/categories_pages_spec.rb +0 -44
  173. data/spec/features/product_pages_spec.rb +0 -64
  174. data/spec/models/category_spec.rb +0 -58
  175. data/spec/models/product_spec.rb +0 -51
@@ -1,8 +1,8 @@
1
- .clearfix:after {
2
- display: block;
3
- visibility: hidden;
4
- clear: both;
5
- height: 0;
6
- content: " ";
7
- font-size: 0;
1
+ .clearfix:after {
2
+ display: block;
3
+ visibility: hidden;
4
+ clear: both;
5
+ height: 0;
6
+ content: " ";
7
+ font-size: 0;
8
8
  }
@@ -1,242 +1,242 @@
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-log-hide {
19
- -webkit-transition: all 500ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
20
- -webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
21
- -moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
22
- -ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
23
- -o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
24
- transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
25
- }
26
- .alertify-cover {
27
- position: fixed; z-index: 99999;
28
- top: 0; right: 0; bottom: 0; left: 0;
29
- }
30
- .alertify-cover-hidden {
31
- display: none;
32
- }
33
- .alertify {
34
- position: fixed; z-index: 99999;
35
- top: 50px; left: 50%;
36
- width: 550px;
37
- margin-left: -275px;
38
- opacity: 1;
39
- }
40
- .alertify-hidden {
41
- -webkit-transform: translate(0,-150px);
42
- -moz-transform: translate(0,-150px);
43
- -ms-transform: translate(0,-150px);
44
- -o-transform: translate(0,-150px);
45
- transform: translate(0,-150px);
46
- opacity: 0;
47
- display: none\9; /* IE8 & IE7 */
48
- }
49
- .alertify-logs {
50
- position: fixed;
51
- z-index: 5000;
52
- bottom: 10px;
53
- right: 10px;
54
- width: 300px;
55
- }
56
- .alertify-log {
57
- display: block;
58
- margin-top: 10px;
59
- position: relative;
60
- right: -300px;
61
- opacity: 0;
62
- }
63
- .alertify-log-show {
64
- right: 0;
65
- opacity: 1;
66
- }
67
- .alertify-log-hide {
68
- -webkit-transform: translate(300px, 0);
69
- -moz-transform: translate(300px, 0);
70
- -ms-transform: translate(300px, 0);
71
- -o-transform: translate(300px, 0);
72
- transform: translate(300px, 0);
73
- opacity: 0;
74
- }
75
- .alertify-dialog {
76
- padding: 25px;
77
- }
78
- .alertify-resetFocus {
79
- border: 0;
80
- clip: rect(0 0 0 0);
81
- height: 1px;
82
- margin: -1px;
83
- overflow: hidden;
84
- padding: 0;
85
- position: absolute;
86
- width: 1px;
87
- }
88
- .alertify-inner {
89
- text-align: center;
90
- }
91
- .alertify-text {
92
- margin-bottom: 15px;
93
- width: 100%;
94
- -webkit-box-sizing: border-box;
95
- -moz-box-sizing: border-box;
96
- box-sizing: border-box;
97
- font-size: 100%;
98
- }
99
- .alertify-buttons {
100
- }
101
- .alertify-button {
102
- /* line-height and font-size for input button */
103
- line-height: 1.5;
104
- font-size: 100%;
105
- display: inline-block;
106
- cursor: pointer;
107
- margin-left: 5px;
108
- }
109
-
110
- @media only screen and (max-width: 680px) {
111
- .alertify,
112
- .alertify-logs {
113
- width: 90%;
114
- -webkit-box-sizing: border-box;
115
- -moz-box-sizing: border-box;
116
- box-sizing: border-box;
117
- }
118
- .alertify {
119
- left: 5%;
120
- margin: 0;
121
- }
122
- }
123
-
124
-
125
- /**
126
- * Twitter Bootstrap Look and Feel
127
- * Based on http://twitter.github.com/bootstrap/
128
- */
129
- .alertify,
130
- .alertify-log {
131
- font-family: sans-serif;
132
- }
133
- .alertify {
134
- background: #FFF;
135
- border: 1px solid #8E8E8E; /* browsers that don't support rgba */
136
- border: 1px solid rgba(0,0,0,.3);
137
- border-radius: 6px;
138
- box-shadow: 0 3px 7px rgba(0,0,0,.3);
139
- -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
140
- -moz-background-clip: padding; /* Firefox 3.6 */
141
- background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
142
- }
143
- .alertify-dialog {
144
- padding: 0;
145
- }
146
- .alertify-inner {
147
- text-align: left;
148
- }
149
- .alertify-message {
150
- padding: 15px;
151
- margin: 0;
152
- }
153
- .alertify-text-wrapper {
154
- padding: 0 15px;
155
- }
156
- .alertify-text {
157
- color: #555;
158
- border-radius: 4px;
159
- padding: 8px;
160
- background-color: #FFF;
161
- border: 1px solid #CCC;
162
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
163
- }
164
- .alertify-text:focus {
165
- border-color: rgba(82,168,236,.8);
166
- outline: 0;
167
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
168
- }
169
-
170
- .alertify-buttons {
171
- padding: 14px 15px 15px;
172
- background: #F5F5F5;
173
- border-top: 1px solid #DDD;
174
- border-radius: 0 0 6px 6px;
175
- box-shadow: inset 0 1px 0 #FFF;
176
- text-align: right;
177
- }
178
- .alertify-button {
179
- margin-left: 10px;
180
- border-radius: 4px;
181
- font-weight: normal;
182
- padding: 4px 12px;
183
- text-decoration: none;
184
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
185
- background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
186
- background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
187
- background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
188
- background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
189
- background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
190
- }
191
- .alertify-button:focus {
192
- outline: none;
193
- box-shadow: 0 0 5px #2B72D5;
194
- }
195
- .alertify-button:active {
196
- position: relative;
197
- box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
198
- }
199
- .alertify-button-cancel {
200
- text-shadow: 0 -1px 0 rgba(255,255,255,.75);
201
- background-color: #E6E6E6;
202
- border: 1px solid #BBB;
203
- color: #333;
204
- background-image: -webkit-linear-gradient(top, #FFF, #E6E6E6);
205
- background-image: -moz-linear-gradient(top, #FFF, #E6E6E6);
206
- background-image: -ms-linear-gradient(top, #FFF, #E6E6E6);
207
- background-image: -o-linear-gradient(top, #FFF, #E6E6E6);
208
- background-image: linear-gradient(top, #FFF, #E6E6E6);
209
- }
210
- .alertify-button-cancel:hover {
211
- background: #E6E6E6;
212
- }
213
- .alertify-button-ok {
214
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
215
- background-color: #04C;
216
- border: 1px solid #04C;
217
- border-color: #04C #04C #002A80;
218
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
219
- color: #FFF;
220
- }
221
- .alertify-button-ok:hover {
222
- background: #04C;
223
- }
224
-
225
- .alertify-log {
226
- background: #D9EDF7;
227
- padding: 8px 14px;
228
- border-radius: 4px;
229
- color: #3A8ABF;
230
- text-shadow: 0 1px 0 rgba(255,255,255,.5);
231
- border: 1px solid #BCE8F1;
232
- }
233
- .alertify-log-error {
234
- color: #B94A48;
235
- background: #F2DEDE;
236
- border: 1px solid #EED3D7;
237
- }
238
- .alertify-log-success {
239
- color: #468847;
240
- background: #DFF0D8;
241
- border: 1px solid #D6E9C6;
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-log-hide {
19
+ -webkit-transition: all 500ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
20
+ -webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
21
+ -moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
22
+ -ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
23
+ -o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
24
+ transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
25
+ }
26
+ .alertify-cover {
27
+ position: fixed; z-index: 99999;
28
+ top: 0; right: 0; bottom: 0; left: 0;
29
+ }
30
+ .alertify-cover-hidden {
31
+ display: none;
32
+ }
33
+ .alertify {
34
+ position: fixed; z-index: 99999;
35
+ top: 50px; left: 50%;
36
+ width: 550px;
37
+ margin-left: -275px;
38
+ opacity: 1;
39
+ }
40
+ .alertify-hidden {
41
+ -webkit-transform: translate(0,-150px);
42
+ -moz-transform: translate(0,-150px);
43
+ -ms-transform: translate(0,-150px);
44
+ -o-transform: translate(0,-150px);
45
+ transform: translate(0,-150px);
46
+ opacity: 0;
47
+ display: none\9; /* IE8 & IE7 */
48
+ }
49
+ .alertify-logs {
50
+ position: fixed;
51
+ z-index: 5000;
52
+ bottom: 10px;
53
+ right: 10px;
54
+ width: 300px;
55
+ }
56
+ .alertify-log {
57
+ display: block;
58
+ margin-top: 10px;
59
+ position: relative;
60
+ right: -300px;
61
+ opacity: 0;
62
+ }
63
+ .alertify-log-show {
64
+ right: 0;
65
+ opacity: 1;
66
+ }
67
+ .alertify-log-hide {
68
+ -webkit-transform: translate(300px, 0);
69
+ -moz-transform: translate(300px, 0);
70
+ -ms-transform: translate(300px, 0);
71
+ -o-transform: translate(300px, 0);
72
+ transform: translate(300px, 0);
73
+ opacity: 0;
74
+ }
75
+ .alertify-dialog {
76
+ padding: 25px;
77
+ }
78
+ .alertify-resetFocus {
79
+ border: 0;
80
+ clip: rect(0 0 0 0);
81
+ height: 1px;
82
+ margin: -1px;
83
+ overflow: hidden;
84
+ padding: 0;
85
+ position: absolute;
86
+ width: 1px;
87
+ }
88
+ .alertify-inner {
89
+ text-align: center;
90
+ }
91
+ .alertify-text {
92
+ margin-bottom: 15px;
93
+ width: 100%;
94
+ -webkit-box-sizing: border-box;
95
+ -moz-box-sizing: border-box;
96
+ box-sizing: border-box;
97
+ font-size: 100%;
98
+ }
99
+ .alertify-buttons {
100
+ }
101
+ .alertify-button {
102
+ /* line-height and font-size for input button */
103
+ line-height: 1.5;
104
+ font-size: 100%;
105
+ display: inline-block;
106
+ cursor: pointer;
107
+ margin-left: 5px;
108
+ }
109
+
110
+ @media only screen and (max-width: 680px) {
111
+ .alertify,
112
+ .alertify-logs {
113
+ width: 90%;
114
+ -webkit-box-sizing: border-box;
115
+ -moz-box-sizing: border-box;
116
+ box-sizing: border-box;
117
+ }
118
+ .alertify {
119
+ left: 5%;
120
+ margin: 0;
121
+ }
122
+ }
123
+
124
+
125
+ /**
126
+ * Twitter Bootstrap Look and Feel
127
+ * Based on http://twitter.github.com/bootstrap/
128
+ */
129
+ .alertify,
130
+ .alertify-log {
131
+ font-family: sans-serif;
132
+ }
133
+ .alertify {
134
+ background: #FFF;
135
+ border: 1px solid #8E8E8E; /* browsers that don't support rgba */
136
+ border: 1px solid rgba(0,0,0,.3);
137
+ border-radius: 6px;
138
+ box-shadow: 0 3px 7px rgba(0,0,0,.3);
139
+ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
140
+ -moz-background-clip: padding; /* Firefox 3.6 */
141
+ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
142
+ }
143
+ .alertify-dialog {
144
+ padding: 0;
145
+ }
146
+ .alertify-inner {
147
+ text-align: left;
148
+ }
149
+ .alertify-message {
150
+ padding: 15px;
151
+ margin: 0;
152
+ }
153
+ .alertify-text-wrapper {
154
+ padding: 0 15px;
155
+ }
156
+ .alertify-text {
157
+ color: #555;
158
+ border-radius: 4px;
159
+ padding: 8px;
160
+ background-color: #FFF;
161
+ border: 1px solid #CCC;
162
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
163
+ }
164
+ .alertify-text:focus {
165
+ border-color: rgba(82,168,236,.8);
166
+ outline: 0;
167
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
168
+ }
169
+
170
+ .alertify-buttons {
171
+ padding: 14px 15px 15px;
172
+ background: #F5F5F5;
173
+ border-top: 1px solid #DDD;
174
+ border-radius: 0 0 6px 6px;
175
+ box-shadow: inset 0 1px 0 #FFF;
176
+ text-align: right;
177
+ }
178
+ .alertify-button {
179
+ margin-left: 10px;
180
+ border-radius: 4px;
181
+ font-weight: normal;
182
+ padding: 4px 12px;
183
+ text-decoration: none;
184
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
185
+ background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
186
+ background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
187
+ background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
188
+ background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
189
+ background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
190
+ }
191
+ .alertify-button:focus {
192
+ outline: none;
193
+ box-shadow: 0 0 5px #2B72D5;
194
+ }
195
+ .alertify-button:active {
196
+ position: relative;
197
+ box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
198
+ }
199
+ .alertify-button-cancel {
200
+ text-shadow: 0 -1px 0 rgba(255,255,255,.75);
201
+ background-color: #E6E6E6;
202
+ border: 1px solid #BBB;
203
+ color: #333;
204
+ background-image: -webkit-linear-gradient(top, #FFF, #E6E6E6);
205
+ background-image: -moz-linear-gradient(top, #FFF, #E6E6E6);
206
+ background-image: -ms-linear-gradient(top, #FFF, #E6E6E6);
207
+ background-image: -o-linear-gradient(top, #FFF, #E6E6E6);
208
+ background-image: linear-gradient(top, #FFF, #E6E6E6);
209
+ }
210
+ .alertify-button-cancel:hover {
211
+ background: #E6E6E6;
212
+ }
213
+ .alertify-button-ok {
214
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
215
+ background-color: #04C;
216
+ border: 1px solid #04C;
217
+ border-color: #04C #04C #002A80;
218
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
219
+ color: #FFF;
220
+ }
221
+ .alertify-button-ok:hover {
222
+ background: #04C;
223
+ }
224
+
225
+ .alertify-log {
226
+ background: #D9EDF7;
227
+ padding: 8px 14px;
228
+ border-radius: 4px;
229
+ color: #3A8ABF;
230
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
231
+ border: 1px solid #BCE8F1;
232
+ }
233
+ .alertify-log-error {
234
+ color: #B94A48;
235
+ background: #F2DEDE;
236
+ border: 1px solid #EED3D7;
237
+ }
238
+ .alertify-log-success {
239
+ color: #468847;
240
+ background: #DFF0D8;
241
+ border: 1px solid #D6E9C6;
242
242
  }