caboose-store 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +113 -0
- data/Rakefile +38 -0
- data/app/assets/images/caboose_store/caboose_logo_small.png +0 -0
- data/app/assets/images/caboose_store/caboose_nav.png +0 -0
- data/app/assets/images/caboose_store/caboose_nav_black.png +0 -0
- data/app/assets/images/caboose_store/default_user_pic.png +0 -0
- data/app/assets/images/caboose_store/loading_green.gif +0 -0
- data/app/assets/images/caboose_store/loading_small_white_on_black.gif +0 -0
- data/app/assets/images/caboose_store/loading_white_on_black.gif +0 -0
- data/app/assets/javascripts/caboose_store/admin.js +20 -0
- data/app/assets/javascripts/caboose_store/application.js +17 -0
- data/app/assets/javascripts/caboose_store/modal.js +52 -0
- data/app/assets/javascripts/caboose_store/modal_integration.js +25 -0
- data/app/assets/javascripts/caboose_store/model.form.page.js +30 -0
- data/app/assets/javascripts/caboose_store/model.form.user.js +36 -0
- data/app/assets/javascripts/caboose_store/shortcut.js +11 -0
- data/app/assets/javascripts/caboose_store/station.js +60 -0
- data/app/assets/stylesheets/caboose_store/admin.css +100 -0
- data/app/assets/stylesheets/caboose_store/application.css +19 -0
- data/app/assets/stylesheets/caboose_store/bound_input.css +1 -0
- data/app/assets/stylesheets/caboose_store/caboose.css +4 -0
- data/app/assets/stylesheets/caboose_store/fonts/big_noodle_titling.ttf +0 -0
- data/app/assets/stylesheets/caboose_store/fonts/big_noodle_titling_oblique.ttf +0 -0
- data/app/assets/stylesheets/caboose_store/fonts.css +5 -0
- data/app/assets/stylesheets/caboose_store/login.css +23 -0
- data/app/assets/stylesheets/caboose_store/modal.css +240 -0
- data/app/assets/stylesheets/caboose_store/page_bar_generator.css +34 -0
- data/app/assets/stylesheets/caboose_store/register.css +25 -0
- data/app/assets/stylesheets/caboose_store/station_modal.css +104 -0
- data/app/assets/stylesheets/caboose_store/station_sidebar.css +232 -0
- data/app/assets/stylesheets/caboose_store/tinymce.css +25 -0
- data/app/controllers/caboose_store/application_controller.rb +18 -0
- data/app/controllers/caboose_store/cart_controller.rb +59 -0
- data/app/controllers/caboose_store/categories_controller.rb +128 -0
- data/app/controllers/caboose_store/checkout_controller.rb +164 -0
- data/app/controllers/caboose_store/orders_controller.rb +264 -0
- data/app/controllers/caboose_store/product_images_controller.rb +38 -0
- data/app/controllers/caboose_store/products_controller.rb +387 -0
- data/app/controllers/caboose_store/reviews_controller.rb +15 -0
- data/app/controllers/caboose_store/variants_controller.rb +152 -0
- data/app/helpers/caboose_store/application_helper.rb +46 -0
- data/app/helpers/caboose_store/cart_helper.rb +28 -0
- data/app/helpers/caboose_store/categories_helper.rb +38 -0
- data/app/helpers/caboose_store/products_helper.rb +87 -0
- data/app/mailers/caboose_store/orders_mailer.rb +36 -0
- data/app/models/caboose_store/address.rb +30 -0
- data/app/models/caboose_store/caboose_store_plugin.rb +22 -0
- data/app/models/caboose_store/category.rb +63 -0
- data/app/models/caboose_store/category_membership.rb +11 -0
- data/app/models/caboose_store/discount.rb +14 -0
- data/app/models/caboose_store/message.rb +22 -0
- data/app/models/caboose_store/order.rb +97 -0
- data/app/models/caboose_store/order_discount.rb +11 -0
- data/app/models/caboose_store/order_line_item.rb +13 -0
- data/app/models/caboose_store/order_pdf.rb +82 -0
- data/app/models/caboose_store/product.rb +78 -0
- data/app/models/caboose_store/product_image.rb +25 -0
- data/app/models/caboose_store/product_image_variant.rb +10 -0
- data/app/models/caboose_store/review.rb +13 -0
- data/app/models/caboose_store/schema.rb +146 -0
- data/app/models/caboose_store/shipping_calculator.rb +79 -0
- data/app/models/caboose_store/states.rb +60 -0
- data/app/models/caboose_store/tax_calculator.rb +26 -0
- data/app/models/caboose_store/tax_line.rb +12 -0
- data/app/models/caboose_store/variant.rb +42 -0
- data/app/models/caboose_store/vendor.rb +7 -0
- data/app/views/caboose_store/application/_category_thumb.html.erb +6 -0
- data/app/views/caboose_store/application/_product_thumb.html.erb +13 -0
- data/app/views/caboose_store/cart/index.html.erb +19 -0
- data/app/views/caboose_store/categories/admin_edit.html.erb +82 -0
- data/app/views/caboose_store/categories/admin_index.html.erb +13 -0
- data/app/views/caboose_store/categories/admin_new.html.erb +45 -0
- data/app/views/caboose_store/checkout/billing.html.erb +168 -0
- data/app/views/caboose_store/checkout/discount.html.erb +166 -0
- data/app/views/caboose_store/checkout/index.html.erb +113 -0
- data/app/views/caboose_store/checkout/quantity_box.html.erb +39 -0
- data/app/views/caboose_store/checkout/shipping.html.erb +90 -0
- data/app/views/caboose_store/checkout/thank_you.html.erb +36 -0
- data/app/views/caboose_store/layouts/_banner.html.erb +10 -0
- data/app/views/caboose_store/layouts/_banner2.html.erb +10 -0
- data/app/views/caboose_store/layouts/_footer.html.erb +55 -0
- data/app/views/caboose_store/layouts/_header.html.erb +69 -0
- data/app/views/caboose_store/layouts/_sidebar.html.erb +27 -0
- data/app/views/caboose_store/layouts/application.html.erb +33 -0
- data/app/views/caboose_store/layouts/authorize_net.erb +18 -0
- data/app/views/caboose_store/layouts/layout_about.html.erb +42 -0
- data/app/views/caboose_store/layouts/layout_blog.html.erb +159 -0
- data/app/views/caboose_store/layouts/layout_confirm.html.erb +85 -0
- data/app/views/caboose_store/layouts/layout_contact.html.erb +38 -0
- data/app/views/caboose_store/layouts/layout_default.html.erb +10 -0
- data/app/views/caboose_store/layouts/layout_detail.html.erb +114 -0
- data/app/views/caboose_store/layouts/layout_order.html.erb +77 -0
- data/app/views/caboose_store/layouts/layout_pricing.html.erb +182 -0
- data/app/views/caboose_store/layouts/layout_product.html.erb +110 -0
- data/app/views/caboose_store/layouts/layout_profile.html.erb +55 -0
- data/app/views/caboose_store/layouts/layout_single.html.erb +3 -0
- data/app/views/caboose_store/layouts/layout_testimonial.html.erb +110 -0
- data/app/views/caboose_store/layouts/layout_testing.html.erb +4 -0
- data/app/views/caboose_store/orders/_admin_footer.html.erb +2 -0
- data/app/views/caboose_store/orders/_admin_header.html.erb +31 -0
- data/app/views/caboose_store/orders/_quickbooks_order.html.erb +0 -0
- data/app/views/caboose_store/orders/admin_delete_form.html.erb +21 -0
- data/app/views/caboose_store/orders/admin_edit.html.erb +173 -0
- data/app/views/caboose_store/orders/admin_index.html.erb +79 -0
- data/app/views/caboose_store/orders/admin_new.html.erb +42 -0
- data/app/views/caboose_store/orders/admin_print.html.erb +72 -0
- data/app/views/caboose_store/orders_mailer/customer_new_order.html.erb +47 -0
- data/app/views/caboose_store/orders_mailer/customer_status_updated.html.erb +49 -0
- data/app/views/caboose_store/orders_mailer/fulfillment_new_order.html.erb +43 -0
- data/app/views/caboose_store/orders_mailer/shipping_order_ready.html.erb +46 -0
- data/app/views/caboose_store/products/_admin_footer.html.erb +2 -0
- data/app/views/caboose_store/products/_admin_header.html.erb +31 -0
- data/app/views/caboose_store/products/admin_delete_form.html.erb +21 -0
- data/app/views/caboose_store/products/admin_edit_categories.html.erb +73 -0
- data/app/views/caboose_store/products/admin_edit_category_images.html.erb +233 -0
- data/app/views/caboose_store/products/admin_edit_description.html.erb +41 -0
- data/app/views/caboose_store/products/admin_edit_general.html.erb +47 -0
- data/app/views/caboose_store/products/admin_edit_images.html.erb +234 -0
- data/app/views/caboose_store/products/admin_edit_options.html.erb +51 -0
- data/app/views/caboose_store/products/admin_edit_seo.html.erb +37 -0
- data/app/views/caboose_store/products/admin_edit_variant_columns.html.erb +75 -0
- data/app/views/caboose_store/products/admin_edit_variants.html.erb +101 -0
- data/app/views/caboose_store/products/admin_edit_variants_single.html.erb +68 -0
- data/app/views/caboose_store/products/admin_index.html.erb +47 -0
- data/app/views/caboose_store/products/admin_new.html.erb +41 -0
- data/app/views/caboose_store/products/details.html.erb +437 -0
- data/app/views/caboose_store/products/index.html.erb +46 -0
- data/app/views/caboose_store/products/not_available.html.erb +35 -0
- data/app/views/caboose_store/variants/admin_edit.html.erb +80 -0
- data/app/views/caboose_store/variants/admin_new.html.erb +59 -0
- data/config/routes.rb +95 -0
- data/lib/caboose-store/caboose_store_helper.rb +35 -0
- data/lib/caboose-store/engine.rb +8 -0
- data/lib/caboose-store/version.rb +3 -0
- data/lib/caboose-store.rb +9 -0
- data/lib/tasks/caboose-store.rake +17 -0
- data/test/caboose_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +25 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +260 -0
@@ -0,0 +1,240 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require colorbox-rails
|
12
|
+
*= require modeljs
|
13
|
+
*= require caboose/fonts
|
14
|
+
*= require caboose/caboose
|
15
|
+
*/
|
16
|
+
|
17
|
+
body {
|
18
|
+
background: #111111;
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
color: #fff;
|
22
|
+
width: 100%;
|
23
|
+
font-family: Helvetica, Arial;
|
24
|
+
}
|
25
|
+
|
26
|
+
#modal_wrapper {
|
27
|
+
width: 100%;
|
28
|
+
position: relative;
|
29
|
+
}
|
30
|
+
|
31
|
+
#modal_content {
|
32
|
+
width: 100%;
|
33
|
+
padding: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
#modal_content h1 {
|
37
|
+
margin: 0 0 12px 0;
|
38
|
+
padding: 0;
|
39
|
+
font-weight: normal;
|
40
|
+
background: #111111;
|
41
|
+
}
|
42
|
+
|
43
|
+
#modal_content a {
|
44
|
+
color: #ccc;
|
45
|
+
text-decoration: none;
|
46
|
+
border-bottom: #999 1px dotted;
|
47
|
+
}
|
48
|
+
|
49
|
+
#modal_content p.loading {
|
50
|
+
background-image: url('/assets/caboose/loading_white_on_black.gif');
|
51
|
+
background-position: 0 center;
|
52
|
+
background-repeat: no-repeat;
|
53
|
+
color: #ccc;
|
54
|
+
font-weight: normal;
|
55
|
+
font-size: 16pt;
|
56
|
+
padding: 10px 10px 10px 40px;
|
57
|
+
}
|
58
|
+
|
59
|
+
#modal_content div.yesnobox {
|
60
|
+
position: absolute;
|
61
|
+
top: 0;
|
62
|
+
left: 0;
|
63
|
+
z-index: 22;
|
64
|
+
background-color: rgba(0, 0, 0, 0.9);
|
65
|
+
font-size: 20px;
|
66
|
+
text-align: center;
|
67
|
+
}
|
68
|
+
|
69
|
+
#modal_content div.yesnobox div {
|
70
|
+
padding: 20px;
|
71
|
+
}
|
72
|
+
|
73
|
+
#modal_content div.yesnobox input {
|
74
|
+
width: auto;
|
75
|
+
}
|
76
|
+
|
77
|
+
div.model_attribute_text {
|
78
|
+
color: #000;
|
79
|
+
}
|
80
|
+
|
81
|
+
#modal_content div.top_right_controls {
|
82
|
+
position: absolute;
|
83
|
+
top: 0;
|
84
|
+
right: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
#modal_content div.top_right_controls a {
|
88
|
+
display: inline-block;
|
89
|
+
margin: 0;
|
90
|
+
padding: 4px 8px;
|
91
|
+
}
|
92
|
+
|
93
|
+
input, select, textarea {
|
94
|
+
font-family: Helvetica, arial;
|
95
|
+
border: 1px solid #ccc;
|
96
|
+
-moz-border-radius: 2px;
|
97
|
+
-webkit-border-radius: 2px;
|
98
|
+
border-radius: 2px;
|
99
|
+
padding: 4px 8px;
|
100
|
+
height: 34px;
|
101
|
+
font-size: 20px;
|
102
|
+
z-index: 20;
|
103
|
+
}
|
104
|
+
|
105
|
+
input.dirty,
|
106
|
+
textarea.dirty {
|
107
|
+
background: #fff799;
|
108
|
+
}
|
109
|
+
|
110
|
+
select {
|
111
|
+
padding: 0;
|
112
|
+
height: 44px;
|
113
|
+
}
|
114
|
+
|
115
|
+
option {
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
select.fake {
|
120
|
+
background: transparent;
|
121
|
+
position: absolute;
|
122
|
+
top: 0;
|
123
|
+
left: 0;
|
124
|
+
color: transparent;
|
125
|
+
}
|
126
|
+
|
127
|
+
select.fake option {
|
128
|
+
background: #fff;
|
129
|
+
color: #000;
|
130
|
+
}
|
131
|
+
|
132
|
+
#modal_content .bound_input_check a,
|
133
|
+
#modal_content .bound_input_cancel a {
|
134
|
+
border: 1px solid #ccc;
|
135
|
+
-moz-border-radius: 2px;
|
136
|
+
-webkit-border-radius: 2px;
|
137
|
+
border-radius: 2px;
|
138
|
+
|
139
|
+
font-size: 28px;
|
140
|
+
text-align: center;
|
141
|
+
background: #00cc00;
|
142
|
+
color: #fff;
|
143
|
+
|
144
|
+
display: block;
|
145
|
+
padding: 4px 0;
|
146
|
+
height: 34px;
|
147
|
+
}
|
148
|
+
|
149
|
+
#modal_content .bound_input_check a.loading {
|
150
|
+
background-image: url(/assets/caboose/loading_green.gif);
|
151
|
+
background-color: #00cc00;
|
152
|
+
background-repeat: no-repeat;
|
153
|
+
background-position: 6px 5px;
|
154
|
+
color: rgba(255, 255, 255, 0.0);
|
155
|
+
}
|
156
|
+
|
157
|
+
#modal_content .bound_textarea_controls a {
|
158
|
+
display: inline-block;
|
159
|
+
margin: 3px 0 0 1px;
|
160
|
+
padding: 8px 0 6px 0;
|
161
|
+
background: #ccc;
|
162
|
+
color: #000;
|
163
|
+
text-align: center;
|
164
|
+
border: #666 1px solid;
|
165
|
+
}
|
166
|
+
|
167
|
+
#modal_content .bound_textarea_controls a.save { width: 60px; }
|
168
|
+
#modal_content .bound_textarea_controls a.discard { width: 80px; }
|
169
|
+
|
170
|
+
#modal_content .note,
|
171
|
+
#modal_content .error {
|
172
|
+
margin: 0;
|
173
|
+
}
|
174
|
+
|
175
|
+
#modal_content .placeholder {
|
176
|
+
display: block;
|
177
|
+
margin: 0;
|
178
|
+
padding: 0 5px 0 0;
|
179
|
+
height: 34px;
|
180
|
+
|
181
|
+
position: absolute;
|
182
|
+
top: 12px;
|
183
|
+
left: 10px;
|
184
|
+
z-index: 19;
|
185
|
+
}
|
186
|
+
|
187
|
+
#modal_content .placeholder span {
|
188
|
+
display: block;
|
189
|
+
font-size: 20px;
|
190
|
+
color: #757575;
|
191
|
+
}
|
192
|
+
|
193
|
+
#modal_content input[type='checkbox'] {
|
194
|
+
position: absolute;
|
195
|
+
top: 4px;
|
196
|
+
left: 0;
|
197
|
+
z-index: 19;
|
198
|
+
|
199
|
+
margin: 0;
|
200
|
+
padding: 0;
|
201
|
+
width: 20px;
|
202
|
+
}
|
203
|
+
|
204
|
+
#modal_content .search_form {
|
205
|
+
position: absolute;
|
206
|
+
top: 0;
|
207
|
+
right: 0;
|
208
|
+
}
|
209
|
+
|
210
|
+
#modal_content table.data th {
|
211
|
+
background: #222222;
|
212
|
+
border: #333 1px solid;
|
213
|
+
color: #fff;
|
214
|
+
}
|
215
|
+
|
216
|
+
#modal_content table.data td {
|
217
|
+
background: #111111;
|
218
|
+
border: #333 1px solid;
|
219
|
+
color: #fff;
|
220
|
+
}
|
221
|
+
|
222
|
+
/*******************************************************************************
|
223
|
+
Modeljs
|
224
|
+
*******************************************************************************/
|
225
|
+
|
226
|
+
#modal_content div.model_attribute_text {
|
227
|
+
color: #fff;
|
228
|
+
}
|
229
|
+
|
230
|
+
#modal_content .model_attribute {
|
231
|
+
background: none repeat scroll 0 0 transparent;
|
232
|
+
display: block;
|
233
|
+
padding: 2px 4px;
|
234
|
+
text-decoration: none;
|
235
|
+
}
|
236
|
+
|
237
|
+
#modal_content .clear {
|
238
|
+
clear: both;
|
239
|
+
line-height: 0;
|
240
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
.page_links {
|
3
|
+
|
4
|
+
}
|
5
|
+
|
6
|
+
.page_links a {
|
7
|
+
display: inline-block;
|
8
|
+
margin: 0 2px;
|
9
|
+
padding: 5px 8px 3px 8px;
|
10
|
+
|
11
|
+
border: #505050 1px solid;
|
12
|
+
background: #e1e1e1;
|
13
|
+
color: #505050;
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
|
+
|
17
|
+
.page_links a:hover {
|
18
|
+
background: #505050;
|
19
|
+
color: #fff;
|
20
|
+
}
|
21
|
+
|
22
|
+
.page_links .middle_links a {
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
.page_links span.current_page {
|
27
|
+
display: inline-block;
|
28
|
+
padding: 5px 8px 3px 8px;
|
29
|
+
|
30
|
+
border: #941403 1px solid;
|
31
|
+
background: #941403;
|
32
|
+
color: #fff;
|
33
|
+
text-decoration: none;
|
34
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
#register_form .other_options {
|
3
|
+
position: absolute;
|
4
|
+
top: -4px;
|
5
|
+
right: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
input#first_name,
|
9
|
+
input#last_name,
|
10
|
+
input#email,
|
11
|
+
input#pass1,
|
12
|
+
input#pass2 {
|
13
|
+
font-size: 18px;
|
14
|
+
width: 95%;
|
15
|
+
margin: 0 0 8px 0;
|
16
|
+
padding: 7px;
|
17
|
+
}
|
18
|
+
|
19
|
+
input#btn_register {
|
20
|
+
font-size: 18px;
|
21
|
+
}
|
22
|
+
|
23
|
+
input#btn_cancel {
|
24
|
+
font-size: 18px;
|
25
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
|
2
|
+
#station ul {
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
list-style: none;
|
6
|
+
}
|
7
|
+
|
8
|
+
#station ul li {
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
list-style: none;
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
#station ul a {
|
16
|
+
display: block !important;
|
17
|
+
position: relative;
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
color: #ccc;
|
21
|
+
text-decoration: none;
|
22
|
+
border: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
#station > ul > li > a {
|
26
|
+
width: 200px;
|
27
|
+
margin: 0;
|
28
|
+
padding: 0;
|
29
|
+
position: relative;
|
30
|
+
font-size: 16px;
|
31
|
+
}
|
32
|
+
|
33
|
+
#station > ul > li > a span.text {
|
34
|
+
display: block !important;
|
35
|
+
margin: 0 0 0 54px;
|
36
|
+
padding: 20px 0 0 0;
|
37
|
+
height: 30px;
|
38
|
+
font-size: 16px;
|
39
|
+
}
|
40
|
+
|
41
|
+
#station > ul > li > a:hover { background: #000; }
|
42
|
+
#station > ul > li > a:active { background: #333; }
|
43
|
+
#station > ul > li.selected > a { background: #333; }
|
44
|
+
|
45
|
+
#station > ul > li > a:hover span.text { color: #fff; }
|
46
|
+
#station > ul > li > a:active span.text { color: #fff; }
|
47
|
+
#station > ul > li.selected > a span.text { color: #fff; }
|
48
|
+
|
49
|
+
#station > ul > li > a span.icon {
|
50
|
+
position: absolute;
|
51
|
+
top: 0;
|
52
|
+
left: 0;
|
53
|
+
display: block;
|
54
|
+
width: 50px;
|
55
|
+
height: 50px;
|
56
|
+
|
57
|
+
background-image: url('/assets/caboose/caboose_nav_black.png');
|
58
|
+
background-repeat: no-repeat;
|
59
|
+
background-position: 0 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
#station > ul > li > a span.icon { background-position: 0px -250px; }
|
63
|
+
#station > ul > li#nav_item_users > a span.icon { background-position: 0px 0px; }
|
64
|
+
#station > ul > li#nav_item_roles > a span.icon { background-position: 0px -50px; }
|
65
|
+
#station > ul > li#nav_item_permissions > a span.icon { background-position: 0px -100px; }
|
66
|
+
#station > ul > li#nav_item_pages > a span.icon { background-position: 0px -150px; }
|
67
|
+
#station > ul > li#nav_item_settings > a span.icon { background-position: 0px -200px; }
|
68
|
+
#station > ul > li#nav_item_star > a span.icon { background-position: 0px -250px; }
|
69
|
+
|
70
|
+
#station > ul > li > a:hover span.icon { background-position: -50px -250px; }
|
71
|
+
#station > ul > li#nav_item_users > a:hover span.icon { background-position: -50px 0px; }
|
72
|
+
#station > ul > li#nav_item_roles > a:hover span.icon { background-position: -50px -50px; }
|
73
|
+
#station > ul > li#nav_item_permissions > a:hover span.icon { background-position: -50px -100px; }
|
74
|
+
#station > ul > li#nav_item_pages > a:hover span.icon { background-position: -50px -150px; }
|
75
|
+
#station > ul > li#nav_item_settings > a:hover span.icon { background-position: -50px -200px; }
|
76
|
+
#station > ul > li#nav_item_star > a:hover span.icon { background-position: -50px -250px; }
|
77
|
+
|
78
|
+
#station > ul > li > a:active span.icon { background-position: -150px -250px; }
|
79
|
+
#station > ul > li#nav_item_users > a:active span.icon { background-position: -150px 0px; }
|
80
|
+
#station > ul > li#nav_item_roles > a:active span.icon { background-position: -150px -50px; }
|
81
|
+
#station > ul > li#nav_item_permissions > a:active span.icon { background-position: -150px -100px; }
|
82
|
+
#station > ul > li#nav_item_pages > a:active span.icon { background-position: -150px -150px; }
|
83
|
+
#station > ul > li#nav_item_settings > a:active span.icon { background-position: -150px -200px; }
|
84
|
+
#station > ul > li#nav_item_star > a:active span.icon { background-position: -150px -250px; }
|
85
|
+
|
86
|
+
#station > ul > li.selected > a span.icon { background-position: -150px -250px; }
|
87
|
+
#station > ul > li#nav_item_users.selected > a span.icon { background-position: -150px 0px; }
|
88
|
+
#station > ul > li#nav_item_roles.selected > a span.icon { background-position: -150px -50px; }
|
89
|
+
#station > ul > li#nav_item_permissions.selected > a span.icon { background-position: -150px -100px; }
|
90
|
+
#station > ul > li#nav_item_pages.selected > a span.icon { background-position: -150px -150px; }
|
91
|
+
#station > ul > li#nav_item_settings.selected > a span.icon { background-position: -150px -200px; }
|
92
|
+
#station > ul > li#nav_item_star.selected > a span.icon { background-position: -150px -250px; }
|
93
|
+
|
94
|
+
#station ul li ul {
|
95
|
+
position: absolute;
|
96
|
+
top: 0;
|
97
|
+
left: 200px;
|
98
|
+
border-left: #333 4px solid;
|
99
|
+
}
|
100
|
+
|
101
|
+
#station ul li ul li { width: 196px; margin: 0; padding: 0; }
|
102
|
+
#station ul li ul li a { color: #ccc; background: #000; display: block; margin: 0; padding: 10px 20px; }
|
103
|
+
#station ul li ul li a:hover { color: #fff; background: #000; }
|
104
|
+
#station ul li ul li a:active { color: #fff; background: #333; }
|
@@ -0,0 +1,232 @@
|
|
1
|
+
|
2
|
+
#caboose_white {
|
3
|
+
z-index: 99;
|
4
|
+
}
|
5
|
+
|
6
|
+
#caboose_station_wrapper {
|
7
|
+
display: none;
|
8
|
+
position: absolute;
|
9
|
+
top: 0;
|
10
|
+
right: 0;
|
11
|
+
z-index: 100;
|
12
|
+
width: 210px;
|
13
|
+
height: 100%;
|
14
|
+
overflow: hidden;
|
15
|
+
}
|
16
|
+
|
17
|
+
#caboose_station {
|
18
|
+
width: 208px;
|
19
|
+
height: 100%;
|
20
|
+
background: #e1e1e1;
|
21
|
+
border: #aaa 1px solid;
|
22
|
+
font-family: BigNoodleTitling, Tahoma;
|
23
|
+
}
|
24
|
+
|
25
|
+
#caboose_station .caboose_logo {
|
26
|
+
height: 100px;
|
27
|
+
background-image: url('/assets/caboose/caboose_nav.png');
|
28
|
+
background-position: 64px 0;
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
border-bottom: #aaa 1px solid;
|
32
|
+
}
|
33
|
+
|
34
|
+
#caboose_station h2 {
|
35
|
+
display: none;
|
36
|
+
height: 40px;
|
37
|
+
background-image: url('/assets/caboose/caboose_nav.png');
|
38
|
+
background-position: 64px 0;
|
39
|
+
margin: 0;
|
40
|
+
padding: 80px 0 0 0;
|
41
|
+
border-bottom: #aaa 1px solid;
|
42
|
+
|
43
|
+
/* Hide the text. */
|
44
|
+
/*
|
45
|
+
text-indent: 100%;
|
46
|
+
white-space: nowrap;
|
47
|
+
overflow: hidden;
|
48
|
+
*/
|
49
|
+
}
|
50
|
+
|
51
|
+
#caboose_station h2 span {
|
52
|
+
display: block;
|
53
|
+
color: #941403;
|
54
|
+
text-align: center;
|
55
|
+
font-size: 20px;
|
56
|
+
font-weight: normal;
|
57
|
+
background: #e1e1e1;
|
58
|
+
height: 40px;
|
59
|
+
}
|
60
|
+
|
61
|
+
#caboose_station ul.account {
|
62
|
+
margin: 0;
|
63
|
+
padding: 0;
|
64
|
+
list-style: none;
|
65
|
+
height: 33px;
|
66
|
+
}
|
67
|
+
|
68
|
+
#caboose_station ul.account li {
|
69
|
+
margin: 0;
|
70
|
+
padding: 0;
|
71
|
+
list-style: none;
|
72
|
+
float: left;
|
73
|
+
border: 0;
|
74
|
+
background: #ccc;
|
75
|
+
}
|
76
|
+
|
77
|
+
#caboose_station ul.account li a {
|
78
|
+
display: block;
|
79
|
+
margin: 0;
|
80
|
+
padding: 0;
|
81
|
+
height: 33px;
|
82
|
+
|
83
|
+
/* Hide the text. */
|
84
|
+
/*
|
85
|
+
text-indent: 100%;
|
86
|
+
white-space: nowrap;
|
87
|
+
overflow: hidden;
|
88
|
+
*/
|
89
|
+
font-family: BigNoodleTitling, Tahoma;
|
90
|
+
font-size: 16px;
|
91
|
+
color: #505050;
|
92
|
+
background: #aaa;
|
93
|
+
text-decoration: none;
|
94
|
+
text-align: center;
|
95
|
+
border-bottom: #cecece 1px solid;
|
96
|
+
}
|
97
|
+
#caboose_station ul.account li a span {
|
98
|
+
padding-top: 8px;
|
99
|
+
}
|
100
|
+
|
101
|
+
#caboose_station ul.account li.my_account a { width: 103px; border-right: #828181 1px solid; }
|
102
|
+
#caboose_station ul.account li.logout a { width: 103px; border-left: #cecece 1px solid; }
|
103
|
+
|
104
|
+
#caboose_station ul.account li a:hover {
|
105
|
+
color: #941403;
|
106
|
+
}
|
107
|
+
|
108
|
+
#caboose_station ul.admin {
|
109
|
+
margin: 0;
|
110
|
+
padding: 0;
|
111
|
+
list-style: none;
|
112
|
+
}
|
113
|
+
|
114
|
+
#caboose_station ul.admin li {
|
115
|
+
margin: 0;
|
116
|
+
padding: 0;
|
117
|
+
list-style: none;
|
118
|
+
}
|
119
|
+
|
120
|
+
#caboose_station ul.admin li ul {
|
121
|
+
margin: 0;
|
122
|
+
padding: 0;
|
123
|
+
list-style: none;
|
124
|
+
}
|
125
|
+
|
126
|
+
#caboose_station ul.admin a {
|
127
|
+
display: block !important;
|
128
|
+
margin: 1px 0 0 0;
|
129
|
+
padding: 8px 10px;
|
130
|
+
color: #505050;
|
131
|
+
text-decoration: none;
|
132
|
+
}
|
133
|
+
|
134
|
+
#caboose_station ul.admin a:hover {
|
135
|
+
color: #941403;
|
136
|
+
}
|
137
|
+
|
138
|
+
#caboose_station ul.admin li a.top_level {
|
139
|
+
background-image: url('/assets/caboose/caboose_nav.png');
|
140
|
+
background-repeat: no-repeat;
|
141
|
+
background-position: 0 0;
|
142
|
+
|
143
|
+
width: 208px;
|
144
|
+
height: 50px;
|
145
|
+
margin: 0;
|
146
|
+
padding: 0;
|
147
|
+
border-top: #f7f7f7 1px solid;
|
148
|
+
border-bottom: #aaa 1px solid;
|
149
|
+
position: relative;
|
150
|
+
|
151
|
+
/* Hide the text. */
|
152
|
+
/*
|
153
|
+
text-indent: 100%;
|
154
|
+
white-space: nowrap;
|
155
|
+
overflow: hidden;
|
156
|
+
*/
|
157
|
+
font-family: BigNoodleTitling, Tahoma;
|
158
|
+
font-size: 16px;
|
159
|
+
}
|
160
|
+
|
161
|
+
#caboose_station ul.admin li a.top_level span {
|
162
|
+
display: block !important;
|
163
|
+
margin: 0 0 0 60px;
|
164
|
+
padding: 16px 0 0 0;
|
165
|
+
height: 34px;
|
166
|
+
background: #e1e1e1;
|
167
|
+
vertical-align: middle;
|
168
|
+
font-family: BigNoodleTitling, Tahoma;
|
169
|
+
font-size: 16px;
|
170
|
+
}
|
171
|
+
#caboose_station ul.admin li a.top_level:hover span { color: #941403; }
|
172
|
+
#caboose_station ul.admin li a.top_level:active span { color: #941403; }
|
173
|
+
|
174
|
+
#caboose_station ul.admin li a.top_level { background-position: 0px -350px; }
|
175
|
+
#caboose_station ul.admin li#nav_item_users a.top_level { background-position: 0px -100px; }
|
176
|
+
#caboose_station ul.admin li#nav_item_roles a.top_level { background-position: 0px -150px; }
|
177
|
+
#caboose_station ul.admin li#nav_item_permissions a.top_level { background-position: 0px -200px; }
|
178
|
+
#caboose_station ul.admin li#nav_item_pages a.top_level { background-position: 0px -250px; }
|
179
|
+
#caboose_station ul.admin li#nav_item_settings a.top_level { background-position: 0px -300px; }
|
180
|
+
#caboose_station ul.admin li#nav_item_star a.top_level { background-position: 0px -350px; }
|
181
|
+
|
182
|
+
#caboose_station ul.admin li a.top_level:hover { background-position: -250px -350px; }
|
183
|
+
#caboose_station ul.admin li#nav_item_users a.top_level:hover { background-position: -250px -100px; }
|
184
|
+
#caboose_station ul.admin li#nav_item_roles a.top_level:hover { background-position: -250px -150px; }
|
185
|
+
#caboose_station ul.admin li#nav_item_permissions a.top_level:hover { background-position: -250px -200px; }
|
186
|
+
#caboose_station ul.admin li#nav_item_pages a.top_level:hover { background-position: -250px -250px; }
|
187
|
+
#caboose_station ul.admin li#nav_item_settings a.top_level:hover { background-position: -250px -300px; }
|
188
|
+
#caboose_station ul.admin li#nav_item_star a.top_level:hover { background-position: -250px -350px; }
|
189
|
+
|
190
|
+
#caboose_station ul.admin li a.top_level:active { background-position: -500px -350px; }
|
191
|
+
#caboose_station ul.admin li#nav_item_users a.top_level:active { background-position: -500px -100px; }
|
192
|
+
#caboose_station ul.admin li#nav_item_roles a.top_level:active { background-position: -500px -150px; }
|
193
|
+
#caboose_station ul.admin li#nav_item_permissions a.top_level:active { background-position: -500px -200px; }
|
194
|
+
#caboose_station ul.admin li#nav_item_pages a.top_level:active { background-position: -500px -250px; }
|
195
|
+
#caboose_station ul.admin li#nav_item_settings a.top_level:active { background-position: -500px -300px; }
|
196
|
+
#caboose_station ul.admin li#nav_item_star a.top_level:active { background-position: -500px -350px; }
|
197
|
+
|
198
|
+
#caboose_station_wrapper.state_min a.close,
|
199
|
+
#caboose_station_wrapper.state_left a.close,
|
200
|
+
#caboose_station_wrapper.state_right a.close {
|
201
|
+
display: block;
|
202
|
+
background-image: url('/assets/caboose/caboose_nav.png');
|
203
|
+
background-repeat: no-repeat;
|
204
|
+
background-position: 0 0;
|
205
|
+
width: 208px;
|
206
|
+
height: 50px;
|
207
|
+
font-family: BigNoodleTitling, Tahoma;
|
208
|
+
text-decoration: none;
|
209
|
+
}
|
210
|
+
|
211
|
+
#caboose_station_wrapper a.close span {
|
212
|
+
display: block;
|
213
|
+
margin: 0 0 0 60px;
|
214
|
+
padding: 16px 0 0 0;
|
215
|
+
height: 34px;
|
216
|
+
|
217
|
+
font-family: BigNoodleTitling, Tahoma;
|
218
|
+
font-size: 16px;
|
219
|
+
}
|
220
|
+
#caboose_station_wrapper a.close span { background: #e1e1e1; color: #505050; }
|
221
|
+
#caboose_station_wrapper a.close:hover span { background: #e1e1e1; color: #941403; }
|
222
|
+
#caboose_station_wrapper a.close:active span { background: #d2d2d2; color: #941403; }
|
223
|
+
|
224
|
+
#caboose_station_wrapper.state_left a.close { background-position: 0px -450px; }
|
225
|
+
#caboose_station_wrapper.state_right a.close { background-position: 0px -400px; }
|
226
|
+
#caboose_station_wrapper.state_min a.close { background-position: 0px -400px; }
|
227
|
+
#caboose_station_wrapper.state_left a.close:hover { background-position: -250px -450px; }
|
228
|
+
#caboose_station_wrapper.state_right a.close:hover { background-position: -250px -400px; }
|
229
|
+
#caboose_station_wrapper.state_min a.close:hover { background-position: -250px -400px; }
|
230
|
+
#caboose_station_wrapper.state_left a.close:active { background-position: -500px -450px; }
|
231
|
+
#caboose_station_wrapper.state_right a.close:active { background-position: -500px -400px; }
|
232
|
+
#caboose_station_wrapper.state_min a.close:active { background-position: -500px -400px; }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
body, td, pre {
|
3
|
+
color: #000000;
|
4
|
+
font-family: Verdana,Arial,Helvetica,sans-serif;
|
5
|
+
font-size: inherit;
|
6
|
+
}
|
7
|
+
body {
|
8
|
+
background: none repeat scroll 0 0 #FFFFFF;
|
9
|
+
}
|
10
|
+
body.mceForceColors {
|
11
|
+
background: none repeat scroll 0 0 #FFFFFF;
|
12
|
+
color: #000000;
|
13
|
+
}
|
14
|
+
body.mceBrowserDefaults {
|
15
|
+
background: none repeat scroll 0 0 transparent;
|
16
|
+
color: inherit;
|
17
|
+
font-family: inherit;
|
18
|
+
font-size: inherit;
|
19
|
+
}
|
20
|
+
h1 { font-size: inherit; }
|
21
|
+
h2 { font-size: inherit; }
|
22
|
+
h3 { font-size: inherit; }
|
23
|
+
h4 { font-size: inherit; }
|
24
|
+
h5 { font-size: inherit; }
|
25
|
+
h6 { font-size: inherit; }
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
module CabooseStore
|
3
|
+
class ApplicationController < Caboose::ApplicationController
|
4
|
+
protect_from_forgery
|
5
|
+
layout 'layouts/caboose/application'
|
6
|
+
before_filter :init_cart
|
7
|
+
|
8
|
+
def init_cart
|
9
|
+
return if session['cart_id'] && Order.exists?(session['cart_id'])
|
10
|
+
order = Order.new(:status => 'cart', :date_created => DateTime.now)
|
11
|
+
order.referring_site = request.env['HTTP_REFERER']
|
12
|
+
order.landing_page = request.fullpath
|
13
|
+
order.landing_page_ref = params[:ref] if params[:ref]
|
14
|
+
order.save
|
15
|
+
session['cart_id'] = order.id;
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|