genkiwow-nitro-generator 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +15 -0
  3. data/Rakefile +56 -0
  4. data/VERSION.yml +4 -0
  5. data/generators/nitro_layout/USAGE +3 -0
  6. data/generators/nitro_layout/nitro_layout_generator.rb +66 -0
  7. data/generators/nitro_layout/templates/admin/admin_controller.rb +4 -0
  8. data/generators/nitro_layout/templates/admin/view_layout_administration.html.erb +59 -0
  9. data/generators/nitro_layout/templates/admin/view_layout_sign.html.erb +17 -0
  10. data/generators/nitro_layout/templates/admin/view_sidebar.html.erb +13 -0
  11. data/generators/nitro_layout/templates/admin/view_signin.html.erb +39 -0
  12. data/generators/nitro_layout/templates/admin/view_signup.html.erb +56 -0
  13. data/generators/nitro_layout/templates/app_helper.rb +42 -0
  14. data/generators/nitro_layout/templates/javascripts/application.js +42 -0
  15. data/generators/nitro_layout/templates/javascripts/jquery-1.3.min.js +19 -0
  16. data/generators/nitro_layout/templates/layout.html.erb +47 -0
  17. data/generators/nitro_layout/templates/stylesheets/base.css +336 -0
  18. data/generators/nitro_layout/templates/stylesheets/themes/bec-green/style.css +290 -0
  19. data/generators/nitro_layout/templates/stylesheets/themes/bec/style.css +301 -0
  20. data/generators/nitro_layout/templates/stylesheets/themes/blue/style.css +280 -0
  21. data/generators/nitro_layout/templates/stylesheets/themes/default/style.css +267 -0
  22. data/generators/nitro_layout/templates/stylesheets/themes/djime-cerulean/style.css +298 -0
  23. data/generators/nitro_layout/templates/stylesheets/themes/kathleene/style.css +272 -0
  24. data/generators/nitro_layout/templates/stylesheets/themes/orange/style.css +263 -0
  25. data/generators/nitro_layout/templates/stylesheets/themes/reidb-greenish/style.css +301 -0
  26. data/generators/nitro_layout/templates/view_sidebar.html.erb +13 -0
  27. data/generators/nitro_scaffold/USAGE +3 -0
  28. data/generators/nitro_scaffold/nitro_scaffold_generator.rb +186 -0
  29. data/generators/nitro_scaffold/templates/admin/controller.rb +101 -0
  30. data/generators/nitro_scaffold/templates/admin/view_destroy.js.erb +2 -0
  31. data/generators/nitro_scaffold/templates/admin/view_edit.html.erb +19 -0
  32. data/generators/nitro_scaffold/templates/admin/view_form.html.erb +19 -0
  33. data/generators/nitro_scaffold/templates/admin/view_index.html.erb +56 -0
  34. data/generators/nitro_scaffold/templates/admin/view_new.html.erb +20 -0
  35. data/generators/nitro_scaffold/templates/admin/view_show.html.erb +31 -0
  36. data/generators/nitro_scaffold/templates/admin/view_sidebar.html.erb +13 -0
  37. data/generators/nitro_scaffold/templates/controller.rb +85 -0
  38. data/generators/nitro_scaffold/templates/functional_test.rb +45 -0
  39. data/generators/nitro_scaffold/templates/helper.rb +2 -0
  40. data/generators/nitro_scaffold/templates/helper_test.rb +4 -0
  41. data/generators/nitro_scaffold/templates/layout.html.erb +47 -0
  42. data/generators/nitro_scaffold/templates/view_edit.html.erb +19 -0
  43. data/generators/nitro_scaffold/templates/view_form.html.erb +19 -0
  44. data/generators/nitro_scaffold/templates/view_index.html.erb +56 -0
  45. data/generators/nitro_scaffold/templates/view_new.html.erb +20 -0
  46. data/generators/nitro_scaffold/templates/view_show.html.erb +32 -0
  47. data/generators/nitro_scaffold/templates/view_sidebar.html.erb +13 -0
  48. data/lib/nitro_generator.rb +3 -0
  49. data/test/nitro_generator_test.rb +7 -0
  50. data/test/test_helper.rb +10 -0
  51. metadata +104 -0
@@ -0,0 +1,301 @@
1
+ a:link, a:visited, a:hover, a:active { color: #33f; }
2
+ h1, h2, h3 {color:#444}
3
+
4
+ body {
5
+ color: #333;
6
+ background: #e5e5e5;
7
+ font-family: Verdana, Arial, "Bitstream Vera Sans", sans-serif;
8
+ }
9
+
10
+ hr {
11
+ background: #f0f0ee;
12
+ }
13
+
14
+ p {
15
+ font-size: 12px;
16
+ line-height: 20px;
17
+ }
18
+
19
+ input.checkbox {
20
+ vertical-align:middle;
21
+ }
22
+
23
+ #header h1 {
24
+ font-size: 28px;
25
+ padding: 5px 0;
26
+ margin: 5px 0;
27
+ }
28
+
29
+ .hightlight {
30
+ background-color: #ffc;
31
+ }
32
+ .small {
33
+ font-size: 11px;
34
+ }
35
+ .gray {
36
+ color: #999;
37
+ }
38
+ #header {
39
+ background: #006666;
40
+ }
41
+
42
+ #header h1 a:link, #header h1 a:active, #header h1 a:hover, #header h1 a:visited {
43
+ color: #FFF;
44
+ }
45
+
46
+ #main {
47
+ background: #e5e5e5;
48
+ width: 73%;
49
+ }
50
+
51
+ #main .block {
52
+ -moz-border-radius-topleft: 4px;
53
+ -moz-border-radius-topright: 4px;
54
+ padding: 0;
55
+ margin-bottom:20px;
56
+ padding-bottom: 20px;
57
+ background: #fff;
58
+ }
59
+
60
+ #main .block h2.title {
61
+ margin: 0 0 20px 0;
62
+ background-color: #E6FAFA;
63
+ padding: 5px 5px 5px 15px;
64
+ font-size:18px;
65
+ }
66
+
67
+ .main_container {
68
+ padding:10px;
69
+ }
70
+
71
+ #footer .block p {
72
+ color:#aaa;
73
+ font-size:11px;
74
+ }
75
+
76
+ /* #sidebar .block { background: #FFF; padding-bottom:0px; } */
77
+
78
+ #sidebar .notice {
79
+ background-color: #ffc;
80
+ padding: 0 10px;
81
+ border-bottom:1px solid #ddd;
82
+ border-right:1px solid #ddd;
83
+ border-top:1px solid #fff;
84
+ border-left:1px solid #fff;
85
+ }
86
+ #sidebar .notice h2 {
87
+ font-size:16px;
88
+ margin: 5px 0;
89
+ border-bottom:1px solid #aaa;
90
+ }
91
+ #sidebar .notice p {
92
+ font-size:12px;
93
+ }
94
+
95
+ #sidebar .block {
96
+ padding-bottom: 0;
97
+ }
98
+
99
+ #sidebar .block .content {
100
+ padding: 0 10px;
101
+ }
102
+
103
+
104
+ #sidebar h3 {
105
+ background: #c7d8d8;
106
+ border-bottom:1px solid #999;
107
+ padding: 5px 10px;
108
+ }
109
+
110
+ #sidebar ul li a:link, #sidebar ul li a:visited {
111
+ font-size:12px;
112
+ }
113
+
114
+ #sidebar ul li a:hover, #sidebar ul li a:active {
115
+ background: #e1efef;
116
+ color: #444;
117
+ font-size:12px;
118
+ text-decoration:underline;
119
+ }
120
+ #sidebar ul.navigation li.last a {
121
+ border-bottom: none;
122
+ }
123
+
124
+ #sidebar ul.navigation li a:link,#sidebar ul.navigation li a:visited {
125
+ padding: 5px 10px;
126
+ color:#444;
127
+ text-decoration: none;
128
+ }
129
+ #sidebar ul.navigation li a:hover {
130
+ text-decoration:underline;
131
+ }
132
+ #sidebar .block .sidebar-block h4 {
133
+ border-bottom: 1px solid #bbb;
134
+ }
135
+ #main-navigation ul li {
136
+ background: #008c8c;
137
+ }
138
+
139
+ #main-navigation ul li:hover {
140
+ background: #00b2b2;
141
+ }
142
+
143
+ #main-navigation ul li.active {
144
+ background: #f0f0ee;
145
+ }
146
+
147
+ #main-navigation ul li a:link, #main-navigation ul li a:visited, #main-navigation ul li a:hover, #main-navigation ul li a:active,
148
+ .secondary-navigation ul li a:link, .secondary-navigation ul li a:visited, .secondary-navigation ul li a:hover, .secondary-navigation ul li a:active,
149
+ #user-navigation ul li a:link, #user-navigation ul li a:visited, #user-navigation ul li a:hover, #user-navigation ul li a:active {
150
+ text-decoration: none;
151
+ color: #FFF;
152
+ }
153
+
154
+ #main-navigation ul li a {
155
+ font-size: 12px;
156
+ padding: 4px 10px;
157
+ }
158
+
159
+ #main-navigation ul li.active a:link, #main-navigation ul li.active a:visited, #main-navigation ul li.active a:hover, #main-navigation ul li.active a:active {
160
+ color: #364b69;
161
+ }
162
+ #user-navigation ul li a:hover {
163
+ text-decoration: underline;
164
+ }
165
+ .secondary-navigation {
166
+ background: #006666;
167
+ border-bottom-color: #008c8c;
168
+ border-bottom: 5px solid #008c8c;
169
+ }
170
+
171
+ .secondary-navigation ul li.active {
172
+ background-color: #008c8c;
173
+ }
174
+
175
+ .secondary-navigation ul li:hover {
176
+ background-color: #00b2b2;
177
+ }
178
+
179
+ /* pagination */
180
+
181
+ .pagination span.current {
182
+ background: #008c8c;
183
+ color: #FFF;
184
+ border: 1px solid #008c8c;
185
+ -moz-border-radius:5px;
186
+ }
187
+
188
+ .pagination a {
189
+ color: #364B69;
190
+ border: 1px solid #ddd;
191
+ -moz-border-radius:5px;
192
+ font-size:11px;
193
+ }
194
+
195
+ .pagination a:hover {
196
+ color: #444;
197
+ background: #E6FAFA;
198
+ }
199
+
200
+ /* tables */
201
+
202
+ .table th {
203
+ background: #006666;
204
+ color: #FFF;
205
+ font-weight:normal;
206
+ padding:3px;
207
+ }
208
+
209
+ .table th a.toggle {
210
+ display: block;
211
+ width: 12px;
212
+ height: 12px;
213
+ background: transparent url('images/tick.png') center no-repeat;
214
+ text-indent: -9999px;
215
+ -moz-outline: none;
216
+ }
217
+
218
+ .table th.first {
219
+ width: 30px;
220
+ text-align: center;
221
+ }
222
+
223
+ .table td {
224
+ border-bottom: 1px solid #F0F0EE;
225
+ }
226
+
227
+ /* forms */
228
+
229
+ .form input.text, .form textarea.textarea {
230
+ border: 1px solid #ddd;
231
+ padding: 5px;
232
+ width:99%;
233
+ }
234
+
235
+ .form .navform {
236
+ padding:10px;
237
+ background-color: #f1f8f8;
238
+ font-size:14px;
239
+ border-bottom:1px solid #ddd;
240
+ border-right:1px solid #ddd;
241
+ border-top:1px solid #eee;
242
+ border-left:1px solid #eee;
243
+ }
244
+ .form .navform input {
245
+ font-size:14px;
246
+ }
247
+
248
+ .description {
249
+ color:#aaa;
250
+ font-family:Georgia, serif;
251
+ }
252
+
253
+ /* flash-messages */
254
+ .flash .message {
255
+ -moz-border-radius: 3px;
256
+ -webkit-border-radius: 3px;
257
+ text-align:center;
258
+ margin:0 auto 5px;
259
+ width:80%;
260
+ }
261
+ .flash .message p {
262
+ margin:8px;
263
+ }
264
+ .flash .error {
265
+ border: 1px solid #fbb;
266
+ background-color: #fdd;
267
+ }
268
+ .flash .warning {
269
+ border: 1px solid #fffaaa;
270
+ background-color: #ffffcc;
271
+ }
272
+ .flash .notice {
273
+ border: 1px solid #ddf;
274
+ background-color: #eef;
275
+ }
276
+
277
+ /* lists */
278
+
279
+ ul.list li {
280
+ border-bottom-color: #F0F0EE;
281
+ }
282
+
283
+ ul.list li .item .avatar {
284
+ border-color: #F0F0EE;
285
+ margin: 3px 10px 0 0;
286
+ }
287
+
288
+ ul.list li .left {
289
+ padding: 5px 5px;
290
+ }
291
+
292
+ /* box */
293
+
294
+ #box .block {
295
+ background: #FFF;
296
+ }
297
+
298
+ #box .block h2 {
299
+ background: #006666;
300
+ color: #FFF;
301
+ }
@@ -0,0 +1,280 @@
1
+ .small { font-size:12px; }
2
+ .gray { color:#999999; }
3
+ .hightlight { background-color:#FFFFCC; }
4
+
5
+ a:link, a:visited, a:hover, a:active, h1, h2, h3 { color: #2F427A; }
6
+ a { -moz-outline: none; }
7
+
8
+ body {
9
+ color: #222;
10
+ background: #f0f0ee;
11
+ font-family: helvetica, arial, sans-serif;
12
+ font-size: 14px;
13
+ }
14
+
15
+ hr {
16
+ background: #f0f0ee;
17
+ color: #f0f0ee;
18
+ }
19
+
20
+ #header {
21
+ background: #2F427A;
22
+ }
23
+
24
+ #header h1 {
25
+ padding: 20px 0;
26
+ }
27
+
28
+ #header h1 a:link, #header h1 a:active, #header h1 a:hover, #header h1 a:visited {
29
+ color: #FFF;
30
+ }
31
+
32
+ #user-navigation {
33
+ top: auto;
34
+ bottom: 5px;
35
+ right: 25px;
36
+ }
37
+
38
+ #main .block .content {
39
+ background: #FFF;
40
+ padding-top: 1px;
41
+ }
42
+
43
+ #main .block .content h2 {
44
+ margin-left: 15px;
45
+ }
46
+
47
+ #sidebar .block {
48
+ background: #FFF;
49
+ }
50
+
51
+ #sidebar .notice {
52
+ background: #FFFFCC;
53
+ }
54
+
55
+ #sidebar h3 {
56
+ background: #2F427A;
57
+ color: #FFF;
58
+ border-bottom: 10px solid #262626;
59
+ font-size: 15px;
60
+ }
61
+
62
+ #main-navigation ul li {
63
+ padding-left: 15px;
64
+ }
65
+
66
+ #main-navigation ul li a {
67
+ padding: 8px 0;
68
+ }
69
+
70
+ #main-navigation ul li.active {
71
+ padding: 0;
72
+ margin-left: 15px;
73
+ }
74
+
75
+ #main-navigation ul li.active {
76
+ margin-left: 15px;
77
+ }
78
+
79
+ #main-navigation ul li.active a {
80
+ padding: 8px 15px;
81
+ }
82
+
83
+ #sidebar ul li a:link, #sidebar ul li a:visited {
84
+ background: #FFF;
85
+ border-bottom: 1px solid #F0F0EE;
86
+ text-decoration: none;
87
+ }
88
+
89
+ #sidebar ul li a:hover, #sidebar ul li a:active {
90
+ background: #316291;
91
+ color: #FFF;
92
+ }
93
+
94
+ #main-navigation {
95
+ background: #262626;
96
+ }
97
+
98
+ #main-navigation ul li {
99
+ background: #262626;
100
+ margin-right: 0;
101
+ }
102
+
103
+ #main-navigation ul li.active {
104
+ background: #f0f0ee;
105
+ }
106
+
107
+ #main-navigation ul li a:link, #main-navigation ul li a:visited, #main-navigation ul li a:hover, #main-navigation ul li a:active,
108
+ .secondary-navigation ul li a:link, .secondary-navigation ul li a:visited, .secondary-navigation ul li a:hover, .secondary-navigation ul li a:active,
109
+ #user-navigation ul li a:link, #user-navigation ul li a:visited, #user-navigation ul li a:hover, #user-navigation ul li a:active {
110
+ text-decoration: none;
111
+ color: #FFF;
112
+ }
113
+
114
+ .secondary-navigation li a:hover {
115
+ background: #5C637A;
116
+ }
117
+
118
+ #main-navigation ul li.active a:link, #main-navigation ul li.active a:visited, #main-navigation ul li.active a:hover, #main-navigation ul li.active a:active {
119
+ color: #262626;
120
+ }
121
+
122
+ .secondary-navigation {
123
+ background: #2F427A;
124
+ border-bottom-color: #262626;
125
+ font-size: 15px;
126
+ }
127
+
128
+ .secondary-navigation ul li.active, .secondary-navigation ul li.active a:hover {
129
+ background-color: #262626;
130
+ }
131
+
132
+ #footer .block {
133
+ color: #FFF;
134
+ background: #262626;
135
+ }
136
+
137
+ #footer .block p {
138
+ margin: 0;
139
+ padding: 10px;
140
+ }
141
+
142
+ /* pagination */
143
+
144
+ .pagination span, .pagination a {
145
+ -moz-border-radius: 3px;
146
+ -webkit-border-radius: 3px;
147
+ padding-top: 4px;
148
+ }
149
+
150
+ .pagination span.current {
151
+ background: #262626;
152
+ color: #FFF;
153
+ border-color: #262626;
154
+ }
155
+
156
+ .pagination a {
157
+ color: #262626;
158
+ border-color: #262626;
159
+ }
160
+
161
+ .pagination a:hover {
162
+ color: #FFF;
163
+ background: #262626;
164
+ }
165
+
166
+ /* tables */
167
+
168
+ .table th {
169
+ background: #262626;
170
+ color: #FFF;
171
+ }
172
+
173
+ .table td {
174
+ border-bottom:1px solid #F0F0EE;
175
+ }
176
+
177
+ /* forms */
178
+
179
+ .form input.text_field, .form textarea.text_area {
180
+ width: 100%;
181
+ border: 1px solid #262626;
182
+ }
183
+
184
+ .form input.button {
185
+ background: #EEE;
186
+ color: #262626;
187
+ padding: 2px 5px;
188
+ border: 1px solid #262626;
189
+ cursor: pointer;
190
+ }
191
+
192
+ .form .description {
193
+ font-style: italic;
194
+ color: #8C8C8C;
195
+ font-size: .9em;
196
+ }
197
+
198
+ /* flash-messages */
199
+ .flash .message {
200
+ -moz-border-radius: 3px;
201
+ -webkit-border-radius: 3px;
202
+ text-align:center;
203
+ margin: 0 auto 15px;
204
+
205
+ }
206
+
207
+ .flash .message p {
208
+ margin:8px;
209
+ }
210
+ .flash .error {
211
+ border: 1px solid #fbb;
212
+ background-color: #fdd;
213
+ }
214
+ .flash .warning {
215
+ border: 1px solid #fffaaa;
216
+ background-color: #ffffcc;
217
+ }
218
+ .flash .notice {
219
+ border: 1px solid #1FDF00;
220
+ background-color: #BBFFB6;
221
+ }
222
+
223
+ /* lists */
224
+
225
+ ul.list li {
226
+ border-bottom-color: #F0F0EE;
227
+ border-bottom-width: 1px;
228
+ border-bottom-style: solid;
229
+ }
230
+
231
+ ul.list li .item .avatar {
232
+ border-color: #F0F0EE;
233
+ border-width: 1px;
234
+ border-style: solid;
235
+ padding: 2px;
236
+ }
237
+
238
+ /* box */
239
+
240
+ #box .block {
241
+ background: #FFF;
242
+ }
243
+
244
+ #box .block h2 {
245
+ background: #2F427A;
246
+ color: #FFF;
247
+ }
248
+
249
+
250
+ /* rounded borders */
251
+
252
+ #main, #main-navigation, #main-navigation li, .secondary-navigation, #main .block, #sidebar .block, #sidebar h3, ul.list li,
253
+ #footer .block, .form input.button, #box .block, #box .block h2 {
254
+ -moz-border-radius-topleft: 4px;
255
+ -webkit-border-top-left-radius: 4px;
256
+ -moz-border-radius-topright: 4px;
257
+ -webkit-border-top-right-radius: 4px;
258
+ }
259
+
260
+ .secondary-navigation li.first a, .secondary-navigation ul li.first, .table th.first, .table th.first {
261
+ -moz-border-radius-topleft: 4px;
262
+ -webkit-border-top-left-radius: 4px;
263
+ }
264
+
265
+ .table th.last {
266
+ -moz-border-radius-topright: 4px;
267
+ -webkit-border-top-right-radius: 4px;
268
+ }
269
+
270
+ .secondary-navigation ul li.first {
271
+ -moz-border-radius-topleft: 4px;
272
+ -webkit-border-top-left-radius: 4px;
273
+ }
274
+
275
+ #sidebar, #sidebar .block, #main .block, #sidebar ul.navigation, ul.list li, #footer .block, .form input.button, #box .block {
276
+ -moz-border-radius-bottomleft: 4px;
277
+ -webkit-border-bottom-left-radius: 4px;
278
+ -moz-border-radius-bottomright: 4px;
279
+ -webkit-border-bottom-right-radius: 4px;
280
+ }