locomotivecms_wagon 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/generators/blank/config/site.yml.tt +20 -6
- data/generators/bootstrap/config/site.yml.tt +20 -6
- data/generators/{bootstrap → bootstrap2}/Gemfile.tt +0 -0
- data/generators/{bootstrap → bootstrap2}/app/content_types/.empty_directory +0 -0
- data/generators/{bootstrap → bootstrap2}/app/views/pages/404.liquid +0 -0
- data/generators/{bootstrap → bootstrap2}/app/views/pages/404.liquid.haml +0 -0
- data/generators/{bootstrap → bootstrap2}/app/views/pages/index.liquid +1 -1
- data/generators/{bootstrap → bootstrap2}/app/views/pages/index.liquid.haml +0 -0
- data/generators/{bootstrap → bootstrap2}/app/views/snippets/footer.liquid +0 -0
- data/generators/{bootstrap → bootstrap2}/app/views/snippets/footer.liquid.haml +0 -0
- data/generators/{bootstrap → bootstrap2}/config/deploy.yml +0 -0
- data/generators/bootstrap2/config/site.yml.tt +34 -0
- data/generators/{bootstrap → bootstrap2}/config/translations.yml +0 -0
- data/generators/{bootstrap → bootstrap2}/config.ru +0 -0
- data/generators/{bootstrap → bootstrap2}/data/.empty_directory +0 -0
- data/generators/bootstrap2/public/fonts/FontAwesome.otf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.eot +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.svg +399 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.ttf +0 -0
- data/generators/bootstrap2/public/fonts/fontawesome-webfont.woff +0 -0
- data/generators/{bootstrap → bootstrap2}/public/javascripts/bootstrap.js +230 -109
- data/generators/bootstrap2/public/javascripts/bootstrap.min.js +6 -0
- data/generators/{bootstrap → bootstrap2}/public/samples/.empty_directory +0 -0
- data/generators/{bootstrap → bootstrap2}/public/stylesheets/application.css.scss +0 -0
- data/generators/{bootstrap → bootstrap2}/public/stylesheets/bootstrap-responsive.css +26 -9
- data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.min.css +9 -0
- data/generators/{bootstrap → bootstrap2}/public/stylesheets/bootstrap.css +2961 -3045
- data/generators/bootstrap2/public/stylesheets/bootstrap.min.css +9 -0
- data/generators/{bootstrap → bootstrap2}/public/stylesheets/fonts/awesome.css.scss +0 -0
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.css +1203 -0
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.min.css +384 -0
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.css +1470 -0
- data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.min.css +403 -0
- data/generators/bootstrap3/Gemfile.tt +23 -0
- data/generators/bootstrap3/app/content_types/.empty_directory +1 -0
- data/generators/bootstrap3/app/views/pages/404.liquid +13 -0
- data/generators/bootstrap3/app/views/pages/404.liquid.haml +10 -0
- data/generators/bootstrap3/app/views/pages/index.liquid +779 -0
- data/generators/bootstrap3/app/views/pages/index.liquid.haml +1058 -0
- data/generators/bootstrap3/app/views/snippets/footer.liquid +3 -0
- data/generators/bootstrap3/app/views/snippets/footer.liquid.haml +2 -0
- data/generators/bootstrap3/config/deploy.yml +15 -0
- data/generators/bootstrap3/config/site.yml.tt +19 -0
- data/generators/bootstrap3/config/translations.yml +8 -0
- data/generators/bootstrap3/config.ru +3 -0
- data/generators/bootstrap3/data/.empty_directory +1 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +228 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/generators/bootstrap3/public/javascripts/bootstrap.js +1999 -0
- data/generators/bootstrap3/public/javascripts/bootstrap.min.js +6 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-114-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-144-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-57-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-72-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/favicon.png +0 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.css +384 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap-theme.min.css +1 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap.css +6805 -0
- data/generators/bootstrap3/public/stylesheets/bootstrap.min.css +9 -0
- data/generators/foundation/app/views/pages/index.liquid +13 -18
- data/generators/foundation/app/views/pages/index.liquid.haml +51 -58
- data/generators/foundation/app/views/snippets/footer.liquid +12 -12
- data/generators/foundation/app/views/snippets/footer.liquid.haml +4 -5
- data/generators/foundation/config/site.yml.tt +20 -6
- data/generators/foundation/public/javascripts/foundation/foundation.abide.js +194 -0
- data/generators/foundation/public/javascripts/foundation/foundation.alerts.js +11 -6
- data/generators/foundation/public/javascripts/foundation/foundation.clearing.js +6 -6
- data/generators/foundation/public/javascripts/foundation/foundation.cookie.js +1 -1
- data/generators/foundation/public/javascripts/foundation/foundation.dropdown.js +19 -14
- data/generators/foundation/public/javascripts/foundation/foundation.forms.js +77 -37
- data/generators/foundation/public/javascripts/foundation/foundation.interchange.js +33 -24
- data/generators/foundation/public/javascripts/foundation/foundation.joyride.js +17 -9
- data/generators/foundation/public/javascripts/foundation/foundation.js +30 -13
- data/generators/foundation/public/javascripts/foundation/foundation.magellan.js +9 -5
- data/generators/foundation/public/javascripts/foundation/foundation.orbit.js +361 -319
- data/generators/foundation/public/javascripts/foundation/foundation.placeholder.js +426 -159
- data/generators/foundation/public/javascripts/foundation/foundation.reveal.js +42 -19
- data/generators/foundation/public/javascripts/foundation/foundation.section.js +322 -308
- data/generators/foundation/public/javascripts/foundation/foundation.tooltips.js +5 -4
- data/generators/foundation/public/javascripts/foundation/foundation.topbar.js +144 -71
- data/generators/foundation/public/javascripts/foundation.min.js +15 -32
- data/generators/foundation/public/javascripts/vendor/custom.modernizr.js +1 -1
- data/generators/foundation/public/javascripts/vendor/jquery.js +4389 -4197
- data/generators/foundation/public/javascripts/vendor/zepto.js +117 -1
- data/generators/foundation/public/stylesheets/foundation.css +1145 -668
- data/generators/foundation/public/stylesheets/foundation.min.css +1 -440
- data/generators/foundation/public/stylesheets/normalize.css +162 -91
- data/lib/locomotive/wagon/exceptions.rb +1 -1
- data/lib/locomotive/wagon/generators/site/bootstrap2.rb +35 -0
- data/lib/locomotive/wagon/generators/site/{bootstrap.rb → bootstrap3.rb} +3 -3
- data/lib/locomotive/wagon/generators/site/foundation.rb +1 -1
- data/lib/locomotive/wagon/generators/site.rb +2 -1
- data/lib/locomotive/wagon/liquid/drops/base.rb +4 -2
- data/lib/locomotive/wagon/liquid/drops/content_entry.rb +4 -4
- data/lib/locomotive/wagon/liquid/drops/page.rb +3 -3
- data/lib/locomotive/wagon/liquid/drops/site.rb +3 -3
- data/lib/locomotive/wagon/liquid/tags/link_to.rb +2 -1
- data/lib/locomotive/wagon/misc/better_errors.rb +1 -1
- data/lib/locomotive/wagon/server/renderer.rb +9 -2
- data/lib/locomotive/wagon/server.rb +1 -3
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +2 -2
- data/spec/integration/server/basic_spec.rb +7 -0
- metadata +68 -35
- data/generators/bootstrap/public/fonts/FontAwesome.otf +0 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.eot +0 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.ttf +0 -0
- data/generators/bootstrap/public/fonts/fontawesome-webfont.woff +0 -0
- data/generators/bootstrap/public/javascripts/bootstrap.min.js +0 -6
- data/generators/bootstrap/public/stylesheets/bootstrap-responsive.min.css +0 -9
- data/generators/bootstrap/public/stylesheets/bootstrap.min.css +0 -726
- data/generators/bootstrap/public/stylesheets/fonts/font-awesome-ie7.min.css +0 -23
- data/generators/bootstrap/public/stylesheets/fonts/font-awesome.css +0 -460
- data/lib/locomotive/wagon/server/not_found.rb +0 -19
@@ -1,10 +1,13 @@
|
|
1
|
-
|
1
|
+
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
|
2
|
+
|
2
3
|
/* ==========================================================================
|
3
4
|
HTML5 display definitions
|
4
5
|
========================================================================== */
|
6
|
+
|
5
7
|
/**
|
6
8
|
* Correct `block` display not defined in IE 8/9.
|
7
9
|
*/
|
10
|
+
|
8
11
|
article,
|
9
12
|
aside,
|
10
13
|
details,
|
@@ -17,233 +20,290 @@ main,
|
|
17
20
|
nav,
|
18
21
|
section,
|
19
22
|
summary {
|
20
|
-
|
23
|
+
display: block;
|
24
|
+
}
|
21
25
|
|
22
26
|
/**
|
23
27
|
* Correct `inline-block` display not defined in IE 8/9.
|
24
28
|
*/
|
29
|
+
|
25
30
|
audio,
|
26
31
|
canvas,
|
27
32
|
video {
|
28
|
-
|
33
|
+
display: inline-block;
|
34
|
+
}
|
29
35
|
|
30
36
|
/**
|
31
37
|
* Prevent modern browsers from displaying `audio` without controls.
|
32
38
|
* Remove excess height in iOS 5 devices.
|
33
39
|
*/
|
40
|
+
|
34
41
|
audio:not([controls]) {
|
35
|
-
|
36
|
-
|
42
|
+
display: none;
|
43
|
+
height: 0;
|
44
|
+
}
|
37
45
|
|
38
46
|
/**
|
39
|
-
* Address styling not present in IE 8/9.
|
47
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
48
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
40
49
|
*/
|
41
|
-
|
42
|
-
|
50
|
+
|
51
|
+
[hidden],
|
52
|
+
template {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
script {
|
57
|
+
display: none !important;
|
58
|
+
}
|
43
59
|
|
44
60
|
/* ==========================================================================
|
45
61
|
Base
|
46
62
|
========================================================================== */
|
63
|
+
|
47
64
|
/**
|
48
|
-
* 1.
|
49
|
-
*
|
50
|
-
* 2. Prevent system color scheme's text color being used in Firefox, IE, and
|
51
|
-
* Opera.
|
52
|
-
* 3. Set default font family to sans-serif.
|
53
|
-
* 4. Prevent iOS text size adjust after orientation change, without disabling
|
65
|
+
* 1. Set default font family to sans-serif.
|
66
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
54
67
|
* user zoom.
|
55
68
|
*/
|
69
|
+
|
56
70
|
html {
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
font-family: sans-serif;
|
62
|
-
/* 3 */
|
63
|
-
-ms-text-size-adjust: 100%;
|
64
|
-
/* 4 */
|
65
|
-
-webkit-text-size-adjust: 100%;
|
66
|
-
/* 4 */ }
|
71
|
+
font-family: sans-serif; /* 1 */
|
72
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
73
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
74
|
+
}
|
67
75
|
|
68
76
|
/**
|
69
77
|
* Remove default margin.
|
70
78
|
*/
|
79
|
+
|
71
80
|
body {
|
72
|
-
|
81
|
+
margin: 0;
|
82
|
+
}
|
73
83
|
|
74
84
|
/* ==========================================================================
|
75
85
|
Links
|
76
86
|
========================================================================== */
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Remove the gray background color from active links in IE 10.
|
90
|
+
*/
|
91
|
+
|
92
|
+
a {
|
93
|
+
background: transparent;
|
94
|
+
}
|
95
|
+
|
77
96
|
/**
|
78
97
|
* Address `outline` inconsistency between Chrome and other browsers.
|
79
98
|
*/
|
99
|
+
|
80
100
|
a:focus {
|
81
|
-
|
101
|
+
outline: thin dotted;
|
102
|
+
}
|
82
103
|
|
83
104
|
/**
|
84
105
|
* Improve readability when focused and also mouse hovered in all browsers.
|
85
106
|
*/
|
107
|
+
|
86
108
|
a:active,
|
87
109
|
a:hover {
|
88
|
-
|
110
|
+
outline: 0;
|
111
|
+
}
|
89
112
|
|
90
113
|
/* ==========================================================================
|
91
114
|
Typography
|
92
115
|
========================================================================== */
|
116
|
+
|
93
117
|
/**
|
94
118
|
* Address variable `h1` font-size and margin within `section` and `article`
|
95
119
|
* contexts in Firefox 4+, Safari 5, and Chrome.
|
96
120
|
*/
|
121
|
+
|
97
122
|
h1 {
|
98
|
-
|
99
|
-
|
123
|
+
font-size: 2em;
|
124
|
+
margin: 0.67em 0;
|
125
|
+
}
|
100
126
|
|
101
127
|
/**
|
102
128
|
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
103
129
|
*/
|
130
|
+
|
104
131
|
abbr[title] {
|
105
|
-
|
132
|
+
border-bottom: 1px dotted;
|
133
|
+
}
|
106
134
|
|
107
135
|
/**
|
108
136
|
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
109
137
|
*/
|
138
|
+
|
110
139
|
b,
|
111
140
|
strong {
|
112
|
-
|
141
|
+
font-weight: bold;
|
142
|
+
}
|
113
143
|
|
114
144
|
/**
|
115
145
|
* Address styling not present in Safari 5 and Chrome.
|
116
146
|
*/
|
147
|
+
|
117
148
|
dfn {
|
118
|
-
|
149
|
+
font-style: italic;
|
150
|
+
}
|
119
151
|
|
120
152
|
/**
|
121
153
|
* Address differences between Firefox and other browsers.
|
122
154
|
*/
|
155
|
+
|
123
156
|
hr {
|
124
|
-
|
125
|
-
|
126
|
-
|
157
|
+
-moz-box-sizing: content-box;
|
158
|
+
box-sizing: content-box;
|
159
|
+
height: 0;
|
160
|
+
}
|
127
161
|
|
128
162
|
/**
|
129
163
|
* Address styling not present in IE 8/9.
|
130
164
|
*/
|
165
|
+
|
131
166
|
mark {
|
132
|
-
|
133
|
-
|
167
|
+
background: #ff0;
|
168
|
+
color: #000;
|
169
|
+
}
|
134
170
|
|
135
171
|
/**
|
136
172
|
* Correct font family set oddly in Safari 5 and Chrome.
|
137
173
|
*/
|
174
|
+
|
138
175
|
code,
|
139
176
|
kbd,
|
140
177
|
pre,
|
141
178
|
samp {
|
142
|
-
|
143
|
-
|
179
|
+
font-family: monospace, serif;
|
180
|
+
font-size: 1em;
|
181
|
+
}
|
144
182
|
|
145
183
|
/**
|
146
184
|
* Improve readability of pre-formatted text in all browsers.
|
147
185
|
*/
|
186
|
+
|
148
187
|
pre {
|
149
|
-
|
188
|
+
white-space: pre-wrap;
|
189
|
+
}
|
150
190
|
|
151
191
|
/**
|
152
192
|
* Set consistent quote types.
|
153
193
|
*/
|
194
|
+
|
154
195
|
q {
|
155
|
-
|
196
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
197
|
+
}
|
156
198
|
|
157
199
|
/**
|
158
200
|
* Address inconsistent and variable font size in all browsers.
|
159
201
|
*/
|
202
|
+
|
160
203
|
small {
|
161
|
-
|
204
|
+
font-size: 80%;
|
205
|
+
}
|
162
206
|
|
163
207
|
/**
|
164
208
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
165
209
|
*/
|
210
|
+
|
166
211
|
sub,
|
167
212
|
sup {
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
213
|
+
font-size: 75%;
|
214
|
+
line-height: 0;
|
215
|
+
position: relative;
|
216
|
+
vertical-align: baseline;
|
217
|
+
}
|
172
218
|
|
173
219
|
sup {
|
174
|
-
|
220
|
+
top: -0.5em;
|
221
|
+
}
|
175
222
|
|
176
223
|
sub {
|
177
|
-
|
224
|
+
bottom: -0.25em;
|
225
|
+
}
|
178
226
|
|
179
227
|
/* ==========================================================================
|
180
228
|
Embedded content
|
181
229
|
========================================================================== */
|
230
|
+
|
182
231
|
/**
|
183
232
|
* Remove border when inside `a` element in IE 8/9.
|
184
233
|
*/
|
234
|
+
|
185
235
|
img {
|
186
|
-
|
236
|
+
border: 0;
|
237
|
+
}
|
187
238
|
|
188
239
|
/**
|
189
240
|
* Correct overflow displayed oddly in IE 9.
|
190
241
|
*/
|
242
|
+
|
191
243
|
svg:not(:root) {
|
192
|
-
|
244
|
+
overflow: hidden;
|
245
|
+
}
|
193
246
|
|
194
247
|
/* ==========================================================================
|
195
248
|
Figures
|
196
249
|
========================================================================== */
|
250
|
+
|
197
251
|
/**
|
198
252
|
* Address margin not present in IE 8/9 and Safari 5.
|
199
253
|
*/
|
254
|
+
|
200
255
|
figure {
|
201
|
-
|
256
|
+
margin: 0;
|
257
|
+
}
|
202
258
|
|
203
259
|
/* ==========================================================================
|
204
260
|
Forms
|
205
261
|
========================================================================== */
|
262
|
+
|
206
263
|
/**
|
207
264
|
* Define consistent border, margin, and padding.
|
208
265
|
*/
|
266
|
+
|
209
267
|
fieldset {
|
210
|
-
|
211
|
-
|
212
|
-
|
268
|
+
border: 1px solid #c0c0c0;
|
269
|
+
margin: 0 2px;
|
270
|
+
padding: 0.35em 0.625em 0.75em;
|
271
|
+
}
|
213
272
|
|
214
273
|
/**
|
215
274
|
* 1. Correct `color` not being inherited in IE 8/9.
|
216
275
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
217
276
|
*/
|
277
|
+
|
218
278
|
legend {
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
/* 2 */ }
|
279
|
+
border: 0; /* 1 */
|
280
|
+
padding: 0; /* 2 */
|
281
|
+
}
|
223
282
|
|
224
283
|
/**
|
225
284
|
* 1. Correct font family not being inherited in all browsers.
|
226
285
|
* 2. Correct font size not being inherited in all browsers.
|
227
286
|
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
228
287
|
*/
|
288
|
+
|
229
289
|
button,
|
230
290
|
input,
|
231
291
|
select,
|
232
292
|
textarea {
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
margin: 0;
|
238
|
-
/* 3 */ }
|
293
|
+
font-family: inherit; /* 1 */
|
294
|
+
font-size: 100%; /* 2 */
|
295
|
+
margin: 0; /* 3 */
|
296
|
+
}
|
239
297
|
|
240
298
|
/**
|
241
299
|
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
242
300
|
* the UA stylesheet.
|
243
301
|
*/
|
302
|
+
|
244
303
|
button,
|
245
304
|
input {
|
246
|
-
|
305
|
+
line-height: normal;
|
306
|
+
}
|
247
307
|
|
248
308
|
/**
|
249
309
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
@@ -251,9 +311,11 @@ input {
|
|
251
311
|
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
252
312
|
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
253
313
|
*/
|
314
|
+
|
254
315
|
button,
|
255
316
|
select {
|
256
|
-
|
317
|
+
text-transform: none;
|
318
|
+
}
|
257
319
|
|
258
320
|
/**
|
259
321
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
@@ -262,78 +324,87 @@ select {
|
|
262
324
|
* 3. Improve usability and consistency of cursor style between image-type
|
263
325
|
* `input` and others.
|
264
326
|
*/
|
327
|
+
|
265
328
|
button,
|
266
|
-
html input[type="button"],
|
329
|
+
html input[type="button"], /* 1 */
|
267
330
|
input[type="reset"],
|
268
331
|
input[type="submit"] {
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
/* 3 */ }
|
332
|
+
-webkit-appearance: button; /* 2 */
|
333
|
+
cursor: pointer; /* 3 */
|
334
|
+
}
|
273
335
|
|
274
336
|
/**
|
275
337
|
* Re-set default cursor for disabled elements.
|
276
338
|
*/
|
339
|
+
|
277
340
|
button[disabled],
|
278
341
|
html input[disabled] {
|
279
|
-
|
342
|
+
cursor: default;
|
343
|
+
}
|
280
344
|
|
281
345
|
/**
|
282
346
|
* 1. Address box sizing set to `content-box` in IE 8/9.
|
283
347
|
* 2. Remove excess padding in IE 8/9.
|
284
348
|
*/
|
349
|
+
|
285
350
|
input[type="checkbox"],
|
286
351
|
input[type="radio"] {
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
/* 2 */ }
|
352
|
+
box-sizing: border-box; /* 1 */
|
353
|
+
padding: 0; /* 2 */
|
354
|
+
}
|
291
355
|
|
292
356
|
/**
|
293
357
|
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
294
358
|
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
295
359
|
* (include `-moz` to future-proof).
|
296
360
|
*/
|
361
|
+
|
297
362
|
input[type="search"] {
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
box-sizing: content-box; }
|
363
|
+
-webkit-appearance: textfield; /* 1 */
|
364
|
+
-moz-box-sizing: content-box;
|
365
|
+
-webkit-box-sizing: content-box; /* 2 */
|
366
|
+
box-sizing: content-box;
|
367
|
+
}
|
304
368
|
|
305
369
|
/**
|
306
370
|
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
307
371
|
* on OS X.
|
308
372
|
*/
|
373
|
+
|
309
374
|
input[type="search"]::-webkit-search-cancel-button,
|
310
375
|
input[type="search"]::-webkit-search-decoration {
|
311
|
-
|
376
|
+
-webkit-appearance: none;
|
377
|
+
}
|
312
378
|
|
313
379
|
/**
|
314
380
|
* Remove inner padding and border in Firefox 4+.
|
315
381
|
*/
|
382
|
+
|
316
383
|
button::-moz-focus-inner,
|
317
384
|
input::-moz-focus-inner {
|
318
|
-
|
319
|
-
|
385
|
+
border: 0;
|
386
|
+
padding: 0;
|
387
|
+
}
|
320
388
|
|
321
389
|
/**
|
322
390
|
* 1. Remove default vertical scrollbar in IE 8/9.
|
323
391
|
* 2. Improve readability and alignment in all browsers.
|
324
392
|
*/
|
393
|
+
|
325
394
|
textarea {
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
/* 2 */ }
|
395
|
+
overflow: auto; /* 1 */
|
396
|
+
vertical-align: top; /* 2 */
|
397
|
+
}
|
330
398
|
|
331
399
|
/* ==========================================================================
|
332
400
|
Tables
|
333
401
|
========================================================================== */
|
402
|
+
|
334
403
|
/**
|
335
404
|
* Remove most spacing between table cells.
|
336
405
|
*/
|
406
|
+
|
337
407
|
table {
|
338
|
-
|
339
|
-
|
408
|
+
border-collapse: collapse;
|
409
|
+
border-spacing: 0;
|
410
|
+
}
|
@@ -36,7 +36,7 @@ module Locomotive
|
|
36
36
|
|
37
37
|
def log_page_into_backtrace(exception)
|
38
38
|
line = self.template.line_offset
|
39
|
-
line += (exception.respond_to?(:line) ? exception.line : 0) + 1
|
39
|
+
line += (exception.respond_to?(:line) ? exception.line || 0 : 0) + 1
|
40
40
|
|
41
41
|
message = "#{self.template.filepath}:#{line}:in `#{self.name}'"
|
42
42
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Locomotive
|
2
|
+
module Wagon
|
3
|
+
module Generators
|
4
|
+
module Site
|
5
|
+
|
6
|
+
class Bootstrap2 < Base
|
7
|
+
|
8
|
+
def copy_sources
|
9
|
+
directory('.', self.destination, { recursive: true }, {
|
10
|
+
name: self.name,
|
11
|
+
version: Locomotive::Wagon::VERSION
|
12
|
+
})
|
13
|
+
end
|
14
|
+
|
15
|
+
def choose_haml_over_html
|
16
|
+
if yes?('Do you prefer HAML templates ?')
|
17
|
+
remove_file File.join(self.destination, 'app/views/pages/index.liquid')
|
18
|
+
remove_file File.join(self.destination, 'app/views/pages/404.liquid')
|
19
|
+
remove_file File.join(self.destination, 'app/views/snippets/footer.liquid')
|
20
|
+
else
|
21
|
+
remove_file File.join(self.destination, 'app/views/pages/index.liquid.haml')
|
22
|
+
remove_file File.join(self.destination, 'app/views/pages/404.liquid.haml')
|
23
|
+
remove_file File.join(self.destination, 'app/views/snippets/footer.liquid.haml')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
Locomotive::Wagon::Generators::Site.register(:bootstrap2, Bootstrap2, %{
|
30
|
+
A LocomotiveCMS site with Twitter Bootstrap (v2.3.2) and Font Awesome (v3.2.1).
|
31
|
+
})
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -3,7 +3,7 @@ module Locomotive
|
|
3
3
|
module Generators
|
4
4
|
module Site
|
5
5
|
|
6
|
-
class
|
6
|
+
class Bootstrap3 < Base
|
7
7
|
|
8
8
|
def copy_sources
|
9
9
|
directory('.', self.destination, { recursive: true }, {
|
@@ -26,8 +26,8 @@ module Locomotive
|
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
Locomotive::Wagon::Generators::Site.register(:
|
30
|
-
A LocomotiveCMS site powered by Twitter bootstrap (
|
29
|
+
Locomotive::Wagon::Generators::Site.register(:bootstrap3, Bootstrap3, %{
|
30
|
+
A LocomotiveCMS site powered by Twitter bootstrap (v3.0.0).
|
31
31
|
})
|
32
32
|
end
|
33
33
|
end
|
@@ -94,7 +94,8 @@ end
|
|
94
94
|
|
95
95
|
require 'locomotive/wagon/generators/site/base'
|
96
96
|
require 'locomotive/wagon/generators/site/blank'
|
97
|
-
require 'locomotive/wagon/generators/site/
|
97
|
+
require 'locomotive/wagon/generators/site/bootstrap2'
|
98
|
+
require 'locomotive/wagon/generators/site/bootstrap3'
|
98
99
|
require 'locomotive/wagon/generators/site/foundation'
|
99
100
|
require 'locomotive/wagon/generators/site/unzip'
|
100
101
|
require 'locomotive/wagon/generators/site/cloned'
|
@@ -7,8 +7,6 @@ module Locomotive
|
|
7
7
|
|
8
8
|
@@forbidden_attributes = %w{_id _version _index}
|
9
9
|
|
10
|
-
attr_reader :_source
|
11
|
-
|
12
10
|
def initialize(source)
|
13
11
|
@_source = source
|
14
12
|
end
|
@@ -37,6 +35,10 @@ module Locomotive
|
|
37
35
|
self.class.liquify(*records, &block)
|
38
36
|
end
|
39
37
|
|
38
|
+
def _source
|
39
|
+
@_source
|
40
|
+
end
|
41
|
+
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
@@ -4,10 +4,10 @@ module Locomotive
|
|
4
4
|
module Drops
|
5
5
|
class ContentEntry < Base
|
6
6
|
|
7
|
-
delegate :seo_title, :meta_keywords, :meta_description, :
|
7
|
+
delegate :seo_title, :meta_keywords, :meta_description, to: :@_source
|
8
8
|
|
9
9
|
def _label
|
10
|
-
@_label ||=
|
10
|
+
@_label ||= @_source._label
|
11
11
|
end
|
12
12
|
|
13
13
|
def _permalink
|
@@ -32,10 +32,10 @@ module Locomotive
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def before_method(meth)
|
35
|
-
return '' if
|
35
|
+
return '' if @_source.nil?
|
36
36
|
|
37
37
|
if not @@forbidden_attributes.include?(meth.to_s)
|
38
|
-
|
38
|
+
@_source.send(meth)
|
39
39
|
else
|
40
40
|
nil
|
41
41
|
end
|
@@ -5,16 +5,16 @@ module Locomotive
|
|
5
5
|
class Page < Base
|
6
6
|
|
7
7
|
delegate :title, :slug, :fullpath, :parent, :depth, :seo_title, :redirect_url, :meta_description, :meta_keywords,
|
8
|
-
:templatized?, :published?, :redirect?, :listed?, :handle, to:
|
8
|
+
:templatized?, :published?, :redirect?, :listed?, :handle, to: :@_source
|
9
9
|
|
10
10
|
def children
|
11
|
-
_children = _source.children || []
|
11
|
+
_children = @_source.children || []
|
12
12
|
_children = _children.sort { |a, b| a.position.to_i <=> b.position.to_i }
|
13
13
|
@children ||= liquify(*_children)
|
14
14
|
end
|
15
15
|
|
16
16
|
def content_type
|
17
|
-
ProxyCollection.new(_source.content_type) if _source.content_type
|
17
|
+
ProxyCollection.new(@_source.content_type) if @_source.content_type
|
18
18
|
end
|
19
19
|
|
20
20
|
def breadcrumbs
|
@@ -5,18 +5,18 @@ module Locomotive
|
|
5
5
|
class Site < Base
|
6
6
|
include Scopeable
|
7
7
|
|
8
|
-
delegate :name, :seo_title, :meta_description, :meta_keywords, :
|
8
|
+
delegate :name, :seo_title, :meta_description, :meta_keywords, to: :@_source
|
9
9
|
|
10
10
|
def index
|
11
11
|
@index ||= self.mounting_point.pages['index']
|
12
12
|
end
|
13
13
|
|
14
14
|
def pages
|
15
|
-
|
15
|
+
liquify(*apply_scope(self.mounting_point.pages.values))
|
16
16
|
end
|
17
17
|
|
18
18
|
def domains
|
19
|
-
|
19
|
+
@_source.domains
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
@@ -46,8 +46,9 @@ module Locomotive
|
|
46
46
|
|
47
47
|
page = case handle
|
48
48
|
when Locomotive::Mounter::Models::Page then handle
|
49
|
+
when Liquid::Drops::Page then handle.send(:_source)
|
49
50
|
when String then fetch_page(mounting_point, handle)
|
50
|
-
when Liquid::Drops::ContentEntry then fetch_page(mounting_point, handle._source, true)
|
51
|
+
when Liquid::Drops::ContentEntry then fetch_page(mounting_point, handle.send(:_source), true)
|
51
52
|
when Locomotive::Mounter::Models::ContentEntry then fetch_page(mounting_point, handle, true)
|
52
53
|
else
|
53
54
|
nil
|
@@ -38,7 +38,7 @@ module BetterErrors
|
|
38
38
|
scope = self.liquid_context.scopes.last.clone
|
39
39
|
|
40
40
|
scope.delete_if { |k, _| %w(models contents params session).include?(k) }.tap do |_scope|
|
41
|
-
_scope['site'] = _scope['site']._source.to_hash
|
41
|
+
_scope['site'] = _scope['site'].send(:_source).to_hash
|
42
42
|
_scope['page'] = _scope['page'].to_hash.delete_if { |k, _| %w(template).include?(k) }
|
43
43
|
end
|
44
44
|
else
|