spree_core 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/creditcards/icons/american_express.png +0 -0
- data/app/assets/images/creditcards/icons/cirrus.png +0 -0
- data/app/assets/images/creditcards/icons/delta.png +0 -0
- data/app/assets/images/creditcards/icons/dinersclub.png +0 -0
- data/app/assets/images/creditcards/icons/directdebit.png +0 -0
- data/app/assets/images/creditcards/icons/discover.png +0 -0
- data/app/assets/images/creditcards/icons/egold.png +0 -0
- data/app/assets/images/creditcards/icons/maestro.png +0 -0
- data/app/assets/images/creditcards/icons/master.png +0 -0
- data/app/assets/images/creditcards/icons/paypal.png +0 -0
- data/app/assets/images/creditcards/icons/solo.png +0 -0
- data/app/assets/images/creditcards/icons/switch.png +0 -0
- data/app/assets/images/creditcards/icons/visa.png +0 -0
- data/app/assets/images/creditcards/icons/visaelectron.png +0 -0
- data/app/assets/images/creditcards/icons/westernunion.png +0 -0
- data/app/assets/images/creditcards/icons/wirecard.png +0 -0
- data/app/assets/images/creditcards/icons/worldpay.png +0 -0
- data/app/assets/images/store/cart.png +0 -0
- data/app/assets/images/store/select_arrow.gif +0 -0
- data/app/assets/javascripts/admin/admin.js.erb +42 -40
- data/app/assets/javascripts/admin/orders/edit.js +1 -6
- data/app/assets/javascripts/admin/spree_core.js +1 -0
- data/app/assets/javascripts/store/cart.js +2 -2
- data/app/assets/javascripts/store/helpers.js.erb +2 -0
- data/app/assets/javascripts/store/spree_core.js +2 -0
- data/app/assets/stylesheets/store/base.css +387 -0
- data/app/assets/stylesheets/store/screen.css.scss +988 -0
- data/app/assets/stylesheets/store/spree_core.css +3 -2
- data/app/controllers/spree/admin/general_settings_controller.rb +2 -1
- data/app/controllers/spree/admin/orders_controller.rb +1 -1
- data/app/helpers/spree/base_helper.rb +9 -6
- data/app/models/spree/activator.rb +0 -1
- data/app/models/spree/adjustment.rb +7 -3
- data/app/models/spree/app_configuration.rb +34 -33
- data/app/models/spree/calculator/flexi_rate.rb +4 -4
- data/app/models/spree/order.rb +6 -1
- data/app/models/spree/payment.rb +7 -4
- data/app/models/spree/preferences/store.rb +3 -0
- data/app/models/spree/product.rb +8 -2
- data/app/views/spree/admin/general_settings/edit.html.erb +1 -1
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_details.html.erb +50 -2
- data/app/views/spree/admin/shared/_product_tabs.html.erb +1 -1
- data/app/views/spree/checkout/_address.html.erb +15 -13
- data/app/views/spree/checkout/_confirm.html.erb +1 -1
- data/app/views/spree/checkout/_delivery.html.erb +3 -1
- data/app/views/spree/checkout/_payment.html.erb +2 -1
- data/app/views/spree/checkout/_summary.html.erb +1 -0
- data/app/views/spree/checkout/edit.html.erb +22 -12
- data/app/views/spree/checkout/payment/_gateway.html.erb +1 -3
- data/app/views/spree/checkout/registration.html.erb +2 -2
- data/app/views/spree/layouts/spree_application.html.erb +57 -26
- data/app/views/spree/orders/_line_item.html.erb +1 -1
- data/app/views/spree/orders/edit.html.erb +8 -8
- data/app/views/spree/orders/show.html.erb +11 -3
- data/app/views/spree/products/_cart_form.html.erb +27 -22
- data/app/views/spree/products/_image.html.erb +2 -2
- data/app/views/spree/products/_properties.html.erb +13 -8
- data/app/views/spree/products/_taxons.html.erb +2 -2
- data/app/views/spree/products/_thumbnails.html.erb +1 -1
- data/app/views/spree/products/index.html.erb +1 -1
- data/app/views/spree/products/show.html.erb +38 -17
- data/app/views/spree/shared/_head.html.erb +17 -1
- data/app/views/spree/shared/_nav_bar.html.erb +1 -4
- data/app/views/spree/shared/_order_details.html.erb +85 -26
- data/app/views/spree/shared/_products.html.erb +10 -9
- data/app/views/spree/shared/_store_menu.html.erb +1 -2
- data/app/views/spree/shared/_taxonomies.html.erb +3 -3
- data/app/views/spree/taxons/_taxon.html.erb +1 -1
- data/app/views/spree/taxons/show.html.erb +1 -1
- data/config/locales/en.yml +2 -0
- data/config/routes.rb +2 -1
- data/db/migrate/{20111128153359_new_preferences.rb → 20120119024710_new_preferences.rb} +11 -9
- data/lib/generators/spree/install/install_generator.rb +13 -3
- data/lib/generators/spree/install/templates/config/initializers/spree.rb +5 -2
- data/lib/spree/core/controller_helpers.rb +3 -2
- data/lib/spree/core/engine.rb +1 -0
- data/lib/spree/core/permalinks.rb +4 -1
- data/lib/spree/core/testing_support/common_rake.rb +1 -1
- data/lib/spree/core/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.formalize.min.js +1 -0
- data/vendor/assets/stylesheets/jquery.formalize.css +364 -0
- metadata +54 -32
- data/app/assets/stylesheets/store/reset.css +0 -175
- data/app/assets/stylesheets/store/screen.css +0 -127
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
|
@@ -1,12 +1,12 @@
|
|
1
|
+
//= require store/helpers
|
2
|
+
//= require_self
|
3
|
+
|
1
4
|
/**
|
2
5
|
This is a collection of javascript functions and whatnot
|
3
6
|
under the spree namespace that do stuff we find helpful.
|
4
7
|
Hopefully, this will evolve into a propper class.
|
5
8
|
**/
|
6
9
|
|
7
|
-
var spree;
|
8
|
-
if (!spree) spree = {};
|
9
|
-
|
10
10
|
$(document).ajaxStart(function(){
|
11
11
|
$("#progress").slideDown();
|
12
12
|
});
|
@@ -104,43 +104,45 @@ prep_product_autocomplete_data = function(data){
|
|
104
104
|
}
|
105
105
|
|
106
106
|
$.fn.product_autocomplete = function(){
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
107
|
+
return this.each(function() {
|
108
|
+
$(this).autocomplete({
|
109
|
+
source: function(request, response) {
|
110
|
+
$.get("/admin/products.json?q=" + $('#add_product_name').val() + "&authenticity_token=" + encodeURIComponent($('meta[name=csrf-token]').attr("content")), function(data) {
|
111
|
+
result = prep_product_autocomplete_data(data)
|
112
|
+
response(result);
|
113
|
+
});
|
114
|
+
},
|
115
|
+
minLength: 4,
|
116
|
+
focus: function(event, ui) {
|
117
|
+
$('#add_product_name').val(ui.item.label);
|
118
|
+
return false;
|
119
|
+
},
|
120
|
+
select: function(event, ui) {
|
121
|
+
$('#add_product_name').val(ui.item.label);
|
122
|
+
product = ui.item.data;
|
123
|
+
if (product['variant'] == undefined) {
|
124
|
+
// product
|
125
|
+
$('#add_variant_id').val(product['product']['master']['id']);
|
126
|
+
} else {
|
127
|
+
// variant
|
128
|
+
$('#add_variant_id').val(product['variant']['id']);
|
129
|
+
}
|
130
|
+
return false;
|
128
131
|
}
|
129
|
-
|
132
|
+
}).data("autocomplete")._renderItem = function(ul, item) {
|
133
|
+
$(ul).addClass('ac_results');
|
134
|
+
html = format_product_autocomplete(item);
|
135
|
+
return $("<li></li>")
|
136
|
+
.data("item.autocomplete", item)
|
137
|
+
.append("<a>" + html + "</a>")
|
138
|
+
.appendTo(ul);
|
130
139
|
}
|
131
|
-
|
132
|
-
$(
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
.appendTo(ul);
|
138
|
-
}
|
139
|
-
|
140
|
-
$(this).data("autocomplete")._resizeMenu = function() {
|
141
|
-
var ul = this.menu.element;
|
142
|
-
ul.outerWidth(this.element.outerWidth());
|
143
|
-
}
|
140
|
+
|
141
|
+
$(this).data("autocomplete")._resizeMenu = function() {
|
142
|
+
var ul = this.menu.element;
|
143
|
+
ul.outerWidth(this.element.outerWidth());
|
144
|
+
}
|
145
|
+
});
|
144
146
|
}
|
145
147
|
|
146
148
|
$.fn.objectPicker = function(url){
|
@@ -227,7 +229,7 @@ $(document).ready(function(){
|
|
227
229
|
positions = {};
|
228
230
|
type = '';
|
229
231
|
$.each($('table.sortable tbody tr'), function(position, obj){
|
230
|
-
reg = /(\w+_?)+_(\d+)/;
|
232
|
+
reg = /spree_(\w+_?)+_(\d+)/;
|
231
233
|
parts = reg.exec($(obj).attr('id'));
|
232
234
|
if (parts) {
|
233
235
|
positions['positions['+parts[2]+']'] = position;
|
@@ -237,7 +239,7 @@ $(document).ready(function(){
|
|
237
239
|
$.ajax({
|
238
240
|
type: 'POST',
|
239
241
|
dataType: 'script',
|
240
|
-
url: type+'s/update_positions',
|
242
|
+
url: Spree.base_path + 'admin/' + type + 's/update_positions',
|
241
243
|
data: positions,
|
242
244
|
success: function(data){ $("#progress").hide(); }
|
243
245
|
});
|
@@ -1,8 +1,5 @@
|
|
1
1
|
$(document).ready(function(){
|
2
2
|
|
3
|
-
if ($("#add_product_name").length > 0)
|
4
|
-
$("#add_product_name").product_autocomplete();
|
5
|
-
|
6
3
|
$("#add_line_item_to_order").live("click", function(){
|
7
4
|
if($('#add_variant_id').val() == ''){ return false; }
|
8
5
|
update_target = $(this).attr("data-update");
|
@@ -13,8 +10,6 @@ $(document).ready(function(){
|
|
13
10
|
return false;
|
14
11
|
});
|
15
12
|
|
16
|
-
$("#add_product_name").
|
17
|
-
$("#add_product_name").product_autocomplete();
|
18
|
-
});
|
13
|
+
$("#add_product_name").product_autocomplete();
|
19
14
|
|
20
15
|
});
|
@@ -2,8 +2,8 @@
|
|
2
2
|
$(document).ready(function(){
|
3
3
|
if($('form#update-cart').is('*')){
|
4
4
|
$('form#update-cart a.delete').show().live('click', function(e){
|
5
|
-
$(this).parents('tr').find('input.line_item_quantity').val(0);
|
6
|
-
$(this).parents('form').submit();
|
5
|
+
$(this).parents('tr').first().find('input.line_item_quantity').val(0);
|
6
|
+
$(this).parents('form').first().submit();
|
7
7
|
e.preventDefault();
|
8
8
|
});
|
9
9
|
}
|
@@ -0,0 +1,387 @@
|
|
1
|
+
/* Fonts from Google */
|
2
|
+
@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|&subset=latin,cyrillic,greek,greek-ext,latin-ext,cyrillic-ext);
|
3
|
+
|
4
|
+
/*
|
5
|
+
HTML5 Reset :: style.css
|
6
|
+
----------------------------------------------------------
|
7
|
+
We have learned much from/been inspired by/taken code where offered from:
|
8
|
+
|
9
|
+
Eric Meyer :: http://ericmeyer.com
|
10
|
+
HTML5 Doctor :: http://html5doctor.com
|
11
|
+
and the HTML5 Boilerplate :: http://html5boilerplate.com
|
12
|
+
|
13
|
+
-------------------------------------------------------------------------------*/
|
14
|
+
|
15
|
+
/* Let's default this puppy out
|
16
|
+
-------------------------------------------------------------------------------*/
|
17
|
+
|
18
|
+
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
border: 0;
|
22
|
+
outline: 0;
|
23
|
+
font-size: 100%;
|
24
|
+
vertical-align: baseline;
|
25
|
+
background: transparent;
|
26
|
+
}
|
27
|
+
|
28
|
+
article, aside, figure, footer, header, hgroup, nav, section {display: block;}
|
29
|
+
|
30
|
+
/* Responsive images and other embedded objects
|
31
|
+
Note: keeping IMG here will cause problems if you're using foreground images as sprites.
|
32
|
+
If this default setting for images is causing issues, you might want to replace it with a .responsive class instead. */
|
33
|
+
img,
|
34
|
+
object,
|
35
|
+
embed {max-width: 100%;}
|
36
|
+
|
37
|
+
/* force a vertical scrollbar to prevent a jumpy page */
|
38
|
+
html {overflow-y: scroll;}
|
39
|
+
|
40
|
+
/* we use a lot of ULs that aren't bulleted.
|
41
|
+
don't forget to restore the bullets within content. */
|
42
|
+
ul {list-style: none;}
|
43
|
+
|
44
|
+
blockquote, q {quotes: none;}
|
45
|
+
|
46
|
+
blockquote:before,
|
47
|
+
blockquote:after,
|
48
|
+
q:before,
|
49
|
+
q:after {content: ''; content: none;}
|
50
|
+
|
51
|
+
a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}
|
52
|
+
|
53
|
+
del {text-decoration: line-through;}
|
54
|
+
|
55
|
+
abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}
|
56
|
+
|
57
|
+
/* tables still need cellspacing="0" in the markup */
|
58
|
+
table {border-collapse: collapse; border-spacing: 0;}
|
59
|
+
th {font-weight: bold; vertical-align: bottom;}
|
60
|
+
td {font-weight: normal; vertical-align: top;}
|
61
|
+
|
62
|
+
hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}
|
63
|
+
|
64
|
+
input, select {vertical-align: middle;}
|
65
|
+
|
66
|
+
pre {
|
67
|
+
white-space: pre; /* CSS2 */
|
68
|
+
white-space: pre-wrap; /* CSS 2.1 */
|
69
|
+
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
|
70
|
+
word-wrap: break-word; /* IE */
|
71
|
+
}
|
72
|
+
|
73
|
+
input[type="radio"] {vertical-align: text-bottom;}
|
74
|
+
input[type="checkbox"] {vertical-align: bottom; *vertical-align: baseline;}
|
75
|
+
.ie6 input {vertical-align: text-bottom;}
|
76
|
+
|
77
|
+
select, input, textarea {font: 99% sans-serif;}
|
78
|
+
|
79
|
+
table {font-size: inherit; font: 100%;}
|
80
|
+
|
81
|
+
/* Accessible focus treatment
|
82
|
+
people.opera.com/patrickl/experiments/keyboard/test */
|
83
|
+
a:hover, a:active {outline: none;}
|
84
|
+
|
85
|
+
small {font-size: 85%;}
|
86
|
+
|
87
|
+
strong, th {font-weight: bold;}
|
88
|
+
|
89
|
+
td, td img {vertical-align: top;}
|
90
|
+
|
91
|
+
/* Make sure sup and sub don't screw with your line-heights
|
92
|
+
gist.github.com/413930 */
|
93
|
+
sub, sup {font-size: 75%; line-height: 0; position: relative;}
|
94
|
+
sup {top: -0.5em;}
|
95
|
+
sub {bottom: -0.25em;}
|
96
|
+
|
97
|
+
/* standardize any monospaced elements */
|
98
|
+
pre, code, kbd, samp {font-family: monospace, sans-serif;}
|
99
|
+
|
100
|
+
/* hand cursor on clickable elements */
|
101
|
+
.clickable,
|
102
|
+
label,
|
103
|
+
input[type=button],
|
104
|
+
input[type=submit],
|
105
|
+
button {cursor: pointer;}
|
106
|
+
|
107
|
+
/* Webkit browsers add a 2px margin outside the chrome of form elements */
|
108
|
+
button, input, select, textarea {margin: 0;}
|
109
|
+
|
110
|
+
/* make buttons play nice in IE */
|
111
|
+
button {width: auto; overflow: visible;}
|
112
|
+
|
113
|
+
/* scale images in IE7 more attractively */
|
114
|
+
.ie7 img {-ms-interpolation-mode: bicubic;}
|
115
|
+
|
116
|
+
/* prevent BG image flicker upon hover */
|
117
|
+
.ie6 html {filter: expression(document.execCommand("BackgroundImageCache", false, true));}
|
118
|
+
|
119
|
+
/* let's clear some floats */
|
120
|
+
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
121
|
+
.clearfix:after { clear: both; }
|
122
|
+
.clearfix { zoom: 1; }
|
123
|
+
|
124
|
+
/* reset webkit searchfield */
|
125
|
+
input[type=search]::-webkit-search-decoration,
|
126
|
+
input[type=search]::-webkit-search-cancel-button,
|
127
|
+
input[type=search]::-webkit-search-results-button,
|
128
|
+
input[type=search]::-webkit-search-results-decoration {
|
129
|
+
display: none;
|
130
|
+
}
|
131
|
+
|
132
|
+
input[type=search] {
|
133
|
+
/* the webkit overrides need to stay at the top */
|
134
|
+
-webkit-appearance: textfield;
|
135
|
+
-webkit-box-sizing: content-box;
|
136
|
+
/* your styles here */
|
137
|
+
}
|
138
|
+
|
139
|
+
/* Ok, this is where the fun starts.
|
140
|
+
-------------------------------------------------------------------------------*/
|
141
|
+
|
142
|
+
/* new Linux- and Windows-friendly sans-serif font stack: http://mky.be/fontstack */
|
143
|
+
body {font: 13px Helmet, Freesans, sans-serif;}
|
144
|
+
|
145
|
+
/* using local fonts? make sure to read up on Paul Irish's
|
146
|
+
Bulletproof @font-face syntax: http://mky.be/font-face/bulletproof/ */
|
147
|
+
|
148
|
+
/* we like off-black for text */
|
149
|
+
body, select, input, textarea {color: #333;}
|
150
|
+
|
151
|
+
a {color: #03f;}
|
152
|
+
a:hover {color: #69f;}
|
153
|
+
|
154
|
+
/*
|
155
|
+
* Skeleton V1.1
|
156
|
+
* Copyright 2011, Dave Gamache
|
157
|
+
* www.getskeleton.com
|
158
|
+
* Free to use under the MIT license.
|
159
|
+
* http://www.opensource.org/licenses/mit-license.php
|
160
|
+
* 8/17/2011
|
161
|
+
*/
|
162
|
+
|
163
|
+
|
164
|
+
/* Table of Contents
|
165
|
+
==================================================
|
166
|
+
#Base 960 Grid
|
167
|
+
#Tablet (Portrait)
|
168
|
+
#Mobile (Portrait)
|
169
|
+
#Mobile (Landscape)
|
170
|
+
#Clearing */
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
/* #Base 960 Grid
|
175
|
+
================================================== */
|
176
|
+
|
177
|
+
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
|
178
|
+
.column, .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
|
179
|
+
.row { margin-bottom: 20px; }
|
180
|
+
|
181
|
+
/* Nested Column Classes */
|
182
|
+
.column.alpha, .columns.alpha { margin-left: 0; }
|
183
|
+
.column.omega, .columns.omega { margin-right: 0; }
|
184
|
+
|
185
|
+
/* Base Grid */
|
186
|
+
.container .one.column { width: 40px; }
|
187
|
+
.container .two.columns { width: 100px; }
|
188
|
+
.container .three.columns { width: 160px; }
|
189
|
+
.container .four.columns { width: 220px; }
|
190
|
+
.container .five.columns { width: 280px; }
|
191
|
+
.container .six.columns { width: 340px; }
|
192
|
+
.container .seven.columns { width: 400px; }
|
193
|
+
.container .eight.columns { width: 460px; }
|
194
|
+
.container .nine.columns { width: 520px; }
|
195
|
+
.container .ten.columns { width: 580px; }
|
196
|
+
.container .eleven.columns { width: 640px; }
|
197
|
+
.container .twelve.columns { width: 700px; }
|
198
|
+
.container .thirteen.columns { width: 760px; }
|
199
|
+
.container .fourteen.columns { width: 820px; }
|
200
|
+
.container .fifteen.columns { width: 880px; }
|
201
|
+
.container .sixteen.columns { width: 940px; }
|
202
|
+
|
203
|
+
.container .one-third.column { width: 300px; }
|
204
|
+
.container .two-thirds.column { width: 620px; }
|
205
|
+
|
206
|
+
/* Offsets */
|
207
|
+
.container .offset-by-one { padding-left: 60px; }
|
208
|
+
.container .offset-by-two { padding-left: 120px; }
|
209
|
+
.container .offset-by-three { padding-left: 180px; }
|
210
|
+
.container .offset-by-four { padding-left: 240px; }
|
211
|
+
.container .offset-by-five { padding-left: 300px; }
|
212
|
+
.container .offset-by-six { padding-left: 360px; }
|
213
|
+
.container .offset-by-seven { padding-left: 420px; }
|
214
|
+
.container .offset-by-eight { padding-left: 480px; }
|
215
|
+
.container .offset-by-nine { padding-left: 540px; }
|
216
|
+
.container .offset-by-ten { padding-left: 600px; }
|
217
|
+
.container .offset-by-eleven { padding-left: 660px; }
|
218
|
+
.container .offset-by-twelve { padding-left: 720px; }
|
219
|
+
.container .offset-by-thirteen { padding-left: 780px; }
|
220
|
+
.container .offset-by-fourteen { padding-left: 840px; }
|
221
|
+
.container .offset-by-fifteen { padding-left: 900px; }
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
/* #Tablet (Portrait)
|
226
|
+
================================================== */
|
227
|
+
|
228
|
+
/* Note: Design for a width of 768px */
|
229
|
+
|
230
|
+
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
231
|
+
.container { width: 768px; }
|
232
|
+
.container .column,
|
233
|
+
.container .columns { margin-left: 10px; margin-right: 10px; }
|
234
|
+
.column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; }
|
235
|
+
.column.omega, .columns.omega { margin-right: 0; margin-left: 10px; }
|
236
|
+
|
237
|
+
.container .one.column { width: 28px; }
|
238
|
+
.container .two.columns { width: 76px; }
|
239
|
+
.container .three.columns { width: 124px; }
|
240
|
+
.container .four.columns { width: 172px; }
|
241
|
+
.container .five.columns { width: 220px; }
|
242
|
+
.container .six.columns { width: 268px; }
|
243
|
+
.container .seven.columns { width: 316px; }
|
244
|
+
.container .eight.columns { width: 364px; }
|
245
|
+
.container .nine.columns { width: 412px; }
|
246
|
+
.container .ten.columns { width: 460px; }
|
247
|
+
.container .eleven.columns { width: 508px; }
|
248
|
+
.container .twelve.columns { width: 556px; }
|
249
|
+
.container .thirteen.columns { width: 604px; }
|
250
|
+
.container .fourteen.columns { width: 652px; }
|
251
|
+
.container .fifteen.columns { width: 700px; }
|
252
|
+
.container .sixteen.columns { width: 748px; }
|
253
|
+
|
254
|
+
.container .one-third.column { width: 236px; }
|
255
|
+
.container .two-thirds.column { width: 492px; }
|
256
|
+
|
257
|
+
/* Offsets */
|
258
|
+
.container .offset-by-one { padding-left: 48px; }
|
259
|
+
.container .offset-by-two { padding-left: 96px; }
|
260
|
+
.container .offset-by-three { padding-left: 144px; }
|
261
|
+
.container .offset-by-four { padding-left: 192px; }
|
262
|
+
.container .offset-by-five { padding-left: 240px; }
|
263
|
+
.container .offset-by-six { padding-left: 288px; }
|
264
|
+
.container .offset-by-seven { padding-left: 336px; }
|
265
|
+
.container .offset-by-eight { padding-left: 348px; }
|
266
|
+
.container .offset-by-nine { padding-left: 432px; }
|
267
|
+
.container .offset-by-ten { padding-left: 480px; }
|
268
|
+
.container .offset-by-eleven { padding-left: 528px; }
|
269
|
+
.container .offset-by-twelve { padding-left: 576px; }
|
270
|
+
.container .offset-by-thirteen { padding-left: 624px; }
|
271
|
+
.container .offset-by-fourteen { padding-left: 672px; }
|
272
|
+
.container .offset-by-fifteen { padding-left: 720px; }
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
/* #Mobile (Portrait)
|
277
|
+
================================================== */
|
278
|
+
|
279
|
+
/* Note: Design for a width of 320px */
|
280
|
+
|
281
|
+
@media only screen and (max-width: 767px) {
|
282
|
+
.container { width: 300px; }
|
283
|
+
.columns, .column { margin: 0; }
|
284
|
+
|
285
|
+
.container .one.column,
|
286
|
+
.container .two.columns,
|
287
|
+
.container .three.columns,
|
288
|
+
.container .four.columns,
|
289
|
+
.container .five.columns,
|
290
|
+
.container .six.columns,
|
291
|
+
.container .seven.columns,
|
292
|
+
.container .eight.columns,
|
293
|
+
.container .nine.columns,
|
294
|
+
.container .ten.columns,
|
295
|
+
.container .eleven.columns,
|
296
|
+
.container .twelve.columns,
|
297
|
+
.container .thirteen.columns,
|
298
|
+
.container .fourteen.columns,
|
299
|
+
.container .fifteen.columns,
|
300
|
+
.container .sixteen.columns,
|
301
|
+
.container .one-third.column,
|
302
|
+
.container .two-thirds.column { width: 300px; }
|
303
|
+
|
304
|
+
/* Offsets */
|
305
|
+
.container .offset-by-one,
|
306
|
+
.container .offset-by-two,
|
307
|
+
.container .offset-by-three,
|
308
|
+
.container .offset-by-four,
|
309
|
+
.container .offset-by-five,
|
310
|
+
.container .offset-by-six,
|
311
|
+
.container .offset-by-seven,
|
312
|
+
.container .offset-by-eight,
|
313
|
+
.container .offset-by-nine,
|
314
|
+
.container .offset-by-ten,
|
315
|
+
.container .offset-by-eleven,
|
316
|
+
.container .offset-by-twelve,
|
317
|
+
.container .offset-by-thirteen,
|
318
|
+
.container .offset-by-fourteen,
|
319
|
+
.container .offset-by-fifteen { padding-left: 0; }
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
/* #Mobile (Landscape)
|
325
|
+
================================================== */
|
326
|
+
|
327
|
+
/* Note: Design for a width of 480px */
|
328
|
+
|
329
|
+
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
330
|
+
.container { width: 420px; }
|
331
|
+
.columns, .column { margin: 0; }
|
332
|
+
|
333
|
+
.container .one.column,
|
334
|
+
.container .two.columns,
|
335
|
+
.container .three.columns,
|
336
|
+
.container .four.columns,
|
337
|
+
.container .five.columns,
|
338
|
+
.container .six.columns,
|
339
|
+
.container .seven.columns,
|
340
|
+
.container .eight.columns,
|
341
|
+
.container .nine.columns,
|
342
|
+
.container .ten.columns,
|
343
|
+
.container .eleven.columns,
|
344
|
+
.container .twelve.columns,
|
345
|
+
.container .thirteen.columns,
|
346
|
+
.container .fourteen.columns,
|
347
|
+
.container .fifteen.columns,
|
348
|
+
.container .sixteen.columns,
|
349
|
+
.container .one-third.column,
|
350
|
+
.container .two-thirds.column { width: 420px; }
|
351
|
+
}
|
352
|
+
|
353
|
+
|
354
|
+
/* #Clearing
|
355
|
+
================================================== */
|
356
|
+
|
357
|
+
/* Self Clearing Goodness */
|
358
|
+
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
|
359
|
+
|
360
|
+
/* Use clearfix class on parent to clear nested columns,
|
361
|
+
or wrap each row of columns in a <div class="row"> */
|
362
|
+
.clearfix:before,
|
363
|
+
.clearfix:after,
|
364
|
+
.row:before,
|
365
|
+
.row:after {
|
366
|
+
content: '\0020';
|
367
|
+
display: block;
|
368
|
+
overflow: hidden;
|
369
|
+
visibility: hidden;
|
370
|
+
width: 0;
|
371
|
+
height: 0; }
|
372
|
+
.row:after,
|
373
|
+
.clearfix:after {
|
374
|
+
clear: both; }
|
375
|
+
.row,
|
376
|
+
.clearfix {
|
377
|
+
zoom: 1; }
|
378
|
+
|
379
|
+
/* You can also use a <br class="clear" /> to clear columns */
|
380
|
+
.clear {
|
381
|
+
clear: both;
|
382
|
+
display: block;
|
383
|
+
overflow: hidden;
|
384
|
+
visibility: hidden;
|
385
|
+
width: 0;
|
386
|
+
height: 0;
|
387
|
+
}
|