app-themer 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.md +158 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/app-themer.gemspec +82 -0
- data/images/avatar.png +0 -0
- data/images/icons/application_edit.png +0 -0
- data/images/icons/cross.png +0 -0
- data/images/icons/key.png +0 -0
- data/images/icons/tick.png +0 -0
- data/index.html +347 -0
- data/javascripts/dd_belatedpng.js +328 -0
- data/javascripts/modernizr-1.5.min.js +28 -0
- data/lib/app_themer.rb +2 -0
- data/lib/generators/app_themer/layout/layout_generator.rb +71 -0
- data/lib/generators/app_themer/layout/templates/admin.html.erb +59 -0
- data/lib/generators/app_themer/layout/templates/login.html.erb +0 -0
- data/lib/generators/app_themer/views/templates/_form.html.erb +13 -0
- data/lib/generators/app_themer/views/templates/_sidebar.html.erb +13 -0
- data/lib/generators/app_themer/views/templates/edit.html.erb +18 -0
- data/lib/generators/app_themer/views/templates/new.html.erb +16 -0
- data/lib/generators/app_themer/views/templates/show.html.erb +23 -0
- data/lib/generators/app_themer/views/templates/tables.html.erb +50 -0
- data/lib/generators/app_themer/views/templates/text.html.erb +16 -0
- data/lib/generators/app_themer/views/views_generator.rb +126 -0
- data/stylesheets/base.css +204 -0
- data/stylesheets/handheld.css +6 -0
- data/stylesheets/override.css +1 -0
- data/stylesheets/themes/default/images/arrow.png +0 -0
- data/stylesheets/themes/default/images/boxbar-background.png +0 -0
- data/stylesheets/themes/default/images/button-background-active.png +0 -0
- data/stylesheets/themes/default/images/button-background.png +0 -0
- data/stylesheets/themes/default/images/menubar-background.png +0 -0
- data/stylesheets/themes/default/style.css +444 -0
- data/test/helper.rb +10 -0
- data/test/test_app-themer.rb +5 -0
- metadata +115 -0
@@ -0,0 +1,444 @@
|
|
1
|
+
/* @group header */
|
2
|
+
header {
|
3
|
+
background-color: #002134;
|
4
|
+
padding: 0 20px;
|
5
|
+
}
|
6
|
+
|
7
|
+
header h1 {
|
8
|
+
padding: 20px 0;
|
9
|
+
font-size: 246%;
|
10
|
+
font-style: normal;
|
11
|
+
font-weight: bold;
|
12
|
+
text-transform: none;
|
13
|
+
letter-spacing: -2px;
|
14
|
+
line-height: 1.2em;
|
15
|
+
color: #fff;
|
16
|
+
text-shadow: #000 1px 1px 2px;
|
17
|
+
}
|
18
|
+
|
19
|
+
header h1 a {
|
20
|
+
text-decoration: none;
|
21
|
+
color: #fff;
|
22
|
+
}
|
23
|
+
/* @end */
|
24
|
+
|
25
|
+
/* @group navigation */
|
26
|
+
header nav ul li {
|
27
|
+
background-color: #fff;
|
28
|
+
line-height: 26px;
|
29
|
+
margin-right: 3px;
|
30
|
+
}
|
31
|
+
|
32
|
+
header nav ul li.active {
|
33
|
+
background-color: #e5e5e5;
|
34
|
+
}
|
35
|
+
|
36
|
+
header nav ul li a {
|
37
|
+
font-size: 108%;
|
38
|
+
}
|
39
|
+
|
40
|
+
nav.secondary {
|
41
|
+
background-color: #f2f1ee;
|
42
|
+
background-image: url("images/boxbar-background.png");
|
43
|
+
}
|
44
|
+
|
45
|
+
nav.secondary ul li a {
|
46
|
+
line-height: 35px;
|
47
|
+
font-size: 13px;
|
48
|
+
}
|
49
|
+
|
50
|
+
nav.secondary ul li.active {
|
51
|
+
background-color: #fff;
|
52
|
+
}
|
53
|
+
/* @end */
|
54
|
+
|
55
|
+
/* @group main content */
|
56
|
+
#main section {
|
57
|
+
margin-bottom: 20px;
|
58
|
+
background-color: #fff;
|
59
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
60
|
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
61
|
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
62
|
+
}
|
63
|
+
|
64
|
+
.content {
|
65
|
+
padding: 0 15px 15px;
|
66
|
+
}
|
67
|
+
/* @end */
|
68
|
+
|
69
|
+
/* @group flash messages */
|
70
|
+
.flash .message {
|
71
|
+
text-align:center;
|
72
|
+
margin: 0 auto 15px;
|
73
|
+
}
|
74
|
+
|
75
|
+
.flash .message p {
|
76
|
+
margin:8px;
|
77
|
+
}
|
78
|
+
.flash .error {
|
79
|
+
border: 1px solid #ffbbbb;
|
80
|
+
background-color: #ffdddd;
|
81
|
+
}
|
82
|
+
.flash .warning {
|
83
|
+
border: 1px solid #ffff88;
|
84
|
+
background-color: #ffffcc;
|
85
|
+
}
|
86
|
+
.flash .notice {
|
87
|
+
border: 1px solid #1fdf00;
|
88
|
+
background-color: #bbffb6;
|
89
|
+
}
|
90
|
+
/* @end */
|
91
|
+
|
92
|
+
|
93
|
+
/* @group buttons */
|
94
|
+
a.button, button.button {
|
95
|
+
background-color: #f4f4f4;
|
96
|
+
background-image: url("images/button-background.png");
|
97
|
+
border: 1px solid #c3c4ba;
|
98
|
+
font-weight: normal;
|
99
|
+
}
|
100
|
+
|
101
|
+
a.button:link, a.button:visited, a.button:hover, a.button:active, button.button:link, button.button:visited, button.button:hover, button.button:active {
|
102
|
+
font-weight: normal;
|
103
|
+
background-color: #f4f4f4;
|
104
|
+
}
|
105
|
+
|
106
|
+
a.button:hover, button.button:hover {
|
107
|
+
background-color: #eee;
|
108
|
+
border: 1px solid #818171;
|
109
|
+
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
110
|
+
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
111
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
112
|
+
}
|
113
|
+
|
114
|
+
a.button:active, button.button:active {
|
115
|
+
outline: none;
|
116
|
+
background-color: #ddd;
|
117
|
+
background-image: url("images/button-background-active.png");
|
118
|
+
}
|
119
|
+
/* @end */
|
120
|
+
|
121
|
+
/* @group pagination */
|
122
|
+
.actions-bar .pagination {
|
123
|
+
float: right;
|
124
|
+
padding: 1px 0;
|
125
|
+
}
|
126
|
+
|
127
|
+
.pagination a, .pagination span {
|
128
|
+
background-color: #f4f4f4;
|
129
|
+
background-image: url("images/button-background.png");
|
130
|
+
color: #111;
|
131
|
+
text-align: center;
|
132
|
+
min-width: 15px;
|
133
|
+
margin-right: 5px;
|
134
|
+
padding: 6px;
|
135
|
+
border: 1px solid #c3c4ba;
|
136
|
+
}
|
137
|
+
|
138
|
+
.pagination em {
|
139
|
+
background: #002134;
|
140
|
+
color: #fff;
|
141
|
+
border: 1px solid #002134;
|
142
|
+
}
|
143
|
+
|
144
|
+
.pagination a {
|
145
|
+
color: #1a1a1a;
|
146
|
+
}
|
147
|
+
|
148
|
+
.pagination a:hover {
|
149
|
+
border: 1px solid #818171;
|
150
|
+
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
151
|
+
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
152
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
153
|
+
}
|
154
|
+
|
155
|
+
.pagination a:active {
|
156
|
+
background-image: url("images/button-background-active.png");
|
157
|
+
outline: none;
|
158
|
+
}
|
159
|
+
/* @end */
|
160
|
+
|
161
|
+
/* @group tables */
|
162
|
+
.table {
|
163
|
+
width: 100%;
|
164
|
+
border-collapse: collapse;
|
165
|
+
margin-bottom: 15px;
|
166
|
+
}
|
167
|
+
|
168
|
+
.table th {
|
169
|
+
padding: 8px 10px;
|
170
|
+
text-align: left;
|
171
|
+
background: #eaeaea;
|
172
|
+
color: #222;
|
173
|
+
font-weight: normal;
|
174
|
+
}
|
175
|
+
|
176
|
+
.table th.first {
|
177
|
+
width: 30px;
|
178
|
+
}
|
179
|
+
|
180
|
+
.table th.last {
|
181
|
+
width: 200px;
|
182
|
+
}
|
183
|
+
|
184
|
+
.table .checkbox {
|
185
|
+
margin-left: 10px;
|
186
|
+
}
|
187
|
+
|
188
|
+
.table td {
|
189
|
+
padding: 8px 10px;
|
190
|
+
border-bottom: 1px solid #eaeaea;
|
191
|
+
}
|
192
|
+
|
193
|
+
.table td.last {
|
194
|
+
text-align: right;
|
195
|
+
}
|
196
|
+
.table tr.even {
|
197
|
+
background: #f8f8f8;
|
198
|
+
}
|
199
|
+
/* @end */
|
200
|
+
|
201
|
+
|
202
|
+
/* @group forms */
|
203
|
+
input.checkbox {
|
204
|
+
margin: 0;
|
205
|
+
padding: 0;
|
206
|
+
}
|
207
|
+
|
208
|
+
.form .group {
|
209
|
+
margin-bottom: 15px;
|
210
|
+
}
|
211
|
+
|
212
|
+
.form div.left {
|
213
|
+
width: 20%;
|
214
|
+
float: left;
|
215
|
+
}
|
216
|
+
|
217
|
+
.form div.right {
|
218
|
+
width: 75%;
|
219
|
+
float: right;
|
220
|
+
}
|
221
|
+
|
222
|
+
.form .columns .column {
|
223
|
+
width: 48%;
|
224
|
+
}
|
225
|
+
|
226
|
+
.form .columns .left {
|
227
|
+
float: left;
|
228
|
+
}
|
229
|
+
|
230
|
+
.form .columns .right {
|
231
|
+
float: right;
|
232
|
+
}
|
233
|
+
|
234
|
+
.form label.label, .form input.text_field, .form textarea.text_area {
|
235
|
+
font-size: 108%;
|
236
|
+
padding: 3px 4px;
|
237
|
+
margin: 0;
|
238
|
+
}
|
239
|
+
|
240
|
+
.form label.right {
|
241
|
+
text-align: right;
|
242
|
+
}
|
243
|
+
|
244
|
+
.form input.checkbox, .form input.radio {
|
245
|
+
margin-right: 5px;
|
246
|
+
}
|
247
|
+
|
248
|
+
.form label.label {
|
249
|
+
display: block;
|
250
|
+
padding-bottom: 2px;
|
251
|
+
font-weight: bold;
|
252
|
+
}
|
253
|
+
|
254
|
+
.form div.fieldWithErrors label.label {
|
255
|
+
display: inline;
|
256
|
+
}
|
257
|
+
|
258
|
+
.form .fieldWithErrors .error {
|
259
|
+
color: red;
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
.form {
|
264
|
+
line-height: normal;
|
265
|
+
}
|
266
|
+
|
267
|
+
.form label.label {
|
268
|
+
color: #666666;
|
269
|
+
}
|
270
|
+
|
271
|
+
.form input.text_field, .form textarea.text_area {
|
272
|
+
width: 99%;
|
273
|
+
border: 1px solid #e2e2e2;
|
274
|
+
}
|
275
|
+
|
276
|
+
.ie6 .form input.text_field, .ie6 .form textarea.text_area {
|
277
|
+
width: 98%;
|
278
|
+
}
|
279
|
+
|
280
|
+
.form input:hover, .form textarea:hover {
|
281
|
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
|
282
|
+
-webkit-box-shadow: rgba(0,0,0,0.3) 0 0 3px;
|
283
|
+
-moz-box-shadow: rgba(0,0,0,0.3) 0 0 3px;
|
284
|
+
border: 1px solid #a2a294;
|
285
|
+
}
|
286
|
+
|
287
|
+
.form input:focus, .form textarea:focus {
|
288
|
+
border: 1px solid #a2a294;
|
289
|
+
}
|
290
|
+
|
291
|
+
.form input.button {
|
292
|
+
background: #e2e2e2;
|
293
|
+
border: 1px solid #c1c1c1;
|
294
|
+
padding: 2px 5px;
|
295
|
+
cursor: pointer;
|
296
|
+
color: #111;
|
297
|
+
font-weight: bold;
|
298
|
+
font-size: 11px;
|
299
|
+
}
|
300
|
+
|
301
|
+
.form input.button:hover {
|
302
|
+
border: 1px solid #666;
|
303
|
+
}
|
304
|
+
|
305
|
+
.form .description {
|
306
|
+
font-style: italic;
|
307
|
+
color: #8C8C8C;
|
308
|
+
font-size: .9em;
|
309
|
+
}
|
310
|
+
|
311
|
+
.form .navform a {
|
312
|
+
color: #cc0000;
|
313
|
+
}
|
314
|
+
/* @end */
|
315
|
+
|
316
|
+
/* @group lists */
|
317
|
+
ul.list {
|
318
|
+
margin: 0;
|
319
|
+
padding: 0;
|
320
|
+
list-style-type: none;
|
321
|
+
}
|
322
|
+
|
323
|
+
ul.list p {
|
324
|
+
margin-top:0;
|
325
|
+
}
|
326
|
+
|
327
|
+
ul.list li {
|
328
|
+
clear: left;
|
329
|
+
padding-top: 15px;
|
330
|
+
}
|
331
|
+
|
332
|
+
ul.list li .left {
|
333
|
+
float: left;
|
334
|
+
}
|
335
|
+
|
336
|
+
ul.list li .left .avatar {
|
337
|
+
width: 50px;
|
338
|
+
height: 50px;
|
339
|
+
}
|
340
|
+
|
341
|
+
ul.list li .item {
|
342
|
+
margin-left: 80px;
|
343
|
+
}
|
344
|
+
|
345
|
+
ul.list li .item .avatar {
|
346
|
+
float: left;
|
347
|
+
margin: 0 5px 5px 0;
|
348
|
+
width: 30px;
|
349
|
+
height: 30px;
|
350
|
+
}
|
351
|
+
|
352
|
+
ul.list li {
|
353
|
+
border-bottom-color: #e2e2e2;
|
354
|
+
border-bottom-width: 1px;
|
355
|
+
border-bottom-style: solid;
|
356
|
+
}
|
357
|
+
|
358
|
+
ul.list li .item .avatar {
|
359
|
+
border-color: #e2e2e2;
|
360
|
+
border-width: 1px;
|
361
|
+
border-style: solid;
|
362
|
+
padding: 2px;
|
363
|
+
}
|
364
|
+
/* @end */
|
365
|
+
|
366
|
+
/* @group footer */
|
367
|
+
footer {
|
368
|
+
background-color: #fff;
|
369
|
+
text-align:center;
|
370
|
+
padding: 5px;
|
371
|
+
font-size: 12px;
|
372
|
+
margin-bottom: 15px;
|
373
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
374
|
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
375
|
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
376
|
+
}
|
377
|
+
footer p {
|
378
|
+
margin: 0;
|
379
|
+
}
|
380
|
+
/* @end */
|
381
|
+
|
382
|
+
/* @group sidebar */
|
383
|
+
#sidebar {
|
384
|
+
float: right;
|
385
|
+
width: 25%;
|
386
|
+
font-size: 93%;
|
387
|
+
}
|
388
|
+
|
389
|
+
aside h2 {
|
390
|
+
font-size: 150%;
|
391
|
+
font-weight: normal;
|
392
|
+
margin: 0;
|
393
|
+
padding: 10px 15px;
|
394
|
+
border-bottom: 1px solid silver;
|
395
|
+
}
|
396
|
+
|
397
|
+
#sidebar ul li {
|
398
|
+
background-position: 15px 11px;
|
399
|
+
background-repeat: no-repeat;
|
400
|
+
background-image: url("images/arrow.png");
|
401
|
+
border-bottom: 1px solid #e2e2e2;
|
402
|
+
}
|
403
|
+
|
404
|
+
#sidebar ul li a {
|
405
|
+
text-decoration: none;
|
406
|
+
margin-left: 20px;
|
407
|
+
}
|
408
|
+
|
409
|
+
#sidebar ul li a:link, #sidebar ul li a:visited {
|
410
|
+
text-decoration: none;
|
411
|
+
}
|
412
|
+
|
413
|
+
#sidebar ul.navigation li a {
|
414
|
+
display: block;
|
415
|
+
padding: 7px 15px;
|
416
|
+
}
|
417
|
+
|
418
|
+
#sidebar ul {
|
419
|
+
list-style-type:none;
|
420
|
+
margin:0;
|
421
|
+
padding:0;
|
422
|
+
}
|
423
|
+
|
424
|
+
#sidebar .module {
|
425
|
+
margin-bottom: 20px;
|
426
|
+
}
|
427
|
+
|
428
|
+
#sidebar .content {
|
429
|
+
padding: 0 15px;
|
430
|
+
}
|
431
|
+
|
432
|
+
#sidebar .notice {
|
433
|
+
background-color: #fff;
|
434
|
+
padding: 10px 0;
|
435
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
436
|
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
437
|
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
438
|
+
}
|
439
|
+
|
440
|
+
#sidebar .notice h2, #sidebar .plain h2 {
|
441
|
+
border-bottom: none;
|
442
|
+
padding-bottom: 0;
|
443
|
+
}
|
444
|
+
/* @end */
|
data/test/helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: app-themer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 3
|
8
|
+
- 5
|
9
|
+
version: 0.3.5
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Matthew Hager
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-10-18 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: thoughtbot-shoulda
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
33
|
+
description: HTML5 web app theme generator for rails projects
|
34
|
+
email: matthew@poeticsystems.com
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- LICENSE
|
41
|
+
- README.md
|
42
|
+
files:
|
43
|
+
- .document
|
44
|
+
- .gitignore
|
45
|
+
- LICENSE
|
46
|
+
- README.md
|
47
|
+
- Rakefile
|
48
|
+
- VERSION
|
49
|
+
- app-themer.gemspec
|
50
|
+
- images/avatar.png
|
51
|
+
- images/icons/application_edit.png
|
52
|
+
- images/icons/cross.png
|
53
|
+
- images/icons/key.png
|
54
|
+
- images/icons/tick.png
|
55
|
+
- index.html
|
56
|
+
- javascripts/dd_belatedpng.js
|
57
|
+
- javascripts/modernizr-1.5.min.js
|
58
|
+
- lib/app_themer.rb
|
59
|
+
- lib/generators/app_themer/layout/layout_generator.rb
|
60
|
+
- lib/generators/app_themer/layout/templates/admin.html.erb
|
61
|
+
- lib/generators/app_themer/layout/templates/login.html.erb
|
62
|
+
- lib/generators/app_themer/views/templates/_form.html.erb
|
63
|
+
- lib/generators/app_themer/views/templates/_sidebar.html.erb
|
64
|
+
- lib/generators/app_themer/views/templates/edit.html.erb
|
65
|
+
- lib/generators/app_themer/views/templates/new.html.erb
|
66
|
+
- lib/generators/app_themer/views/templates/show.html.erb
|
67
|
+
- lib/generators/app_themer/views/templates/tables.html.erb
|
68
|
+
- lib/generators/app_themer/views/templates/text.html.erb
|
69
|
+
- lib/generators/app_themer/views/views_generator.rb
|
70
|
+
- stylesheets/base.css
|
71
|
+
- stylesheets/handheld.css
|
72
|
+
- stylesheets/override.css
|
73
|
+
- stylesheets/themes/default/images/arrow.png
|
74
|
+
- stylesheets/themes/default/images/boxbar-background.png
|
75
|
+
- stylesheets/themes/default/images/button-background-active.png
|
76
|
+
- stylesheets/themes/default/images/button-background.png
|
77
|
+
- stylesheets/themes/default/images/menubar-background.png
|
78
|
+
- stylesheets/themes/default/style.css
|
79
|
+
- test/helper.rb
|
80
|
+
- test/test_app-themer.rb
|
81
|
+
has_rdoc: true
|
82
|
+
homepage: http://github.com/PoeticSystems/app-themer
|
83
|
+
licenses: []
|
84
|
+
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options:
|
87
|
+
- --charset=UTF-8
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
106
|
+
requirements: []
|
107
|
+
|
108
|
+
rubyforge_project:
|
109
|
+
rubygems_version: 1.3.7
|
110
|
+
signing_key:
|
111
|
+
specification_version: 3
|
112
|
+
summary: HTML5 web app theme generator for rails projects
|
113
|
+
test_files:
|
114
|
+
- test/helper.rb
|
115
|
+
- test/test_app-themer.rb
|