website_builder_engine 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.textile +7 -0
  3. data/Gemfile.lock +1 -1
  4. data/app/assets/stylesheets/website_builder_engine/welcome.css.scss +87 -0
  5. data/app/controllers/website_builder_engine/articles_controller.rb +1 -0
  6. data/app/models/article.rb +1 -0
  7. data/app/models/offerpage.rb +1 -0
  8. data/app/models/setting.rb +5 -1
  9. data/app/views/shared/_google_analytics.html.haml +11 -0
  10. data/app/views/website_builder_engine/articles/_form.html.haml +3 -0
  11. data/app/views/website_builder_engine/articles/template.html.haml +11 -4
  12. data/app/views/website_builder_engine/offerpages/_form.html.haml +3 -0
  13. data/app/views/website_builder_engine/offerpages/template.html.haml +11 -4
  14. data/app/views/website_builder_engine/settings/_form.html.haml +14 -2
  15. data/app/views/website_builder_engine/welcome/template.html.haml +21 -16
  16. data/spec/dummy/app/assets/stylesheets/application.css +28 -2
  17. data/spec/dummy/app/assets/stylesheets/articles.css.scss +87 -0
  18. data/spec/dummy/app/assets/stylesheets/base.css.scss +336 -0
  19. data/spec/dummy/app/assets/stylesheets/home.css.scss +7 -0
  20. data/spec/dummy/app/assets/stylesheets/layout.css.scss +64 -0
  21. data/spec/dummy/app/assets/stylesheets/normalize.css.scss +413 -0
  22. data/spec/dummy/app/assets/stylesheets/offerpages.css.scss +232 -0
  23. data/spec/dummy/app/assets/stylesheets/scaffolds.css.scss +56 -0
  24. data/spec/dummy/app/assets/stylesheets/settings.css.scss +7 -0
  25. data/spec/dummy/app/assets/stylesheets/skeleton.css.scss +237 -0
  26. data/spec/dummy/app/assets/stylesheets/welcome.css.scss +88 -0
  27. data/spec/dummy/log/development.log +752 -0
  28. data/spec/dummy/public/howto/using-rails-3-1.html +105 -0
  29. data/spec/dummy/public/index.html +94 -0
  30. data/spec/dummy/tmp/cache/assets/C62/1D0/sprockets%2F1638f87db345b13872695759502b54fe +0 -0
  31. data/spec/dummy/tmp/cache/assets/C73/800/sprockets%2Fe26c7a52215e3d8315b952630b7d6230 +0 -0
  32. data/spec/dummy/tmp/cache/assets/CD7/6F0/sprockets%2Fbd3936370d0f952ada5774e2230046ed +0 -0
  33. data/spec/dummy/tmp/cache/assets/CFA/F70/sprockets%2F3d96de8209591d59d678790b059ed4cb +0 -0
  34. data/spec/dummy/tmp/cache/assets/D17/4C0/sprockets%2Fb8f748b53e6b83e646f2114a34ca8a86 +0 -0
  35. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  36. data/spec/dummy/tmp/cache/assets/D3E/660/sprockets%2Ff27703f6505840cfcd80bce4f380c7a5 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D44/5E0/sprockets%2F9e993bc311cd8ad60bc66560b6629bd6 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D46/0F0/sprockets%2Fa788672c315b82d19c5db34f9bcf3a19 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  40. data/spec/dummy/tmp/cache/assets/D5E/170/sprockets%2F2f2229c70dcf195564d4d0fd6a12ac1a +0 -0
  41. data/spec/dummy/tmp/cache/assets/D79/9D0/sprockets%2F6ea17d7230964f04e6dd9cc9a724bf7d +0 -0
  42. data/spec/dummy/tmp/cache/assets/D9B/890/sprockets%2F350c8c72b1dbd7a84f85424b5cd4def1 +0 -0
  43. data/spec/dummy/tmp/cache/assets/DA7/4C0/sprockets%2F834c8b5df453ca373b66bca70d74fe8f +0 -0
  44. data/spec/dummy/tmp/cache/assets/DC8/280/sprockets%2Fa32ab71649e3db15eca95bcc3a7588da +0 -0
  45. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  46. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/articles.css.scssc +0 -0
  47. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/base.css.scssc +0 -0
  48. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/home.css.scssc +0 -0
  49. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/layout.css.scssc +0 -0
  50. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/normalize.css.scssc +0 -0
  51. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/offerpages.css.scssc +0 -0
  52. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/scaffolds.css.scssc +0 -0
  53. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/settings.css.scssc +0 -0
  54. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/skeleton.css.scssc +0 -0
  55. data/spec/dummy/tmp/cache/sass/0ab7c234fc1a58954e94a39dac695c435cc5d635/welcome.css.scssc +0 -0
  56. data/spec/dummy/tmp/cache/sass/a4c85d529bdb9cb90c9baac1d898e753aa526545/welcome.css.scssc +0 -0
  57. data/version.rb +1 -1
  58. metadata +96 -20
@@ -0,0 +1,336 @@
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 Content
12
+ ==================================================
13
+ #Reset & Basics
14
+ #Basic Styles
15
+ #Site Styles
16
+ #Typography
17
+ #Links
18
+ #Lists
19
+ #Images
20
+ #Buttons
21
+ #Tabs
22
+ #Forms
23
+ #Misc */
24
+
25
+
26
+ /* #Reset & Basics (Inspired by E. Meyers)
27
+ ================================================== */
28
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
29
+ margin: 0;
30
+ padding: 0;
31
+ border: 0;
32
+ font-size: 100%;
33
+ font: inherit;
34
+ vertical-align: baseline; }
35
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
36
+ display: block; }
37
+ body {
38
+ line-height: 1; }
39
+ ol, ul {
40
+ list-style: none; }
41
+ blockquote, q {
42
+ quotes: none; }
43
+ blockquote:before, blockquote:after,
44
+ q:before, q:after {
45
+ content: '';
46
+ content: none; }
47
+ table {
48
+ border-collapse: collapse;
49
+ border-spacing: 0; }
50
+
51
+
52
+ /* #Basic Styles
53
+ ================================================== */
54
+ body {
55
+ background: #fff;
56
+ font: 14px/21px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
57
+ color: #444;
58
+ -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
59
+ -webkit-text-size-adjust: none;
60
+ }
61
+
62
+
63
+ /* #Typography
64
+ ================================================== */
65
+ h1, h2, h3, h4, h5, h6 {
66
+ color: #181818;
67
+ font-family: "Georgia", "Times New Roman", Helvetica, Arial, sans-serif;
68
+ font-weight: normal; }
69
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
70
+ h1 { font-size: 46px; line-height: 50px; margin-bottom: 14px;}
71
+ h2 { font-size: 35px; line-height: 40px; margin-bottom: 10px; }
72
+ h3 { font-size: 28px; line-height: 34px; margin-bottom: 8px; }
73
+ h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; }
74
+ h5 { font-size: 17px; line-height: 24px; }
75
+ h6 { font-size: 14px; line-height: 21px; }
76
+ .subheader { color: #777; }
77
+
78
+ p { margin: 0 0 20px 0; }
79
+ p img { margin: 0; }
80
+ p.lead { font-size: 21px; line-height: 27px; color: #777; }
81
+
82
+ em { font-style: italic; }
83
+ strong { font-weight: bold; color: #333; }
84
+ small { font-size: 80%; }
85
+
86
+ /* Blockquotes */
87
+ blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; }
88
+ blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
89
+ blockquote cite { display: block; font-size: 12px; color: #555; }
90
+ blockquote cite:before { content: "\2014 \0020"; }
91
+ blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
92
+
93
+ hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
94
+
95
+
96
+ /* #Links
97
+ ================================================== */
98
+ a, a:visited { color: #333; text-decoration: underline; outline: 0; }
99
+ a:hover, a:focus { color: #000; }
100
+ p a, p a:visited { line-height: inherit; }
101
+
102
+
103
+ /* #Lists
104
+ ================================================== */
105
+ ul, ol { margin-bottom: 20px; }
106
+ ul { list-style: none outside; }
107
+ ol { list-style: decimal; }
108
+ ol, ul.square, ul.circle, ul.disc { margin-left: 30px; }
109
+ ul.square { list-style: square outside; }
110
+ ul.circle { list-style: circle outside; }
111
+ ul.disc { list-style: disc outside; }
112
+ ul ul, ul ol,
113
+ ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; }
114
+ ul ul li, ul ol li,
115
+ ol ol li, ol ul li { margin-bottom: 6px; }
116
+ li { line-height: 18px; margin-bottom: 12px; }
117
+ ul.large li { line-height: 21px; }
118
+ li p { line-height: 21px; }
119
+
120
+ /* #Images
121
+ ================================================== */
122
+
123
+ img.scale-with-grid {
124
+ max-width: 100%;
125
+ height: auto; }
126
+
127
+
128
+ /* #Buttons
129
+ ================================================== */
130
+
131
+ a.button,
132
+ button,
133
+ input[type="submit"],
134
+ input[type="reset"],
135
+ input[type="button"] {
136
+ background: #eee; /* Old browsers */
137
+ background: -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
138
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
139
+ background: -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
140
+ background: -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
141
+ background: -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
142
+ background: linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
143
+ border: 1px solid #aaa;
144
+ border-top: 1px solid #ccc;
145
+ border-left: 1px solid #ccc;
146
+ padding: 4px 12px;
147
+ -moz-border-radius: 3px;
148
+ -webkit-border-radius: 3px;
149
+ border-radius: 3px;
150
+ color: #444;
151
+ display: inline-block;
152
+ font-size: 11px;
153
+ font-weight: bold;
154
+ text-decoration: none;
155
+ text-shadow: 0 1px rgba(255, 255, 255, .75);
156
+ cursor: pointer;
157
+ margin-bottom: 20px;
158
+ line-height: 21px;
159
+ font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
160
+
161
+ a.button:hover,
162
+ button:hover,
163
+ input[type="submit"]:hover,
164
+ input[type="reset"]:hover,
165
+ input[type="button"]:hover {
166
+ color: #222;
167
+ background: #eee; /* Old browsers */
168
+ background: -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
169
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
170
+ background: -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
171
+ background: -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
172
+ background: -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
173
+ background: linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
174
+ border: 1px solid #888;
175
+ border-top: 1px solid #aaa;
176
+ border-left: 1px solid #aaa; }
177
+
178
+ a.button:active,
179
+ button:active,
180
+ input[type="submit"]:active,
181
+ input[type="reset"]:active,
182
+ input[type="button"]:active {
183
+ background: #eee; /* Old browsers */
184
+ background: -moz-linear-gradient(top, rgba(0,0,0,.3) 0%, rgba(255,255,255,.3) 100%); /* FF3.6+ */
185
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,.3)), color-stop(100%,rgba(255,255,255,.3))); /* Chrome,Safari4+ */
186
+ background: -webkit-linear-gradient(top, rgba(0,0,0,.3) 0%,rgba(255,255,255,.3) 100%); /* Chrome10+,Safari5.1+ */
187
+ background: -o-linear-gradient(top, rgba(0,0,0,.3) 0%,rgba(255,255,255,.3) 100%); /* Opera11.10+ */
188
+ background: -ms-linear-gradient(top, rgba(0,0,0,.3) 0%,rgba(255,255,255,.3) 100%); /* IE10+ */
189
+ background: linear-gradient(top, rgba(0,0,0,.3) 0%,rgba(255,255,255,.3) 100%); /* W3C */
190
+ border: 1px solid #888;
191
+ border-bottom: 1px solid #aaa;
192
+ border-right: 1px solid #aaa; }
193
+
194
+ .button.full-width,
195
+ button.full-width,
196
+ input[type="submit"].full-width,
197
+ input[type="reset"].full-width,
198
+ input[type="button"].full-width {
199
+ width: 100%;
200
+ padding-left: 0 !important;
201
+ padding-right: 0 !important;
202
+ text-align: center; }
203
+
204
+
205
+ /* #Tabs (activate in app.js)
206
+ ================================================== */
207
+ ul.tabs {
208
+ display: block;
209
+ margin: 0 0 20px 0;
210
+ padding: 0;
211
+ border-bottom: solid 1px #ddd; }
212
+ ul.tabs li {
213
+ display: block;
214
+ width: auto;
215
+ height: 30px;
216
+ padding: 0;
217
+ float: left;
218
+ margin-bottom: 0; }
219
+ ul.tabs li a {
220
+ display: block;
221
+ text-decoration: none;
222
+ width: auto;
223
+ height: 29px;
224
+ padding: 0px 20px;
225
+ line-height: 30px;
226
+ border: solid 1px #ddd;
227
+ border-width: 1px 0 0 1px;
228
+ margin: 0;
229
+ background: #f5f5f5;
230
+ font-size: 13px; }
231
+ ul.tabs li a.active {
232
+ background: #fff;
233
+ height: 30px;
234
+ position: relative;
235
+ top: -4px;
236
+ padding-top: 4px;
237
+ border-right-width: 1px;
238
+ margin: 0 -1px 0 0;
239
+ color: #111;
240
+ -moz-border-radius-topleft: 2px;
241
+ -webkit-border-top-left-radius: 2px;
242
+ border-top-left-radius: 2px;
243
+ -moz-border-radius-topright: 2px;
244
+ -webkit-border-top-right-radius: 2px;
245
+ border-top-right-radius: 2px; }
246
+ ul.tabs li:first-child a {
247
+ -moz-border-radius-topleft: 2px;
248
+ -webkit-border-top-left-radius: 2px;
249
+ border-top-left-radius: 2px; }
250
+ ul.tabs li:last-child a {
251
+ border-width: 1px 1px 0 1px;
252
+ -moz-border-radius-topright: 2px;
253
+ -webkit-border-top-right-radius: 2px;
254
+ border-top-right-radius: 2px; }
255
+
256
+ ul.tabs-content { margin: 0; display: block; }
257
+ ul.tabs-content > li { display:none; }
258
+ ul.tabs-content > li.active { display: block; }
259
+
260
+ /* Clearfixing tabs for beautiful stacking */
261
+ ul.tabs:before,
262
+ ul.tabs:after {
263
+ content: '\0020';
264
+ display: block;
265
+ overflow: hidden;
266
+ visibility: hidden;
267
+ width: 0;
268
+ height: 0; }
269
+ ul.tabs:after {
270
+ clear: both; }
271
+ ul.tabs {
272
+ zoom: 1; }
273
+
274
+
275
+ /* #Forms
276
+ ================================================== */
277
+
278
+ form {
279
+ margin-bottom: 20px; }
280
+ fieldset {
281
+ margin-bottom: 20px; }
282
+ input[type="text"],
283
+ input[type="password"],
284
+ input[type="email"],
285
+ textarea,
286
+ select {
287
+ border: 1px solid #ccc;
288
+ padding: 6px 4px;
289
+ outline: none;
290
+ -moz-border-radius: 2px;
291
+ -webkit-border-radius: 2px;
292
+ border-radius: 2px;
293
+ font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
294
+ color: #777;
295
+ margin: 0;
296
+ width: 210px;
297
+ max-width: 100%;
298
+ display: block;
299
+ margin-bottom: 20px;
300
+ background: #fff; }
301
+ select {
302
+ padding: 0; }
303
+ input[type="text"]:focus,
304
+ input[type="password"]:focus,
305
+ input[type="email"]:focus,
306
+ textarea:focus {
307
+ border: 1px solid #aaa;
308
+ color: #444;
309
+ -moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
310
+ -webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
311
+ box-shadow: 0 0 3px rgba(0,0,0,.2); }
312
+ textarea {
313
+ min-height: 60px; }
314
+ label,
315
+ legend {
316
+ display: block;
317
+ font-weight: bold;
318
+ font-size: 13px; }
319
+ select {
320
+ width: 220px; }
321
+ input[type="checkbox"] {
322
+ display: inline; }
323
+ label span,
324
+ legend span {
325
+ font-weight: normal;
326
+ font-size: 13px;
327
+ color: #444; }
328
+
329
+ /* #Misc
330
+ ================================================== */
331
+ .remove-bottom { margin-bottom: 0 !important; }
332
+ .half-bottom { margin-bottom: 10px !important; }
333
+ .add-bottom { margin-bottom: 20px !important; }
334
+
335
+
336
+
@@ -0,0 +1,7 @@
1
+ // Place all the styles related to the home controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
4
+
5
+ body.home {
6
+ // Place scoped styles here
7
+ }
@@ -0,0 +1,64 @@
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
+ /* Table of Content
11
+ ==================================================
12
+ #Site Styles
13
+ #Page Styles
14
+ #Media Queries
15
+ #Font-Face */
16
+
17
+ /* #Site Styles
18
+ ================================================== */
19
+
20
+ /* #Page Styles
21
+ ================================================== */
22
+
23
+ /* #Media Queries
24
+ ================================================== */
25
+
26
+ /* iPad Portrait/Browser */
27
+ @media only screen and (min-width: 768px) and (max-width: 991px) {}
28
+
29
+ /* Mobile/Browser */
30
+ @media only screen and (max-width: 767px) {}
31
+
32
+ /* Mobile Landscape/Browser */
33
+ @media only screen and (min-width: 480px) and (max-width: 767px) {}
34
+
35
+ /* Anything smaller than standard 960 */
36
+ @media only screen and (max-width: 959px) {}
37
+
38
+ /* iPad Portrait Only */
39
+ @media only screen and (min-width: 768px) and (max-width: 991px) and (max-device-width: 1000px) {}
40
+
41
+ /* Mobile Only */
42
+ @media only screen and (max-width: 767px) and (max-device-width: 1000px) {}
43
+
44
+ /* Mobile Landscape Only */
45
+ @media only screen and (min-width: 480px) and (max-width: 767px) and (max-device-width: 1000px) {}
46
+
47
+
48
+ /* #Font-Face
49
+ ================================================== */
50
+ /* This is the proper syntax for an @font-face file
51
+ Just create a "fonts" folder at the root,
52
+ copy your FontName into code below and remove
53
+ comment brackets */
54
+
55
+ /* @font-face {
56
+ font-family: 'FontName';
57
+ src: url('../fonts/FontName.eot');
58
+ src: url('../fonts/FontName.eot?iefix') format('eot'),
59
+ url('../fonts/FontName.woff') format('woff'),
60
+ url('../fonts/FontName.ttf') format('truetype'),
61
+ url('../fonts/FontName.svg#webfontZam02nTh') format('svg');
62
+ font-weight: normal;
63
+ font-style: normal; }
64
+ */