ideyabox 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/lib/generators/ideyabox/admin/admin_generator.rb +25 -0
  2. data/lib/generators/ideyabox/admin/templates/.DS_Store +0 -0
  3. data/lib/generators/ideyabox/admin/templates/assets/.DS_Store +0 -0
  4. data/lib/generators/ideyabox/admin/templates/assets/images/.DS_Store +0 -0
  5. data/lib/generators/ideyabox/admin/templates/assets/images/admin/.DS_Store +0 -0
  6. data/lib/generators/ideyabox/admin/templates/assets/images/admin/addphoto.png +0 -0
  7. data/lib/generators/ideyabox/admin/templates/assets/images/admin/background-image.png +0 -0
  8. data/lib/generators/ideyabox/admin/templates/assets/images/admin/rdws_cat.png +0 -0
  9. data/lib/generators/ideyabox/admin/templates/assets/images/admin/search.png +0 -0
  10. data/lib/generators/ideyabox/admin/templates/assets/images/admin/search_button.png +0 -0
  11. data/lib/generators/ideyabox/admin/templates/assets/images/admin/small_button.png +0 -0
  12. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/#swfobject.js +4 -0
  13. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/cancel.png +0 -0
  14. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/jquery.uploadify.min.js +26 -0
  15. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/uploadify-cancel.png +0 -0
  16. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/uploadify.css +66 -0
  17. data/lib/generators/ideyabox/admin/templates/assets/images/admin/uploadify/uploadify.swf +0 -0
  18. data/lib/generators/ideyabox/admin/templates/assets/javascripts/.DS_Store +0 -0
  19. data/lib/generators/ideyabox/admin/templates/assets/javascripts/admin.js +14 -0
  20. data/lib/generators/ideyabox/admin/templates/assets/javascripts/chosen.jquery.js +1018 -0
  21. data/lib/generators/ideyabox/admin/templates/assets/javascripts/jquery.ui.nestedSortable.js +390 -0
  22. data/lib/generators/ideyabox/admin/templates/assets/javascripts/jquery.uploadify.min.js +26 -0
  23. data/lib/generators/ideyabox/admin/templates/assets/javascripts/modernizr.js +4 -0
  24. data/lib/generators/ideyabox/admin/templates/assets/javascripts/swfobject.js +4 -0
  25. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/.DS_Store +0 -0
  26. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/admin.scss.erb +393 -0
  27. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/chosen.scss.erb +398 -0
  28. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font-awesome.css +303 -0
  29. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font_awesome/.gitignore +29 -0
  30. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font_awesome/font/fontawesome-webfont.eot +0 -0
  31. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font_awesome/font/fontawesome-webfont.svg +255 -0
  32. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font_awesome/font/fontawesome-webfont.ttf +0 -0
  33. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/font_awesome/font/fontawesome-webfont.woff +0 -0
  34. data/lib/generators/ideyabox/admin/templates/assets/stylesheets/normalize.css +500 -0
  35. data/lib/generators/ideyabox/admin/templates/controllers/.DS_Store +0 -0
  36. data/lib/generators/ideyabox/admin/templates/controllers/admin/.DS_Store +0 -0
  37. data/lib/generators/ideyabox/admin/templates/controllers/admin/application_controller.rb +8 -0
  38. data/lib/generators/ideyabox/admin/templates/helpers/.DS_Store +0 -0
  39. data/lib/generators/ideyabox/admin/templates/helpers/admin_helper.rb +104 -0
  40. data/lib/generators/ideyabox/admin/templates/tasks/reset_db.rake +9 -0
  41. data/lib/generators/ideyabox/admin/templates/tasks/seeds.rb +2 -0
  42. data/lib/generators/ideyabox/admin/templates/views/.DS_Store +0 -0
  43. data/lib/generators/ideyabox/admin/templates/views/admin/.DS_Store +0 -0
  44. data/lib/generators/ideyabox/admin/templates/views/admin/shared/_header.html.haml +11 -0
  45. data/lib/generators/ideyabox/admin/templates/views/admin/shared/_launchbar.html.haml +10 -0
  46. data/lib/generators/ideyabox/admin/templates/views/admin/shared/_topbar.html.haml +6 -0
  47. data/lib/generators/ideyabox/admin/templates/views/layouts/admin.html.haml +39 -0
  48. data/lib/generators/ideyabox/admin/templates/views/layouts/login.html.haml +32 -0
  49. data/lib/ideyabox/version.rb +1 -1
  50. data/lib/ideyabox.rb +1 -2
  51. metadata +49 -2
  52. data/lib/ideyabox/engine.rb +0 -4
@@ -0,0 +1,393 @@
1
+ //= require "../images/uploadify/uploadify.css"
2
+ //= require 'font-awesome.css'
3
+ //*= require normalize
4
+ //*= require redactor-rails
5
+ //*= require chosen
6
+ //*= require_self
7
+ * {
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+
12
+ $deepgreen: #404040;
13
+ $bodycolor: #eafeeb;
14
+ $wrapper_color: rgba(255,255,255,0.9);
15
+ $a_color: #000;
16
+ $a_hover_color: #53B75F;
17
+ $active_color:#C4FFCB;
18
+ $border_color:#d4d4d4;
19
+ $shadows: rgb(150,150,150);
20
+
21
+ html {overflow-y:scroll;}
22
+ body {width: 100%;
23
+ background: $bodycolor url(<%= asset_path 'admin/background-image.png' %>);
24
+
25
+ text-align: left; font:100% "Lucida Grande", "Lucida Sans Unicode", helvetica, arial, verdana, sans-serif;color:$deepgreen;}
26
+ #logo img{
27
+ width:100px;
28
+ }
29
+ a.del {
30
+ display:inline-block;
31
+ min-width:80px;
32
+ vertical-align:middle;
33
+
34
+ i {display:inline;}
35
+ &:hover {color:#FF0000;}
36
+ }
37
+ .icon-large{font-size:1.5em;}
38
+ .bright_link {
39
+ background:$deepgreen;
40
+ color:#fff;
41
+ padding:3px 7px;
42
+ -webkit-border-radius: 3px;
43
+ -moz-border-radius: 3px;
44
+ border-radius: 3px;
45
+ color:#d4d4d4;
46
+ &:hover {color:white;}
47
+ }
48
+ .selected{
49
+ color:#77C0C7;
50
+ &.bright_link{color:$active_color;}
51
+ }
52
+ .rounded {
53
+ text-align:center;
54
+ vertical-align:middle;
55
+ color:white;
56
+ width:18px;
57
+ height:18px;
58
+ padding:3px 0.1em 0 0.1em;
59
+ -webkit-border-radius: 20px;
60
+ -moz-border-radius: 20px;
61
+ border-radius: 20px;
62
+ background:$deepgreen;
63
+ }
64
+ table {
65
+ width:100%;
66
+ border-collapse:collapse;
67
+ margin-bottom:10px;
68
+ tr {
69
+ &:first-child {border-top:1px solid $border_color;}
70
+ border-bottom:1px solid $border_color;
71
+ }
72
+ td {
73
+ padding:5px 7px;
74
+ vertical-align:middle;
75
+ input {width:100%;}
76
+ }
77
+ .right {text-align:right;vertical-align:middle;}
78
+ td.icon a {width:15px;}
79
+ td.handle {color:$deepgreen;cursor: move;}
80
+ }
81
+
82
+
83
+ table.zebra {
84
+ border-right:solid 1px $border_color;
85
+ border-left:solid 1px $border_color;
86
+ tr:nth-child(2n+1) {
87
+ background:#F8F8F8;
88
+ }
89
+ tr:nth-child(2n) {
90
+ background:#fff;
91
+ }
92
+ }
93
+ th {text-align:left;}
94
+ li {list-style: none;}
95
+
96
+ h1,h2,h3,h4,ul {margin:0;padding:0;}
97
+ h2,h3,h4 {margin-bottom:0.5em;}
98
+ hr {margin-bottom:10px;background-color:$border_color;}
99
+ a {color:$a_color;text-decoration:none;}
100
+ a:hover {text-decoration:none;color:$a_hover_color;}
101
+
102
+ ul.horizontal_items {
103
+ margin-bottom:10px;
104
+ li {
105
+ display:inline-block;
106
+ }
107
+ }
108
+
109
+ .bordered_box {
110
+ border:solid 1px $border_color;
111
+ margin-bottom:10px;
112
+ padding:10px 15px;
113
+ img {max-width:100%;}
114
+ }
115
+
116
+
117
+
118
+ @media screen and (min-width: 780px) {
119
+ .full, .sidebar {
120
+ margin:0 -2% -1em 2%;
121
+ }
122
+ #launchbar {
123
+
124
+ li {float:left;}
125
+ }
126
+ #page_sidebar {float:right;width:40%;}
127
+ .sidebar #content {width:60%;overflow:hidden;table{width:98%;}}
128
+ }
129
+ @media screen and (min-width: 480px) {
130
+ #wrapper {
131
+ margin:0 5% auto;
132
+ }
133
+ ul.user_panel li {float:left;}
134
+ }
135
+
136
+ @media screen and (max-width: 780px) {
137
+ #launchbar {
138
+ li.arrow {display:block;}
139
+ ul.menus {
140
+ padding-left:20px;
141
+ li {display:none;}
142
+ li.active, li.arrow {display:block;}
143
+ .show{display:block;}
144
+ }
145
+ }
146
+ a.del {
147
+ min-width:10px;
148
+ span {display:none;}
149
+ }
150
+ }
151
+
152
+ #launchbar {
153
+ background: $deepgreen;overflow: hidden;position: relative;text-align: left;z-index: 9999;padding: 0 3%;
154
+ -webkit-box-shadow: 0 0 5px $shadows;
155
+ -moz-box-shadow: 0 0 5px $shadows;
156
+ box-shadow: 0 0 5px $shadows;
157
+ ul.user_panel {
158
+ text-align:right;position:absolute;right:5%;top:0;
159
+ li {padding-left:10px;}
160
+ }
161
+ ul.menus li {padding-right:10px;}
162
+
163
+ li {position:relative;list-style-type: none;line-height: normal;padding: 0;padding: 0.625em 0 0.625em 0;font-size: 0.875em}
164
+
165
+ li a {position: relative;display: block;color:#d4d4d4;text-decoration:none;width:100%;}
166
+
167
+ li a:hover {color:white;}
168
+ li.active a {color: $active_color;font-weight: bold;}
169
+ .arrow {float:left;z-index:10000;display:none;}
170
+ }
171
+
172
+ #header {
173
+ width:100%;
174
+ #header_wrapper {
175
+ position:relative;
176
+ #center {
177
+ height:80px;position:relative;
178
+ font:2.1em sans-serif;font-weight:bolder;margin: 0.3em 5%;
179
+ a{
180
+ text-decoration:none;vertical-align:top;
181
+ &#application_link {top:0.5em;position:relative;}
182
+ }
183
+ }
184
+ }
185
+ #language_link{position:absolute;right:5%;top:0.5em;font-size:0.75em;}
186
+ #search {position:absolute;right:5%;bottom:-0.7em;font-size:0.75em;}
187
+ #subscription input{position:relative;font-size:1.25em;bottom:0;}
188
+ #subscription input[type=submit]{
189
+ background:url(<%= asset_path 'admin/search.png' %>) no-repeat;
190
+
191
+ border:none;text-shadow:none;box-shadow:none;width:22px;
192
+ &:hover {background-color:none;border:none;color:none;box-shadow:none}
193
+ }
194
+ }
195
+
196
+ #topbar {
197
+ background:$deepgreen;overflow: hidden;position: relative;text-align: left;z-index: 9999;width:100%;
198
+ border-bottom:1px solid $shadows;
199
+ ul#nav {padding: 0 3%;}
200
+ li {display:inline-block;position: relative;margin-right: 0.33333%;list-style-type: none;line-height: normal;padding: 0;padding: 0.9em 5px 0.9em 5px}
201
+ li a {position: relative;display: inline-block;font-size: 1.1em;color: #d4d4d4;text-decoration: none;white-space: nowrap;}
202
+ li a:hover {color:white;}
203
+ li.active a {color: $active_color;font-weight: bold;}
204
+ -webkit-border-top-left-radius: 3px;
205
+ -webkit-border-top-right-radius: 3px;
206
+ -moz-border-top-left-radius: 3px;
207
+ -moz-border-top-right-radius: 3px;
208
+ border-top-left-radius: 3px;
209
+ border-top-right-radius: 3px;
210
+ }
211
+ .full, .sidebar {
212
+ z-index: 9999;
213
+ background:white;
214
+ -webkit-box-shadow: -2px 2px 10px $shadows;
215
+ -moz-box-shadow: -2px 2px 10px $shadows;
216
+ box-shadow: -2px 2px 10px $shadows;
217
+ -webkit-border-radius: 3px;
218
+ -moz-border-radius: 3px;
219
+ border-radius: 3px;
220
+ border: 1px solid #CCC;
221
+ padding:1em 2% 1em 2%;
222
+ min-height:40em;
223
+ h5 {color:green;}
224
+ .explanations {margin-top:1em;}
225
+ }
226
+ #page-header {
227
+ padding:0.625em 3%;
228
+ p{float:right;color:$deepgreen;}
229
+ h1 {text-transform:capitalize;}
230
+ a.green {color:$a_hover_color;text-decoration:underline}
231
+ a.green:hover {text-decoration:none}
232
+ }
233
+ #wrapper {
234
+ background:$wrapper_color;
235
+ font-size: 0.8em;
236
+
237
+ -webkit-box-shadow: -2px 2px 10px $shadows;
238
+ -moz-box-shadow: -2px 2px 10px $shadows;
239
+ box-shadow: -2px 2px 10px $shadows;
240
+
241
+ -webkit-border-radius: 3px;
242
+ -moz-border-radius: 3px;
243
+ border-radius: 3px;
244
+ border: 1px solid #CCC;
245
+ margin-bottom:2em;
246
+ }
247
+ td #imp_redactor_box_slider_item_body {width:100% !important;}
248
+ .prev_button {
249
+ float:right;margin-right:5px;
250
+ }
251
+
252
+ .s_item img{
253
+ width:100%;
254
+ }
255
+ .date_params {display:none;&.show {display:table-row;}}
256
+
257
+ body .redactor_toolbar li a.redactor_btn_hiconix_cut{background: url(<%= asset_path 'admin/hiconix_cut.png' %>) no-repeat;}
258
+ ul.photos {
259
+ list-style: none;
260
+ li {
261
+ display:inline-block;
262
+ position:relative;
263
+ a.del {text-indent:-9999px;position:absolute;right:0;bottom:0;}
264
+ }
265
+ }
266
+ @mixin black_button {
267
+ font:1em Helvetica, Arial, sans-serif;
268
+ margin-bottom:10px;
269
+ display:inline-block;
270
+ padding:5px 7px;
271
+ color:#d4d4d4;
272
+ background:$deepgreen;
273
+ border-radius: 3px;
274
+ -webkit-border-radius: 3px;
275
+ -moz-border-radius: 3px;
276
+ text-shadow:none;
277
+ &:hover {
278
+ color:#fff;
279
+ border:none;
280
+ background:black;
281
+ box-shadow:none;
282
+
283
+ }
284
+ }
285
+ .black_button {
286
+ @include black_button;
287
+ }
288
+ input[type=submit] {
289
+ cursor:pointer;
290
+ padding:0.5em 3%;
291
+ font:1.5em Helvetica, Arial, sans-serif;
292
+ font-weight:bold;
293
+ color:#444;
294
+ border:1px solid #707070;
295
+ border-radius: 2px;
296
+ background:#f4f4f4;
297
+ text-shadow:0 1px 1px rgba(255,255,255,0.85);
298
+
299
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 1px 1px 0 #fff inset, -1px -1px 0 #fff inset;
300
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 1px 1px 0 #fff inset, -1px -1px 0 #fff inset;
301
+
302
+ &.black_button, &.icon_button {
303
+ border:none;
304
+ box-shadow:none;
305
+ }
306
+
307
+ &.black_button {
308
+ @include black_button;
309
+ }
310
+ &.icon_button{
311
+ padding:0;
312
+ width:25px;
313
+ height:25px;
314
+ &:hover {
315
+ color:none;
316
+ background-color:none;
317
+ border:none;
318
+ box-shadow:none;
319
+ }
320
+ &.plus {
321
+ background:url(<%= asset_path 'admin/small_button.png' %>);
322
+ background-size:cover;
323
+ }
324
+ &.search_button {
325
+ background:url(<%= asset_path 'admin/search_button.png' %>);
326
+ background-size:cover;
327
+ }
328
+
329
+ }
330
+
331
+ &:hover {
332
+ border-color:#097a16;
333
+ background-color:#A9FFB4;
334
+ -webkit-box-shadow: 0 1px 6px rgb(9, 122, 22);
335
+ -moz-box-shadow: 0 1px 6px rgb(9, 122, 22);
336
+ box-shadow: 0 1px 6px rgb(9, 122, 22);
337
+ color:#444;
338
+ }
339
+ }
340
+
341
+ .notice, .alert {
342
+ padding:7px 15px;
343
+ margin:10px 30px;
344
+ border-radius:4px;
345
+ border:1px solid;
346
+ border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
347
+ font-size:13px;
348
+ line-height:18px;
349
+ color:#fff;
350
+ text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);
351
+ background-repeat: repeat-x;
352
+ z-index:1000;
353
+ position:relative;
354
+ }
355
+
356
+ .notice {
357
+ background-color:#57A957;
358
+ background-image: -khtml-gradient(linear, left top, left bottom, from(#62c462), to(#57a957));
359
+ background-image: -moz-linear-gradient(top, #62c462, #57a957);
360
+ background-image: -ms-linear-gradient(top, #62c462, #57a957);
361
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62c462), color-stop(100%, #57a957));
362
+ background-image: -webkit-linear-gradient(top, #62c462, #57a957);
363
+ background-image: -o-linear-gradient(top, #62c462, #57a957);
364
+ background-image: linear-gradient(top, #62c462, #57a957);
365
+ behavior:url("/PIE.htc");
366
+ }
367
+
368
+ #error_explanation {background:#fbe3e4;padding:1em;border-radius:4px; border:1px dashed red;ul{list-style-type:none;}}
369
+
370
+ html.login {
371
+ #content input{font-size:1em;}
372
+ #content input[type=submit]{padding: 0.3em 0.5em;}
373
+ &, body { width:100%; height:100%;}
374
+ #main {min-height:0; width:370px; margin:0 auto;
375
+ margin-bottom:100px;
376
+ background:white;
377
+ padding:0 2em;
378
+ -webkit-box-shadow: 0 0 5px #CCC;
379
+ -moz-box-shadow: 0 0 5px #CCC;
380
+ box-shadow: 0 0 5px #CCC;
381
+ -webkit-border-radius: 3px;
382
+ -moz-border-radius: 3px;
383
+ border-radius: 3px;
384
+ border: 1px solid #CCC;
385
+ }
386
+
387
+ table.login {border-collapse:collapse; width:100%; height:100%;}
388
+ td.login {vertical-align:middle;}
389
+ .fields {
390
+ margin:0 0 5px 0;
391
+ input {width:100%}
392
+ }
393
+ }