website_builder_engine 0.0.1

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 (102) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +20 -0
  3. data/Gemfile.lock +173 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.textile +260 -0
  6. data/Rakefile +26 -0
  7. data/app/assets/images/website_builder_engine/.gitkeep +0 -0
  8. data/app/assets/javascripts/website_builder_engine/application.js +9 -0
  9. data/app/assets/javascripts/website_builder_engine/articles.js.coffee +3 -0
  10. data/app/assets/javascripts/website_builder_engine/home.js.coffee +3 -0
  11. data/app/assets/javascripts/website_builder_engine/jqueryui.js +406 -0
  12. data/app/assets/javascripts/website_builder_engine/modernizr.js +4 -0
  13. data/app/assets/javascripts/website_builder_engine/offerpages.js.coffee +3 -0
  14. data/app/assets/javascripts/website_builder_engine/respond.js +2 -0
  15. data/app/assets/javascripts/website_builder_engine/settings.js.coffee +3 -0
  16. data/app/assets/javascripts/website_builder_engine/tabs.js +41 -0
  17. data/app/assets/stylesheets/website_builder_engine/application.css +33 -0
  18. data/app/assets/stylesheets/website_builder_engine/articles.css.scss +87 -0
  19. data/app/assets/stylesheets/website_builder_engine/base.css.scss +336 -0
  20. data/app/assets/stylesheets/website_builder_engine/home.css.scss +7 -0
  21. data/app/assets/stylesheets/website_builder_engine/layout.css.scss +64 -0
  22. data/app/assets/stylesheets/website_builder_engine/normalize.css.scss +413 -0
  23. data/app/assets/stylesheets/website_builder_engine/offerpages.css.scss +232 -0
  24. data/app/assets/stylesheets/website_builder_engine/scaffolds.css.scss +56 -0
  25. data/app/assets/stylesheets/website_builder_engine/settings.css.scss +7 -0
  26. data/app/assets/stylesheets/website_builder_engine/skeleton.css.scss +237 -0
  27. data/app/controllers/website_builder_engine/application_controller.rb +5 -0
  28. data/app/controllers/website_builder_engine/articles_controller.rb +113 -0
  29. data/app/controllers/website_builder_engine/home_controller.rb +7 -0
  30. data/app/controllers/website_builder_engine/offerpages_controller.rb +98 -0
  31. data/app/controllers/website_builder_engine/settings_controller.rb +85 -0
  32. data/app/helpers/website_builder_engine/application_helper.rb +4 -0
  33. data/app/models/article.rb +13 -0
  34. data/app/models/offerpage.rb +15 -0
  35. data/app/models/setting.rb +13 -0
  36. data/app/views/layouts/website_builder_engine/application.html.haml +22 -0
  37. data/app/views/layouts/website_builder_engine/home.html.haml +24 -0
  38. data/app/views/shared/_navigation.html.haml +3 -0
  39. data/app/views/website_builder_engine/articles/_form.html.haml +47 -0
  40. data/app/views/website_builder_engine/articles/edit.html.haml +7 -0
  41. data/app/views/website_builder_engine/articles/index.html.haml +16 -0
  42. data/app/views/website_builder_engine/articles/new.html.haml +5 -0
  43. data/app/views/website_builder_engine/articles/publish.html.haml +7 -0
  44. data/app/views/website_builder_engine/articles/show.html.haml +36 -0
  45. data/app/views/website_builder_engine/articles/template.html.haml +72 -0
  46. data/app/views/website_builder_engine/home/index.html.haml +26 -0
  47. data/app/views/website_builder_engine/offerpages/_form.html.haml +49 -0
  48. data/app/views/website_builder_engine/offerpages/edit.html.haml +7 -0
  49. data/app/views/website_builder_engine/offerpages/index.html.haml +16 -0
  50. data/app/views/website_builder_engine/offerpages/new.html.haml +5 -0
  51. data/app/views/website_builder_engine/offerpages/publish.html.haml +7 -0
  52. data/app/views/website_builder_engine/offerpages/show.html.haml +37 -0
  53. data/app/views/website_builder_engine/offerpages/template.html.haml +71 -0
  54. data/app/views/website_builder_engine/settings/_form.html.haml +40 -0
  55. data/app/views/website_builder_engine/settings/edit.html.haml +7 -0
  56. data/app/views/website_builder_engine/settings/index.html.haml +19 -0
  57. data/app/views/website_builder_engine/settings/new.html.haml +5 -0
  58. data/app/views/website_builder_engine/settings/show.html.haml +34 -0
  59. data/app/views/website_builder_engine/welcome/template.html.haml +66 -0
  60. data/config/routes.rb +19 -0
  61. data/db/seeds.rb +68 -0
  62. data/lib/tasks/website_builder_engine_tasks.rake +4 -0
  63. data/lib/website_builder_engine.rb +4 -0
  64. data/lib/website_builder_engine/engine.rb +5 -0
  65. data/script/rails +6 -0
  66. data/spec/dummy/Rakefile +7 -0
  67. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  68. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  69. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  70. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  71. data/spec/dummy/app/mailers/.gitkeep +0 -0
  72. data/spec/dummy/app/models/.gitkeep +0 -0
  73. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  74. data/spec/dummy/config.ru +4 -0
  75. data/spec/dummy/config/application.rb +51 -0
  76. data/spec/dummy/config/boot.rb +10 -0
  77. data/spec/dummy/config/database.yml +25 -0
  78. data/spec/dummy/config/environment.rb +5 -0
  79. data/spec/dummy/config/environments/development.rb +27 -0
  80. data/spec/dummy/config/environments/production.rb +51 -0
  81. data/spec/dummy/config/environments/test.rb +39 -0
  82. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  83. data/spec/dummy/config/initializers/inflections.rb +10 -0
  84. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  85. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  86. data/spec/dummy/config/initializers/session_store.rb +8 -0
  87. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  88. data/spec/dummy/config/locales/en.yml +5 -0
  89. data/spec/dummy/config/mongoid.yml +20 -0
  90. data/spec/dummy/config/routes.rb +3 -0
  91. data/spec/dummy/db/seeds.rb +68 -0
  92. data/spec/dummy/lib/assets/.gitkeep +0 -0
  93. data/spec/dummy/log/.gitkeep +0 -0
  94. data/spec/dummy/public/404.html +26 -0
  95. data/spec/dummy/public/422.html +26 -0
  96. data/spec/dummy/public/500.html +26 -0
  97. data/spec/dummy/public/favicon.ico +0 -0
  98. data/spec/dummy/script/rails +6 -0
  99. data/spec/spec_helper.rb +41 -0
  100. data/version.rb +3 -0
  101. data/website_builder_engine.gemspec +31 -0
  102. metadata +381 -0
@@ -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
+ */
@@ -0,0 +1,413 @@
1
+ /*! normalize.css 2011-06-27T20:08 UTC · http://github.com/necolas/normalize.css */
2
+
3
+ /* =============================================================================
4
+ HTML5 element display
5
+ ========================================================================== */
6
+
7
+ /*
8
+ * Corrects block display not defined in IE6/7/8/9 & FF3
9
+ */
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ nav,
20
+ section {
21
+ display: block;
22
+ }
23
+
24
+ /*
25
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
26
+ * Known limitation: IE6 will not apply style for 'audio[controls]'
27
+ */
28
+
29
+ audio[controls],
30
+ canvas,
31
+ video {
32
+ display: inline-block;
33
+ *display: inline;
34
+ *zoom: 1;
35
+ }
36
+
37
+
38
+ /* =============================================================================
39
+ Base
40
+ ========================================================================== */
41
+
42
+ /*
43
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
44
+ * http://clagnut.com/blog/348/#c790
45
+ * 2. Keeps page centred in all browsers regardless of content height
46
+ * 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
47
+ * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
48
+ * 4. Prevents iOS text size adjust after orientation change, without disabling user zoom
49
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
50
+ */
51
+
52
+ html {
53
+ font-size: 100%; /* 1 */
54
+ overflow-y: scroll; /* 2 */
55
+ -webkit-tap-highlight-color: rgba(0,0,0,0); /* 3 */
56
+ -webkit-text-size-adjust: 100%; /* 4 */
57
+ -ms-text-size-adjust: 100%; /* 4 */
58
+ }
59
+
60
+ /*
61
+ * Addresses margins handled incorrectly in IE6/7
62
+ */
63
+
64
+ body {
65
+ margin: 0;
66
+ }
67
+
68
+ /*
69
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
70
+ */
71
+
72
+ body,
73
+ button,
74
+ input,
75
+ select,
76
+ textarea {
77
+ font-family: sans-serif;
78
+ }
79
+
80
+
81
+ /* =============================================================================
82
+ Links
83
+ ========================================================================== */
84
+
85
+ a {
86
+ color: #00e;
87
+ }
88
+
89
+ a:visited {
90
+ color: #551a8b;
91
+ }
92
+
93
+ /*
94
+ * Addresses outline displayed oddly in Chrome
95
+ */
96
+
97
+ a:focus {
98
+ outline: thin dotted;
99
+ }
100
+
101
+ /*
102
+ * Improves readability when focused and also mouse hovered in all browsers
103
+ * people.opera.com/patrickl/experiments/keyboard/test
104
+ */
105
+
106
+ a:hover,
107
+ a:active {
108
+ outline: 0;
109
+ }
110
+
111
+
112
+ /* =============================================================================
113
+ Typography
114
+ ========================================================================== */
115
+
116
+ /*
117
+ * Addresses styling not present in IE7/8/9, S5, Chrome
118
+ */
119
+
120
+ abbr[title] {
121
+ border-bottom: 1px dotted;
122
+ }
123
+
124
+ /*
125
+ * Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
126
+ */
127
+
128
+ b,
129
+ strong {
130
+ font-weight: bold;
131
+ }
132
+
133
+ blockquote {
134
+ margin: 1em 40px;
135
+ }
136
+
137
+ /*
138
+ * Addresses styling not present in S5, Chrome
139
+ */
140
+
141
+ dfn {
142
+ font-style: italic;
143
+ }
144
+
145
+ /*
146
+ * Addresses styling not present in IE6/7/8/9
147
+ */
148
+
149
+ mark {
150
+ background: #ff0;
151
+ color: #000;
152
+ }
153
+
154
+ /*
155
+ * Corrects font family set oddly in IE6, S5, Chrome
156
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
157
+ */
158
+
159
+ pre,
160
+ code,
161
+ kbd,
162
+ samp {
163
+ font-family: monospace, monospace;
164
+ _font-family: 'courier new', monospace;
165
+ font-size: 1em;
166
+ }
167
+
168
+ /*
169
+ * Improves readability of pre-formatted text in all browsers
170
+ */
171
+
172
+ pre {
173
+ white-space: pre;
174
+ white-space: pre-wrap;
175
+ word-wrap: break-word;
176
+ }
177
+
178
+ /*
179
+ * 1. Addresses CSS quotes not supported in IE6/7
180
+ * 2. Addresses quote property not supported in S4
181
+ */
182
+
183
+ /* 1 */
184
+
185
+ q {
186
+ quotes: none;
187
+ }
188
+
189
+ /* 2 */
190
+
191
+ q:before,
192
+ q:after {
193
+ content: '';
194
+ content: none;
195
+ }
196
+
197
+ small {
198
+ font-size: 75%;
199
+ }
200
+
201
+ /*
202
+ * Prevents sub and sup affecting line-height in all browsers
203
+ * gist.github.com/413930
204
+ */
205
+
206
+ sub,
207
+ sup {
208
+ font-size: 75%;
209
+ line-height: 0;
210
+ position: relative;
211
+ vertical-align: baseline;
212
+ }
213
+
214
+ sup {
215
+ top: -0.5em;
216
+ }
217
+
218
+ sub {
219
+ bottom: -0.25em;
220
+ }
221
+
222
+
223
+ /* =============================================================================
224
+ Lists
225
+ ========================================================================== */
226
+
227
+ ul,
228
+ ol {
229
+ margin: 1em 0;
230
+ padding: 0 0 0 40px;
231
+ }
232
+
233
+ dd {
234
+ margin: 0 0 0 40px;
235
+ }
236
+
237
+ nav ul,
238
+ nav ol {
239
+ list-style: none;
240
+ }
241
+
242
+
243
+ /* =============================================================================
244
+ Embedded content
245
+ ========================================================================== */
246
+
247
+ /*
248
+ * 1. Removes border when inside 'a' element in IE6/7/8/9
249
+ * 2. Improves image quality when scaled in IE7
250
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
251
+ */
252
+
253
+ img {
254
+ border: 0; /* 1 */
255
+ -ms-interpolation-mode: bicubic; /* 2 */
256
+ }
257
+
258
+ /*
259
+ * Corrects overflow displayed oddly in IE9
260
+ */
261
+
262
+ svg:not(:root) {
263
+ overflow: hidden;
264
+ }
265
+
266
+
267
+ /* =============================================================================
268
+ Figures
269
+ ========================================================================== */
270
+
271
+ /*
272
+ * Addresses margin not present in IE6/7/8/9, S5, O11
273
+ */
274
+
275
+ figure {
276
+ margin: 0;
277
+ }
278
+
279
+
280
+ /* =============================================================================
281
+ Forms
282
+ ========================================================================== */
283
+
284
+ /*
285
+ * Corrects margin displayed oddly in IE6/7
286
+ */
287
+
288
+ form {
289
+ margin: 0;
290
+ }
291
+
292
+ /*
293
+ * Define consistent margin and padding
294
+ */
295
+
296
+ fieldset {
297
+ margin: 0 2px;
298
+ padding: 0.35em 0.625em 0.75em;
299
+ }
300
+
301
+ /*
302
+ * 1. Corrects color not being inherited in IE6/7/8/9
303
+ * 2. Corrects alignment displayed oddly in IE6/7
304
+ */
305
+
306
+ legend {
307
+ border: 0; /* 1 */
308
+ *margin-left: -7px; /* 2 */
309
+ }
310
+
311
+ /*
312
+ * 1. Corrects font size not being inherited in all browsers
313
+ * 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
314
+ * 3. Improves appearance and consistency in all browsers
315
+ */
316
+
317
+ button,
318
+ input,
319
+ select,
320
+ textarea {
321
+ font-size: 100%; /* 1 */
322
+ margin: 0; /* 2 */
323
+ vertical-align: baseline; /* 3 */
324
+ *vertical-align: middle; /* 3 */
325
+ }
326
+
327
+ /*
328
+ * 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
329
+ * 2. Corrects inner spacing displayed oddly in IE6/7
330
+ */
331
+
332
+ button,
333
+ input {
334
+ line-height: normal; /* 1 */
335
+ *overflow: visible; /* 2 */
336
+ }
337
+
338
+ /*
339
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
340
+ * 2. Corrects inability to style clickable 'input' types in iOS
341
+ */
342
+
343
+ button,
344
+ input[type="button"],
345
+ input[type="reset"],
346
+ input[type="submit"] {
347
+ cursor: pointer; /* 1 */
348
+ -webkit-appearance: button; /* 2 */
349
+ }
350
+
351
+ /*
352
+ * Addresses box sizing set to content-box in IE8/9
353
+ */
354
+
355
+ input[type="checkbox"],
356
+ input[type="radio"] {
357
+ box-sizing: border-box;
358
+ }
359
+
360
+ /*
361
+ * 1. Addresses appearance set to searchfield in S5, Chrome
362
+ * 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
363
+ */
364
+
365
+ input[type="search"] {
366
+ -webkit-appearance: textfield; /* 1 */
367
+ -moz-box-sizing: content-box;
368
+ -webkit-box-sizing: content-box; /* 2 */
369
+ box-sizing: content-box;
370
+ }
371
+
372
+ /*
373
+ * Corrects inner padding displayed oddly in S5, Chrome on OSX
374
+ */
375
+
376
+ input[type="search"]::-webkit-search-decoration {
377
+ -webkit-appearance: none;
378
+ }
379
+
380
+ /*
381
+ * Corrects inner padding and border displayed oddly in FF3/4
382
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
383
+ */
384
+
385
+ button::-moz-focus-inner,
386
+ input::-moz-focus-inner {
387
+ border: 0;
388
+ padding: 0;
389
+ }
390
+
391
+ /*
392
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
393
+ * 2. Improves readability and alignment in all browsers
394
+ */
395
+
396
+ textarea {
397
+ overflow: auto; /* 1 */
398
+ vertical-align: top; /* 2 */
399
+ }
400
+
401
+
402
+ /* =============================================================================
403
+ Tables
404
+ ========================================================================== */
405
+
406
+ /*
407
+ * Remove most spacing between table cells
408
+ */
409
+
410
+ table {
411
+ border-collapse: collapse;
412
+ border-spacing: 0;
413
+ }