website_builder_engine 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +20 -0
- data/Gemfile.lock +173 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +260 -0
- data/Rakefile +26 -0
- data/app/assets/images/website_builder_engine/.gitkeep +0 -0
- data/app/assets/javascripts/website_builder_engine/application.js +9 -0
- data/app/assets/javascripts/website_builder_engine/articles.js.coffee +3 -0
- data/app/assets/javascripts/website_builder_engine/home.js.coffee +3 -0
- data/app/assets/javascripts/website_builder_engine/jqueryui.js +406 -0
- data/app/assets/javascripts/website_builder_engine/modernizr.js +4 -0
- data/app/assets/javascripts/website_builder_engine/offerpages.js.coffee +3 -0
- data/app/assets/javascripts/website_builder_engine/respond.js +2 -0
- data/app/assets/javascripts/website_builder_engine/settings.js.coffee +3 -0
- data/app/assets/javascripts/website_builder_engine/tabs.js +41 -0
- data/app/assets/stylesheets/website_builder_engine/application.css +33 -0
- data/app/assets/stylesheets/website_builder_engine/articles.css.scss +87 -0
- data/app/assets/stylesheets/website_builder_engine/base.css.scss +336 -0
- data/app/assets/stylesheets/website_builder_engine/home.css.scss +7 -0
- data/app/assets/stylesheets/website_builder_engine/layout.css.scss +64 -0
- data/app/assets/stylesheets/website_builder_engine/normalize.css.scss +413 -0
- data/app/assets/stylesheets/website_builder_engine/offerpages.css.scss +232 -0
- data/app/assets/stylesheets/website_builder_engine/scaffolds.css.scss +56 -0
- data/app/assets/stylesheets/website_builder_engine/settings.css.scss +7 -0
- data/app/assets/stylesheets/website_builder_engine/skeleton.css.scss +237 -0
- data/app/controllers/website_builder_engine/application_controller.rb +5 -0
- data/app/controllers/website_builder_engine/articles_controller.rb +113 -0
- data/app/controllers/website_builder_engine/home_controller.rb +7 -0
- data/app/controllers/website_builder_engine/offerpages_controller.rb +98 -0
- data/app/controllers/website_builder_engine/settings_controller.rb +85 -0
- data/app/helpers/website_builder_engine/application_helper.rb +4 -0
- data/app/models/article.rb +13 -0
- data/app/models/offerpage.rb +15 -0
- data/app/models/setting.rb +13 -0
- data/app/views/layouts/website_builder_engine/application.html.haml +22 -0
- data/app/views/layouts/website_builder_engine/home.html.haml +24 -0
- data/app/views/shared/_navigation.html.haml +3 -0
- data/app/views/website_builder_engine/articles/_form.html.haml +47 -0
- data/app/views/website_builder_engine/articles/edit.html.haml +7 -0
- data/app/views/website_builder_engine/articles/index.html.haml +16 -0
- data/app/views/website_builder_engine/articles/new.html.haml +5 -0
- data/app/views/website_builder_engine/articles/publish.html.haml +7 -0
- data/app/views/website_builder_engine/articles/show.html.haml +36 -0
- data/app/views/website_builder_engine/articles/template.html.haml +72 -0
- data/app/views/website_builder_engine/home/index.html.haml +26 -0
- data/app/views/website_builder_engine/offerpages/_form.html.haml +49 -0
- data/app/views/website_builder_engine/offerpages/edit.html.haml +7 -0
- data/app/views/website_builder_engine/offerpages/index.html.haml +16 -0
- data/app/views/website_builder_engine/offerpages/new.html.haml +5 -0
- data/app/views/website_builder_engine/offerpages/publish.html.haml +7 -0
- data/app/views/website_builder_engine/offerpages/show.html.haml +37 -0
- data/app/views/website_builder_engine/offerpages/template.html.haml +71 -0
- data/app/views/website_builder_engine/settings/_form.html.haml +40 -0
- data/app/views/website_builder_engine/settings/edit.html.haml +7 -0
- data/app/views/website_builder_engine/settings/index.html.haml +19 -0
- data/app/views/website_builder_engine/settings/new.html.haml +5 -0
- data/app/views/website_builder_engine/settings/show.html.haml +34 -0
- data/app/views/website_builder_engine/welcome/template.html.haml +66 -0
- data/config/routes.rb +19 -0
- data/db/seeds.rb +68 -0
- data/lib/tasks/website_builder_engine_tasks.rake +4 -0
- data/lib/website_builder_engine.rb +4 -0
- data/lib/website_builder_engine/engine.rb +5 -0
- data/script/rails +6 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +51 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +27 -0
- data/spec/dummy/config/environments/production.rb +51 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/mongoid.yml +20 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/seeds.rb +68 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +41 -0
- data/version.rb +3 -0
- data/website_builder_engine.gemspec +31 -0
- metadata +381 -0
@@ -0,0 +1,232 @@
|
|
1
|
+
// Place all the styles related to the Articles controller here.
|
2
|
+
// They will automatically be included in application.css.
|
3
|
+
// You can use Sass (SCSS) here: http://sass-lang.com/
|
4
|
+
|
5
|
+
// various mixins from https://github.com/thoughtbot/bourbon
|
6
|
+
@import 'bourbon';
|
7
|
+
|
8
|
+
// variables
|
9
|
+
$textfont: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
10
|
+
$headlinefont: Tahoma, Verdana, Geneva;
|
11
|
+
$textcolor: black;
|
12
|
+
$h1size: 16pt;
|
13
|
+
$h2size: 16pt;
|
14
|
+
$h3size: 16pt;
|
15
|
+
$textsize: 12pt;
|
16
|
+
$sidebarh1size: 14pt;
|
17
|
+
$sidebartextsize: 11pt;
|
18
|
+
$smalltextsize: 9pt;
|
19
|
+
|
20
|
+
body.offerpages {
|
21
|
+
|
22
|
+
@include background-image(linear-gradient(#FFF, #FCEDA6 15%));
|
23
|
+
|
24
|
+
.container {
|
25
|
+
background: #fff;
|
26
|
+
font: 14px/21px $textfont;
|
27
|
+
color: #000;
|
28
|
+
border-top: medium none;
|
29
|
+
border-collapse: collapse;
|
30
|
+
margin-top: 10px;
|
31
|
+
margin-bottom: 10px;
|
32
|
+
border: 1px solid black;
|
33
|
+
@include border-radius(20px);
|
34
|
+
|
35
|
+
.logo {
|
36
|
+
margin-top:30px;
|
37
|
+
margin-bottom:0px;
|
38
|
+
.sitename{float:left;text-transform: lowercase;}
|
39
|
+
.sitename a{color:#cc0000; text-decoration:none;}
|
40
|
+
.sitename a:hover{color:#cc0000;}
|
41
|
+
.tagline{text-transform: lowercase;}
|
42
|
+
.tagline:before{content:" :";}
|
43
|
+
}
|
44
|
+
|
45
|
+
.recommend {
|
46
|
+
text-align: center;
|
47
|
+
|
48
|
+
.tweet {
|
49
|
+
margin-top: 20px;
|
50
|
+
margin-bottom: 20px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
section {
|
55
|
+
|
56
|
+
// Facebook "like" button
|
57
|
+
.fb_reset {
|
58
|
+
text-align: center;
|
59
|
+
margin-top: 20px;
|
60
|
+
// margin-left: 20px;
|
61
|
+
}
|
62
|
+
|
63
|
+
a {
|
64
|
+
color: #00e;
|
65
|
+
font-size: $textsize;
|
66
|
+
}
|
67
|
+
|
68
|
+
a:visited {
|
69
|
+
color: #551a8b;
|
70
|
+
}
|
71
|
+
|
72
|
+
a:hover,
|
73
|
+
a:active {
|
74
|
+
text-decoration: none;
|
75
|
+
}
|
76
|
+
|
77
|
+
strong {
|
78
|
+
color: $textcolor;
|
79
|
+
}
|
80
|
+
|
81
|
+
p {
|
82
|
+
padding-left: 5px;
|
83
|
+
padding-right: 5px;
|
84
|
+
text-align: left;
|
85
|
+
font-family: $textfont;
|
86
|
+
font-size: $textsize;
|
87
|
+
}
|
88
|
+
|
89
|
+
ul {
|
90
|
+
list-style: none outside;
|
91
|
+
padding-left: 5px;
|
92
|
+
padding-right: 5px;
|
93
|
+
text-align: left;
|
94
|
+
margin: 0;
|
95
|
+
font-family: $textfont;
|
96
|
+
font-size: $textsize;
|
97
|
+
li:before {
|
98
|
+
content:"\2713\0020";
|
99
|
+
color: red;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
header {
|
104
|
+
hgroup {
|
105
|
+
h1 {
|
106
|
+
text-align: center;
|
107
|
+
font-family: $headlinefont;
|
108
|
+
font-size: $h1size;
|
109
|
+
font-weight: bolder;
|
110
|
+
line-height: 1.2;
|
111
|
+
}
|
112
|
+
h2 {
|
113
|
+
padding: 0px 120px;
|
114
|
+
text-align: center;
|
115
|
+
font-family: $headlinefont;
|
116
|
+
font-size: $h1size;
|
117
|
+
font-weight: bolder;
|
118
|
+
line-height: 1.2;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
h1, h2, h3, h4, h5, h6 {
|
124
|
+
text-align: center;
|
125
|
+
padding-left: 5px;
|
126
|
+
padding-right: 5px;
|
127
|
+
font-family: $headlinefont;
|
128
|
+
color: inherit;
|
129
|
+
}
|
130
|
+
h1 {
|
131
|
+
font-size: $h1size;
|
132
|
+
line-height: 1.2;
|
133
|
+
font-weight: bolder;
|
134
|
+
}
|
135
|
+
h2 {
|
136
|
+
font-size: $h1size;
|
137
|
+
line-height: 1.2;
|
138
|
+
font-weight: bolder;
|
139
|
+
}
|
140
|
+
h3 {
|
141
|
+
font-size: $h1size;
|
142
|
+
line-height: 1.2;
|
143
|
+
font-weight: bolder;
|
144
|
+
}
|
145
|
+
blockquote {
|
146
|
+
background: #FEFEE6;
|
147
|
+
padding-top: 5px;
|
148
|
+
padding-left: 5px;
|
149
|
+
padding-right: 5px;
|
150
|
+
border-left: none;
|
151
|
+
p {
|
152
|
+
margin-top: 10px;
|
153
|
+
font-style: normal;
|
154
|
+
color: $textcolor;
|
155
|
+
font-size: $sidebartextsize;
|
156
|
+
line-height: 1;
|
157
|
+
}
|
158
|
+
cite {
|
159
|
+
font-size: $smalltextsize;
|
160
|
+
color: $textcolor;
|
161
|
+
line-height: 1;
|
162
|
+
margin-top: 4px;
|
163
|
+
margin-left: 10px;
|
164
|
+
font-style: italic;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.video {
|
170
|
+
text-align: center;
|
171
|
+
p {
|
172
|
+
text-align: center;
|
173
|
+
font-family: $textfont;
|
174
|
+
font-weight: bolder;
|
175
|
+
font-size: $textsize;
|
176
|
+
margin-top:20px;
|
177
|
+
margin-bottom:30px;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
aside {
|
182
|
+
display: inline-block;
|
183
|
+
float: right;
|
184
|
+
vertical-align: top;
|
185
|
+
width: 280px;
|
186
|
+
margin-left: 10px;
|
187
|
+
|
188
|
+
section {
|
189
|
+
background: #FEFEE6;
|
190
|
+
border: 1px solid black;
|
191
|
+
padding-top: 5px;
|
192
|
+
padding-left: 5px;
|
193
|
+
padding-right: 5px;
|
194
|
+
|
195
|
+
h1, h2, h3, h4, h5, h6 {
|
196
|
+
margin-top: 10px;
|
197
|
+
font-family: $headlinefont;
|
198
|
+
color: inherit;
|
199
|
+
font-size: $sidebarh1size;
|
200
|
+
line-height: 1.2;
|
201
|
+
font-weight: bolder;
|
202
|
+
}
|
203
|
+
p {
|
204
|
+
margin: 0;
|
205
|
+
font-size: $sidebartextsize;
|
206
|
+
}
|
207
|
+
blockquote {
|
208
|
+
margin: 0;
|
209
|
+
blockquote:before, blockquote:after {
|
210
|
+
content: '"';
|
211
|
+
}
|
212
|
+
p {
|
213
|
+
margin-top: 10px;
|
214
|
+
font-style: normal;
|
215
|
+
color: $textcolor;
|
216
|
+
font-size: $sidebartextsize;
|
217
|
+
line-height: 1;
|
218
|
+
}
|
219
|
+
cite {
|
220
|
+
font-size: $smalltextsize;
|
221
|
+
color: $textcolor;
|
222
|
+
line-height: 1;
|
223
|
+
margin-top: 4px;
|
224
|
+
margin-left: 10px;
|
225
|
+
font-style: italic;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
}
|
232
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #fff;
|
3
|
+
color: #333;
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px; }
|
7
|
+
|
8
|
+
p, ol, ul, td {
|
9
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
10
|
+
font-size: 13px;
|
11
|
+
line-height: 18px; }
|
12
|
+
|
13
|
+
pre {
|
14
|
+
background-color: #eee;
|
15
|
+
padding: 10px;
|
16
|
+
font-size: 11px; }
|
17
|
+
|
18
|
+
a {
|
19
|
+
color: #000;
|
20
|
+
&:visited {
|
21
|
+
color: #666; }
|
22
|
+
&:hover {
|
23
|
+
color: #fff;
|
24
|
+
background-color: #000; } }
|
25
|
+
|
26
|
+
div {
|
27
|
+
&.field, &.actions {
|
28
|
+
margin-bottom: 10px; } }
|
29
|
+
|
30
|
+
#notice {
|
31
|
+
color: green; }
|
32
|
+
|
33
|
+
.field_with_errors {
|
34
|
+
padding: 2px;
|
35
|
+
background-color: red;
|
36
|
+
display: table; }
|
37
|
+
|
38
|
+
#error_explanation {
|
39
|
+
width: 450px;
|
40
|
+
border: 2px solid red;
|
41
|
+
padding: 7px;
|
42
|
+
padding-bottom: 0;
|
43
|
+
margin-bottom: 20px;
|
44
|
+
background-color: #f0f0f0;
|
45
|
+
h2 {
|
46
|
+
text-align: left;
|
47
|
+
font-weight: bold;
|
48
|
+
padding: 5px 5px 5px 15px;
|
49
|
+
font-size: 12px;
|
50
|
+
margin: -7px;
|
51
|
+
margin-bottom: 0px;
|
52
|
+
background-color: #c00;
|
53
|
+
color: #fff; }
|
54
|
+
ul li {
|
55
|
+
font-size: 12px;
|
56
|
+
list-style: square; } }
|
@@ -0,0 +1,237 @@
|
|
1
|
+
/*
|
2
|
+
* Skeleton V1.0.2
|
3
|
+
* Copyright 2011, Dave Gamache
|
4
|
+
* www.getskeleton.com
|
5
|
+
* Free to use under the MIT license.
|
6
|
+
* http://www.opensource.org/licenses/mit-license.php
|
7
|
+
* 5/20/2011
|
8
|
+
*/
|
9
|
+
|
10
|
+
|
11
|
+
/* Table of Contents
|
12
|
+
==================================================
|
13
|
+
#Base 960 Grid
|
14
|
+
#Tablet (Portrait)
|
15
|
+
#Mobile (Portrait)
|
16
|
+
#Mobile (Landscape)
|
17
|
+
#Clearing */
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
/* #Base 960 Grid
|
22
|
+
================================================== */
|
23
|
+
|
24
|
+
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
|
25
|
+
.column, .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
|
26
|
+
.row { margin-bottom: 20px; }
|
27
|
+
|
28
|
+
/* Nested Column Classes */
|
29
|
+
.column.alpha, .columns.alpha { margin-left: 0; }
|
30
|
+
.column.omega, .columns.omega { margin-right: 0; }
|
31
|
+
|
32
|
+
/* Base Grid */
|
33
|
+
.container .one.column { width: 40px; }
|
34
|
+
.container .two.columns { width: 100px; }
|
35
|
+
.container .three.columns { width: 160px; }
|
36
|
+
.container .four.columns { width: 220px; }
|
37
|
+
.container .five.columns { width: 280px; }
|
38
|
+
.container .six.columns { width: 340px; }
|
39
|
+
.container .seven.columns { width: 400px; }
|
40
|
+
.container .eight.columns { width: 460px; }
|
41
|
+
.container .nine.columns { width: 520px; }
|
42
|
+
.container .ten.columns { width: 580px; }
|
43
|
+
.container .eleven.columns { width: 640px; }
|
44
|
+
.container .twelve.columns { width: 700px; }
|
45
|
+
.container .thirteen.columns { width: 760px; }
|
46
|
+
.container .fourteen.columns { width: 820px; }
|
47
|
+
.container .fifteen.columns { width: 880px; }
|
48
|
+
.container .sixteen.columns { width: 940px; }
|
49
|
+
|
50
|
+
.container .one-third.column { width: 300px; }
|
51
|
+
.container .two-thirds.column { width: 620px; }
|
52
|
+
|
53
|
+
/* Offsets */
|
54
|
+
.container .offset-by-one { padding-left: 60px; }
|
55
|
+
.container .offset-by-two { padding-left: 120px; }
|
56
|
+
.container .offset-by-three { padding-left: 180px; }
|
57
|
+
.container .offset-by-four { padding-left: 240px; }
|
58
|
+
.container .offset-by-five { padding-left: 300px; }
|
59
|
+
.container .offset-by-six { padding-left: 360px; }
|
60
|
+
.container .offset-by-seven { padding-left: 420px; }
|
61
|
+
.container .offset-by-eight { padding-left: 480px; }
|
62
|
+
.container .offset-by-nine { padding-left: 540px; }
|
63
|
+
.container .offset-by-ten { padding-left: 600px; }
|
64
|
+
.container .offset-by-eleven { padding-left: 660px; }
|
65
|
+
.container .offset-by-twelve { padding-left: 720px; }
|
66
|
+
.container .offset-by-thirteen { padding-left: 780px; }
|
67
|
+
.container .offset-by-fourteen { padding-left: 840px; }
|
68
|
+
.container .offset-by-fifteen { padding-left: 900px; }
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
/* #Tablet (Portrait)
|
73
|
+
================================================== */
|
74
|
+
|
75
|
+
/* Note: Design for a width of 768px */
|
76
|
+
|
77
|
+
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
78
|
+
.container { width: 768px; }
|
79
|
+
.container .column,
|
80
|
+
.container .columns { margin-left: 10px; margin-right: 10px; }
|
81
|
+
.column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; }
|
82
|
+
.column.omega, .columns.omega { margin-right: 0; margin-left: 10px; }
|
83
|
+
|
84
|
+
.container .one.column { width: 28px; }
|
85
|
+
.container .two.columns { width: 76px; }
|
86
|
+
.container .three.columns { width: 124px; }
|
87
|
+
.container .four.columns { width: 172px; }
|
88
|
+
.container .five.columns { width: 220px; }
|
89
|
+
.container .six.columns { width: 268px; }
|
90
|
+
.container .seven.columns { width: 316px; }
|
91
|
+
.container .eight.columns { width: 364px; }
|
92
|
+
.container .nine.columns { width: 412px; }
|
93
|
+
.container .ten.columns { width: 460px; }
|
94
|
+
.container .eleven.columns { width: 508px; }
|
95
|
+
.container .twelve.columns { width: 556px; }
|
96
|
+
.container .thirteen.columns { width: 604px; }
|
97
|
+
.container .fourteen.columns { width: 652px; }
|
98
|
+
.container .fifteen.columns { width: 700px; }
|
99
|
+
.container .sixteen.columns { width: 748px; }
|
100
|
+
|
101
|
+
.container .one-third.column { width: 236px; }
|
102
|
+
.container .two-thirds.column { width: 492px; }
|
103
|
+
|
104
|
+
/* Offsets */
|
105
|
+
.container .offset-by-one { padding-left: 48px; }
|
106
|
+
.container .offset-by-two { padding-left: 96px; }
|
107
|
+
.container .offset-by-three { padding-left: 144px; }
|
108
|
+
.container .offset-by-four { padding-left: 192px; }
|
109
|
+
.container .offset-by-five { padding-left: 288px; }
|
110
|
+
.container .offset-by-six { padding-left: 336px; }
|
111
|
+
.container .offset-by-seven { padding-left: 348px; }
|
112
|
+
.container .offset-by-eight { padding-left: 432px; }
|
113
|
+
.container .offset-by-nine { padding-left: 480px; }
|
114
|
+
.container .offset-by-ten { padding-left: 528px; }
|
115
|
+
.container .offset-by-eleven { padding-left: 576px; }
|
116
|
+
.container .offset-by-twelve { padding-left: 624px; }
|
117
|
+
.container .offset-by-thirteen { padding-left: 672px; }
|
118
|
+
.container .offset-by-fourteen { padding-left: 720px; }
|
119
|
+
.container .offset-by-fifteen { padding-left: 900px; }
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
/* #Mobile (Portrait)
|
124
|
+
================================================== */
|
125
|
+
|
126
|
+
/* Note: Design for a width of 320px */
|
127
|
+
|
128
|
+
@media only screen and (max-width: 767px) {
|
129
|
+
.container { width: 300px; }
|
130
|
+
.columns, .column { margin: 0; }
|
131
|
+
|
132
|
+
.container .one.column,
|
133
|
+
.container .two.columns,
|
134
|
+
.container .three.columns,
|
135
|
+
.container .four.columns,
|
136
|
+
.container .five.columns,
|
137
|
+
.container .six.columns,
|
138
|
+
.container .seven.columns,
|
139
|
+
.container .eight.columns,
|
140
|
+
.container .nine.columns,
|
141
|
+
.container .ten.columns,
|
142
|
+
.container .eleven.columns,
|
143
|
+
.container .twelve.columns,
|
144
|
+
.container .thirteen.columns,
|
145
|
+
.container .fourteen.columns,
|
146
|
+
.container .fifteen.columns,
|
147
|
+
.container .sixteen.columns,
|
148
|
+
.container .one-third.column,
|
149
|
+
.container .two-thirds.column { width: 300px; }
|
150
|
+
|
151
|
+
/* Offsets */
|
152
|
+
.container .offset-by-one,
|
153
|
+
.container .offset-by-two,
|
154
|
+
.container .offset-by-three,
|
155
|
+
.container .offset-by-four,
|
156
|
+
.container .offset-by-five,
|
157
|
+
.container .offset-by-six,
|
158
|
+
.container .offset-by-seven,
|
159
|
+
.container .offset-by-eight,
|
160
|
+
.container .offset-by-nine,
|
161
|
+
.container .offset-by-ten,
|
162
|
+
.container .offset-by-eleven,
|
163
|
+
.container .offset-by-twelve,
|
164
|
+
.container .offset-by-thirteen,
|
165
|
+
.container .offset-by-fourteen,
|
166
|
+
.container .offset-by-fifteen { padding-left: 0; }
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
/* #Mobile (Landscape)
|
172
|
+
================================================== */
|
173
|
+
|
174
|
+
/* Note: Design for a width of 480px */
|
175
|
+
|
176
|
+
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
177
|
+
.container { width: 420px; }
|
178
|
+
.columns, .column { margin: 0; }
|
179
|
+
|
180
|
+
.container .one.column,
|
181
|
+
.container .two.columns,
|
182
|
+
.container .three.columns,
|
183
|
+
.container .four.columns,
|
184
|
+
.container .five.columns,
|
185
|
+
.container .six.columns,
|
186
|
+
.container .seven.columns,
|
187
|
+
.container .eight.columns,
|
188
|
+
.container .nine.columns,
|
189
|
+
.container .ten.columns,
|
190
|
+
.container .eleven.columns,
|
191
|
+
.container .twelve.columns,
|
192
|
+
.container .thirteen.columns,
|
193
|
+
.container .fourteen.columns,
|
194
|
+
.container .fifteen.columns,
|
195
|
+
.container .sixteen.columns,
|
196
|
+
.container .one-third.column,
|
197
|
+
.container .two-thirds.column { width: 420px; }
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
/* #Clearing
|
202
|
+
================================================== */
|
203
|
+
|
204
|
+
/* Self Clearing Goodness */
|
205
|
+
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
|
206
|
+
|
207
|
+
/* Use clearfix class on parent to clear nested columns,
|
208
|
+
or wrap each row of columns in a <div class="row"> */
|
209
|
+
.clearfix:before,
|
210
|
+
.clearfix:after,
|
211
|
+
.row:before,
|
212
|
+
.row:after {
|
213
|
+
content: '\0020';
|
214
|
+
display: block;
|
215
|
+
overflow: hidden;
|
216
|
+
visibility: hidden;
|
217
|
+
width: 0;
|
218
|
+
height: 0; }
|
219
|
+
.row:after,
|
220
|
+
.clearfix:after {
|
221
|
+
clear: both; }
|
222
|
+
.row,
|
223
|
+
.clearfix {
|
224
|
+
zoom: 1; }
|
225
|
+
|
226
|
+
/* You can also use a <br class="clear" /> to clear columns */
|
227
|
+
.clear {
|
228
|
+
clear: both;
|
229
|
+
display: block;
|
230
|
+
overflow: hidden;
|
231
|
+
visibility: hidden;
|
232
|
+
width: 0;
|
233
|
+
height: 0;
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
|