pixelearth 3.2.2 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/bgs/tan_textured.png +0 -0
- data/app/assets/images/icons/aa.gif +0 -0
- data/app/assets/images/icons/accept.png +0 -0
- data/app/assets/images/icons/arrow.png +0 -0
- data/app/assets/images/icons/back.png +0 -0
- data/app/assets/images/icons/block.png +0 -0
- data/app/assets/images/icons/coupon.png +0 -0
- data/app/assets/images/icons/destroy.png +0 -0
- data/app/assets/images/icons/dialog.png +0 -0
- data/app/assets/images/icons/download.png +0 -0
- data/app/assets/images/icons/edit.png +0 -0
- data/app/assets/images/icons/help.png +0 -0
- data/app/assets/images/icons/info.png +0 -0
- data/app/assets/images/icons/list_all.png +0 -0
- data/app/assets/images/icons/loading.gif +0 -0
- data/app/assets/images/icons/mail_send.png +0 -0
- data/app/assets/images/icons/new.png +0 -0
- data/app/assets/images/icons/next.png +0 -0
- data/app/assets/images/icons/no_avatar.jpg +0 -0
- data/app/assets/images/icons/process.png +0 -0
- data/app/assets/images/icons/show.png +0 -0
- data/app/assets/images/icons/spinning_wheel.gif +0 -0
- data/app/assets/images/icons/user.png +0 -0
- data/app/assets/images/icons/users.png +0 -0
- data/app/assets/images/icons/warning.png +0 -0
- data/app/assets/images/icons/wrench.png +0 -0
- data/app/assets/javascripts/application.js +9 -0
- data/app/assets/stylesheets/admin_layout.css.scss.erb +91 -0
- data/app/assets/stylesheets/defaults.css.scss.erb +26 -0
- data/app/assets/stylesheets/manifest_admin.css +11 -0
- data/app/assets/stylesheets/manifest_common.css +15 -0
- data/app/assets/stylesheets/pagination_will_paginate.scss.erb +68 -0
- data/app/assets/stylesheets/portable.css.scss.erb +151 -0
- data/app/assets/stylesheets/reset.css.scss.erb +50 -0
- data/app/assets/stylesheets/scaffolds.css.scss +58 -0
- data/app/assets/stylesheets/simple_form.scss +76 -0
- data/app/assets/stylesheets/validation_errors.scss +35 -0
- data/app/controllers/pixelearth_base/application_controller.rb +5 -0
- data/app/helpers/admin_panel_helpers.rb +13 -0
- data/app/helpers/application_controller_instance_methods_and_helpers.rb +8 -0
- data/app/helpers/controller_helpers.rb +128 -0
- data/app/helpers/layout_helpers.rb +5 -0
- data/app/helpers/pixelearth_base/application_helper.rb +6 -0
- data/app/helpers/view_helpers.rb +66 -0
- data/app/views/layouts/admin.html.haml +76 -0
- data/app/views/layouts/application.html.haml +61 -0
- data/app/views/pixelearth_base/_pagination.html.haml +8 -0
- data/app/views/pixelearth_base/admin/_admin_buttons.html.haml +20 -0
- data/app/views/pixelearth_base/admin/_form_errors.html.haml +8 -0
- data/app/views/pixelearth_base/admin/_show_edit_destroy.html.haml +6 -0
- data/config/initializers/active_record.rb +23 -0
- data/config/initializers/application_controller_additions.rb +31 -0
- data/config/initializers/date_formats.rb +5 -0
- data/config/initializers/rails_core_mods.rb +0 -0
- data/config/initializers/ruby_core_mods.rb +30 -0
- data/config/initializers/string.rb +22 -0
- data/config/routes.rb +0 -0
- data/lib/generators/project_files/templates/images/icons/aa.gif +0 -0
- data/lib/pixelearth.rb +4 -9
- data/lib/pixelearth/version.rb +1 -1
- data/lib/required/string.rb +3 -0
- metadata +61 -3
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require jquery_ujs
|
9
|
+
//= require_tree .
|
@@ -0,0 +1,91 @@
|
|
1
|
+
body {
|
2
|
+
font-family: Helvetica;
|
3
|
+
background-color: #222;
|
4
|
+
padding:0;margin:0;
|
5
|
+
font-size:12px;
|
6
|
+
}
|
7
|
+
h1 {
|
8
|
+
font-size: 170%;
|
9
|
+
}
|
10
|
+
#head {
|
11
|
+
color: #eee;
|
12
|
+
padding: 0 20px;
|
13
|
+
b {
|
14
|
+
color: orange
|
15
|
+
}
|
16
|
+
#page {
|
17
|
+
background: url(<%= asset_data_uri 'icons/wrench.png' %>) center left no-repeat;
|
18
|
+
padding-left:30px;
|
19
|
+
float: left;
|
20
|
+
}
|
21
|
+
#layout {
|
22
|
+
float:right;
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
26
|
+
#container {
|
27
|
+
background: #999 url(<%= asset_data_uri 'bgs/tan_textured.png' %>);
|
28
|
+
padding: 20px;
|
29
|
+
}
|
30
|
+
#content {
|
31
|
+
width: 77%;
|
32
|
+
float: left;
|
33
|
+
|
34
|
+
.section {
|
35
|
+
background-color: white;
|
36
|
+
padding: 10px;
|
37
|
+
}
|
38
|
+
|
39
|
+
}
|
40
|
+
#nav {
|
41
|
+
width: 20%;
|
42
|
+
float: right;
|
43
|
+
h3 {
|
44
|
+
border-bottom: 1px solid #444;
|
45
|
+
padding-bottom: 10px;
|
46
|
+
margin-bottom:10px;
|
47
|
+
}
|
48
|
+
ul {
|
49
|
+
list-style-type:none;
|
50
|
+
padding: 0;
|
51
|
+
|
52
|
+
li {
|
53
|
+
background: url(<%= asset_data_uri 'icons/arrow.png' %>) center left no-repeat;
|
54
|
+
padding: 10px 0 10px 20px;
|
55
|
+
border-bottom: 1px dashed #444;
|
56
|
+
|
57
|
+
&:hover {
|
58
|
+
background-position: 3px center ;
|
59
|
+
padding: 10px 0 10px 23px;
|
60
|
+
}
|
61
|
+
a {
|
62
|
+
color: #444;
|
63
|
+
text-shadow: 0 1px 0 white;
|
64
|
+
text-decoration:none;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
a {
|
71
|
+
color:orange;
|
72
|
+
text-decoration:none;
|
73
|
+
&:hover {
|
74
|
+
border-bottom: 1px dashed orange
|
75
|
+
}
|
76
|
+
}
|
77
|
+
#debug_box {
|
78
|
+
color: #444;
|
79
|
+
&:hover {
|
80
|
+
color: #eee;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.show_edit_destroy_box {
|
85
|
+
text-align:right;
|
86
|
+
|
87
|
+
img {
|
88
|
+
width:20px;
|
89
|
+
height:20px;
|
90
|
+
}
|
91
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
h1, h2, h3, h4, h5 {
|
2
|
+
font-weight:800;
|
3
|
+
margin:15px 0;
|
4
|
+
}
|
5
|
+
b {
|
6
|
+
font-weight:800;
|
7
|
+
}
|
8
|
+
|
9
|
+
h1 {
|
10
|
+
font-size:130%;
|
11
|
+
}
|
12
|
+
h2 {
|
13
|
+
font-size:120%;
|
14
|
+
}
|
15
|
+
h3 {
|
16
|
+
font-size:110%;
|
17
|
+
}
|
18
|
+
h4 {
|
19
|
+
font-size:104%;
|
20
|
+
}
|
21
|
+
p {
|
22
|
+
padding: 10px 0;
|
23
|
+
}
|
24
|
+
li {
|
25
|
+
padding:5px 0;
|
26
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* make sure to require this in application.css
|
3
|
+
*
|
4
|
+
*= require_self
|
5
|
+
*= require reset
|
6
|
+
*= require defaults
|
7
|
+
*= require pagination_will_paginate
|
8
|
+
*= require portable
|
9
|
+
*= require scaffolds
|
10
|
+
*= require simple_form
|
11
|
+
*= require validation_errors
|
12
|
+
|
13
|
+
*/
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
.pagination_bar {
|
2
|
+
margin: 10px 0;
|
3
|
+
padding: 10px;
|
4
|
+
background: #f0f0f0;
|
5
|
+
|
6
|
+
.info {
|
7
|
+
margin-top: 5px;
|
8
|
+
font-size: 90%;
|
9
|
+
}
|
10
|
+
.pagination {
|
11
|
+
|
12
|
+
float: right;
|
13
|
+
|
14
|
+
a, span, em {
|
15
|
+
padding: 5px 10px;
|
16
|
+
display: block;
|
17
|
+
float: left;
|
18
|
+
margin-right: 4px;
|
19
|
+
}
|
20
|
+
.disabled {
|
21
|
+
color: #999999;
|
22
|
+
}
|
23
|
+
.current {
|
24
|
+
font-style: normal;
|
25
|
+
font-weight: bold;
|
26
|
+
}
|
27
|
+
|
28
|
+
a {
|
29
|
+
background-color: white;
|
30
|
+
text-decoration: none;
|
31
|
+
color: #444;
|
32
|
+
}
|
33
|
+
|
34
|
+
.current, a:hover, a:focus {
|
35
|
+
background-color: #9b3e44;
|
36
|
+
color: white;
|
37
|
+
}
|
38
|
+
|
39
|
+
.page_info {
|
40
|
+
background: #2e6ab1;
|
41
|
+
color: white;
|
42
|
+
padding: 0.4em 0.6em;
|
43
|
+
width: 22em;
|
44
|
+
margin-bottom: 0.3em;
|
45
|
+
text-align: center;
|
46
|
+
|
47
|
+
b {
|
48
|
+
color: #000033;
|
49
|
+
background: #2e6ab1 + 60;
|
50
|
+
padding: 0.1em 0.25em;
|
51
|
+
};
|
52
|
+
}
|
53
|
+
|
54
|
+
&:after {
|
55
|
+
content: ".";
|
56
|
+
display: block;
|
57
|
+
height: 0;
|
58
|
+
clear: both;
|
59
|
+
visibility: hidden;
|
60
|
+
}
|
61
|
+
* html & {
|
62
|
+
height: 1%;
|
63
|
+
}
|
64
|
+
*:first-child+html & {
|
65
|
+
overflow: hidden;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
|
2
|
+
table {
|
3
|
+
|
4
|
+
}
|
5
|
+
table td, table th {
|
6
|
+
padding:5px 10px;
|
7
|
+
vertical-align:top;
|
8
|
+
}
|
9
|
+
table th {
|
10
|
+
background-color:#F9F9F9;
|
11
|
+
border-bottom:1px solid #cccccc;
|
12
|
+
text-align:left;
|
13
|
+
font-weight:800;
|
14
|
+
}
|
15
|
+
table tr {
|
16
|
+
background-color:#fafafa;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
table.data {
|
21
|
+
width:100%;
|
22
|
+
|
23
|
+
a.order_by_link {
|
24
|
+
display: inline-block;
|
25
|
+
}
|
26
|
+
a.order_by_link.asc {
|
27
|
+
background: url('/assets/images/portable/icons/sort_asc.jpg') left 0px no-repeat;
|
28
|
+
padding-left:15px;
|
29
|
+
}
|
30
|
+
a.order_by_link.desc {
|
31
|
+
background: url('/assets/images/portable/icons/sort_desc.jpg') left 0px no-repeat;
|
32
|
+
padding-left:15px;
|
33
|
+
}
|
34
|
+
tr.b {
|
35
|
+
background-color:#FBFBE3;
|
36
|
+
}
|
37
|
+
tr:hover {
|
38
|
+
background-color:#d8f8ff;
|
39
|
+
background-color:#eff2fc;
|
40
|
+
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
br.clear {
|
46
|
+
clear:both;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
/* -------------------------- COLS ------------------------------ */
|
51
|
+
.col {
|
52
|
+
margin-right:10px;
|
53
|
+
margin-bottom:10px;
|
54
|
+
-moz-box-sizing: border-box;
|
55
|
+
-webkit-box-sizing: border-box;
|
56
|
+
box-sizing: border-box;
|
57
|
+
}
|
58
|
+
.col:last-child {
|
59
|
+
margin-right:0px;
|
60
|
+
}
|
61
|
+
|
62
|
+
.col_of_2 {
|
63
|
+
width: 50%;
|
64
|
+
float:left;
|
65
|
+
}
|
66
|
+
|
67
|
+
.col_of_3 {
|
68
|
+
width: 32%;
|
69
|
+
float:left;
|
70
|
+
}
|
71
|
+
|
72
|
+
.col_of_4 {
|
73
|
+
width: 24%;
|
74
|
+
float:left;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* -------------------------- BOXES ------------------------------ */
|
78
|
+
.liner {
|
79
|
+
padding:13px;
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
.success_box, .flash_success {
|
84
|
+
padding:15px 15px 15px 55px;
|
85
|
+
background:#f0f8e9 url('/assets/images/portable/icons/accept.png') 3px 30% no-repeat;
|
86
|
+
border-top:1px solid #4E8B1C;
|
87
|
+
border-bottom:1px solid #4E8B1C;
|
88
|
+
margin:10px 0;
|
89
|
+
color: #4E8B1C;
|
90
|
+
}
|
91
|
+
.warning_box, .flash_warn {
|
92
|
+
padding:15px 15px 15px 55px;
|
93
|
+
background:#FFF8EB url('/assets/images/portable/icons/warning.png') 3px 30% no-repeat;
|
94
|
+
border-top:1px solid #EF9C0C;
|
95
|
+
border-bottom:1px solid #EF9C0C;
|
96
|
+
margin:10px 0;
|
97
|
+
color: #EF9C0C;
|
98
|
+
}
|
99
|
+
.fail_box, .flash_error {
|
100
|
+
padding:15px 15px 15px 55px;
|
101
|
+
background:#FEF2F2 url('/assets/images/portable/icons/fail.png') 7px 5px no-repeat;
|
102
|
+
background:#FEF2F2 url('/assets/images/portable/delete.png') 3px 30% no-repeat;
|
103
|
+
border-top:1px solid #e30707;
|
104
|
+
border-bottom:1px solid #e30707;
|
105
|
+
margin:10px 0;
|
106
|
+
color: #e30707;
|
107
|
+
}
|
108
|
+
.info_box, .flash_notice, .flash_alert {
|
109
|
+
padding:15px 15px 15px 55px;
|
110
|
+
background:#FFFFDD url('/assets/images/portable/icons/info.png') 3px 30% no-repeat;
|
111
|
+
border-top:1px solid #297F8B;
|
112
|
+
border-bottom:1px solid #297F8B;
|
113
|
+
margin:10px 0;
|
114
|
+
color:#003D7F;
|
115
|
+
}
|
116
|
+
.generic_box { /*has no image defined*/
|
117
|
+
padding:15px 15px 15px 55px;
|
118
|
+
background-color:#FFFFDD;
|
119
|
+
background-position: 7px 7px;
|
120
|
+
background-repeat: no-repeat;
|
121
|
+
border-top:1px solid silver;
|
122
|
+
border-bottom:1px solid silver;
|
123
|
+
margin:10px 0;
|
124
|
+
color:gray;
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
/* -------------------------- on dark bgs ------------------------------ */
|
129
|
+
|
130
|
+
.dark {
|
131
|
+
color:white;
|
132
|
+
strong, b, .label {
|
133
|
+
color:white;
|
134
|
+
}
|
135
|
+
a, a:hover, a:visited
|
136
|
+
{
|
137
|
+
color:orange;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.light{
|
142
|
+
color:#333333;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
/* -------------------------- admin ------------------------------ */
|
148
|
+
|
149
|
+
.admin_buttons {
|
150
|
+
margin: 20px 0;
|
151
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
2
|
+
v2.0 | 20110126
|
3
|
+
License: none (public domain)
|
4
|
+
*/
|
5
|
+
|
6
|
+
html, body, div, span, applet, object, iframe,
|
7
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
8
|
+
a, abbr, acronym, address, big, cite, code,
|
9
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
10
|
+
small, strike, strong, sub, sup, tt, var,
|
11
|
+
b, u, i, center,
|
12
|
+
dl, dt, dd, ol, ul, li,
|
13
|
+
fieldset, form, label, legend,
|
14
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
15
|
+
article, aside, canvas, details, embed,
|
16
|
+
figure, figcaption, footer, header, hgroup,
|
17
|
+
menu, nav, output, ruby, section, summary,
|
18
|
+
time, mark, audio, video {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
border: 0;
|
22
|
+
font-size: 100%;
|
23
|
+
font: inherit;
|
24
|
+
vertical-align: baseline;
|
25
|
+
}
|
26
|
+
/* HTML5 display-role reset for older browsers */
|
27
|
+
article, aside, details, figcaption, figure,
|
28
|
+
footer, header, hgroup, menu, nav, section {
|
29
|
+
display: block;
|
30
|
+
}
|
31
|
+
body {
|
32
|
+
line-height: 1;
|
33
|
+
}
|
34
|
+
ol, ul {
|
35
|
+
list-style: none;
|
36
|
+
}
|
37
|
+
blockquote, q {
|
38
|
+
quotes: none;
|
39
|
+
}
|
40
|
+
blockquote:before, blockquote:after,
|
41
|
+
q:before, q:after {
|
42
|
+
content: '';
|
43
|
+
content: none;
|
44
|
+
}
|
45
|
+
table {
|
46
|
+
border-collapse: collapse;
|
47
|
+
border-spacing: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
|