fullstack-cms 0.3.18 → 0.3.19
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.
- data/VERSION +1 -1
- data/fullstack-cms.gemspec +25 -9
- data/lib/generators/fullstack/cms/install_generator.rb +20 -29
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/bootstrap.js +2170 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/facebox.js +309 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/jquery.cycle.lite.js +232 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/lightbox.js +351 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee +4 -12
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap-large-desktops.css +335 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap-narrow-tablets-and-below.css +158 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap-responsive.css +207 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap-tablets-to-desktops.css +326 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.css +5117 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/facebox.css +80 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/lightbox.css +181 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css +1 -28
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/src/global.css +0 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/src/helpers.css +9 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/src/print.css +18 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_footer.html.erb +10 -18
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_header.html.erb +3 -1
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/home.html.erb +0 -17
- data/lib/generators/fullstack/cms/templates/rails/config/{fullstack.rb → initializers/fullstack.rb} +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/{glyphicons-halflings-white.png → bootstrap/glyphicons-halflings-white.png} +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/{glyphicons-halflings.png → bootstrap/glyphicons-halflings.png} +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/facebox/closelabel.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/facebox/loading.gif +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/lightbox/close.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/lightbox/loading.gif +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/lightbox/next.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/lightbox/prev.png +0 -0
- metadata +26 -10
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/bootstrap.overrides.css +0 -3
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.min.css +0 -722
- data/lib/generators/fullstack/cms/templates/rails/public/admin/rotate-left.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/admin/rotate-right.png +0 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
Lightbox v2.51
|
|
4
|
+
by Lokesh Dhakar - http://www.lokeshdhakar.com
|
|
5
|
+
|
|
6
|
+
For more information, visit:
|
|
7
|
+
http://lokeshdhakar.com/projects/lightbox2/
|
|
8
|
+
|
|
9
|
+
Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
|
|
10
|
+
- free for use in both personal and commercial projects
|
|
11
|
+
- attribution requires leaving author name, author link, and the license info intact
|
|
12
|
+
|
|
13
|
+
Thanks
|
|
14
|
+
- Scott Upton(uptonic.com), Peter-Paul Koch(quirksmode.com), and Thomas Fuchs(mir.aculo.us) for ideas, libs, and snippets.
|
|
15
|
+
- Artemy Tregubenko (arty.name) for cleanup and help in updating to latest proto-aculous in v2.05.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Table of Contents
|
|
19
|
+
=================
|
|
20
|
+
LightboxOptions
|
|
21
|
+
|
|
22
|
+
Lightbox
|
|
23
|
+
- constructor
|
|
24
|
+
- init
|
|
25
|
+
- enable
|
|
26
|
+
- build
|
|
27
|
+
- start
|
|
28
|
+
- changeImage
|
|
29
|
+
- sizeContainer
|
|
30
|
+
- showImage
|
|
31
|
+
- updateNav
|
|
32
|
+
- updateDetails
|
|
33
|
+
- preloadNeigbhoringImages
|
|
34
|
+
- enableKeyboardNav
|
|
35
|
+
- disableKeyboardNav
|
|
36
|
+
- keyboardAction
|
|
37
|
+
- end
|
|
38
|
+
|
|
39
|
+
options = new LightboxOptions
|
|
40
|
+
lightbox = new Lightbox options
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
(function() {
|
|
44
|
+
var $, Lightbox, LightboxOptions;
|
|
45
|
+
|
|
46
|
+
$ = jQuery;
|
|
47
|
+
|
|
48
|
+
LightboxOptions = (function() {
|
|
49
|
+
|
|
50
|
+
function LightboxOptions() {
|
|
51
|
+
this.fileLoadingImage = 'images/loading.gif';
|
|
52
|
+
this.fileCloseImage = 'images/close.png';
|
|
53
|
+
this.resizeDuration = 700;
|
|
54
|
+
this.fadeDuration = 500;
|
|
55
|
+
this.labelImage = "Image";
|
|
56
|
+
this.labelOf = "of";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return LightboxOptions;
|
|
60
|
+
|
|
61
|
+
})();
|
|
62
|
+
|
|
63
|
+
Lightbox = (function() {
|
|
64
|
+
|
|
65
|
+
function Lightbox(options) {
|
|
66
|
+
this.options = options;
|
|
67
|
+
this.album = [];
|
|
68
|
+
this.currentImageIndex = void 0;
|
|
69
|
+
this.init();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
Lightbox.prototype.init = function() {
|
|
73
|
+
this.enable();
|
|
74
|
+
return this.build();
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
Lightbox.prototype.enable = function() {
|
|
78
|
+
var _this = this;
|
|
79
|
+
return $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox]', function(e) {
|
|
80
|
+
_this.start($(e.currentTarget));
|
|
81
|
+
return false;
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
Lightbox.prototype.build = function() {
|
|
86
|
+
var $lightbox,
|
|
87
|
+
_this = this;
|
|
88
|
+
$("<div>", {
|
|
89
|
+
id: 'lightboxOverlay'
|
|
90
|
+
}).after($('<div/>', {
|
|
91
|
+
id: 'lightbox'
|
|
92
|
+
}).append($('<div/>', {
|
|
93
|
+
"class": 'lb-outerContainer'
|
|
94
|
+
}).append($('<div/>', {
|
|
95
|
+
"class": 'lb-container'
|
|
96
|
+
}).append($('<img/>', {
|
|
97
|
+
"class": 'lb-image'
|
|
98
|
+
}), $('<div/>', {
|
|
99
|
+
"class": 'lb-nav'
|
|
100
|
+
}).append($('<a/>', {
|
|
101
|
+
"class": 'lb-prev'
|
|
102
|
+
}), $('<a/>', {
|
|
103
|
+
"class": 'lb-next'
|
|
104
|
+
})), $('<div/>', {
|
|
105
|
+
"class": 'lb-loader'
|
|
106
|
+
}).append($('<a/>', {
|
|
107
|
+
"class": 'lb-cancel'
|
|
108
|
+
}).append($('<img/>', {
|
|
109
|
+
src: this.options.fileLoadingImage
|
|
110
|
+
}))))), $('<div/>', {
|
|
111
|
+
"class": 'lb-dataContainer'
|
|
112
|
+
}).append($('<div/>', {
|
|
113
|
+
"class": 'lb-data'
|
|
114
|
+
}).append($('<div/>', {
|
|
115
|
+
"class": 'lb-details'
|
|
116
|
+
}).append($('<span/>', {
|
|
117
|
+
"class": 'lb-caption'
|
|
118
|
+
}), $('<span/>', {
|
|
119
|
+
"class": 'lb-number'
|
|
120
|
+
})), $('<div/>', {
|
|
121
|
+
"class": 'lb-closeContainer'
|
|
122
|
+
}).append($('<a/>', {
|
|
123
|
+
"class": 'lb-close'
|
|
124
|
+
}).append($('<img/>', {
|
|
125
|
+
src: this.options.fileCloseImage
|
|
126
|
+
}))))))).appendTo($('body'));
|
|
127
|
+
$('#lightboxOverlay').hide().on('click', function(e) {
|
|
128
|
+
_this.end();
|
|
129
|
+
return false;
|
|
130
|
+
});
|
|
131
|
+
$lightbox = $('#lightbox');
|
|
132
|
+
$lightbox.hide().on('click', function(e) {
|
|
133
|
+
if ($(e.target).attr('id') === 'lightbox') _this.end();
|
|
134
|
+
return false;
|
|
135
|
+
});
|
|
136
|
+
$lightbox.find('.lb-outerContainer').on('click', function(e) {
|
|
137
|
+
if ($(e.target).attr('id') === 'lightbox') _this.end();
|
|
138
|
+
return false;
|
|
139
|
+
});
|
|
140
|
+
$lightbox.find('.lb-prev').on('click', function(e) {
|
|
141
|
+
_this.changeImage(_this.currentImageIndex - 1);
|
|
142
|
+
return false;
|
|
143
|
+
});
|
|
144
|
+
$lightbox.find('.lb-next').on('click', function(e) {
|
|
145
|
+
_this.changeImage(_this.currentImageIndex + 1);
|
|
146
|
+
return false;
|
|
147
|
+
});
|
|
148
|
+
$lightbox.find('.lb-loader, .lb-close').on('click', function(e) {
|
|
149
|
+
_this.end();
|
|
150
|
+
return false;
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
Lightbox.prototype.start = function($link) {
|
|
155
|
+
var $lightbox, $window, a, i, imageNumber, left, top, _len, _ref;
|
|
156
|
+
$(window).on("resize", this.sizeOverlay);
|
|
157
|
+
$('select, object, embed').css({
|
|
158
|
+
visibility: "hidden"
|
|
159
|
+
});
|
|
160
|
+
$('#lightboxOverlay').width($(document).width()).height($(document).height()).fadeIn(this.options.fadeDuration);
|
|
161
|
+
this.album = [];
|
|
162
|
+
imageNumber = 0;
|
|
163
|
+
if ($link.attr('rel') === 'lightbox') {
|
|
164
|
+
this.album.push({
|
|
165
|
+
link: $link.attr('href'),
|
|
166
|
+
title: $link.attr('title')
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
_ref = $($link.prop("tagName") + '[rel="' + $link.attr('rel') + '"]');
|
|
170
|
+
for (i = 0, _len = _ref.length; i < _len; i++) {
|
|
171
|
+
a = _ref[i];
|
|
172
|
+
this.album.push({
|
|
173
|
+
link: $(a).attr('href'),
|
|
174
|
+
title: $(a).attr('title')
|
|
175
|
+
});
|
|
176
|
+
if ($(a).attr('href') === $link.attr('href')) imageNumber = i;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
$window = $(window);
|
|
180
|
+
top = $window.scrollTop() + $window.height() / 10;
|
|
181
|
+
left = $window.scrollLeft();
|
|
182
|
+
$lightbox = $('#lightbox');
|
|
183
|
+
$lightbox.css({
|
|
184
|
+
top: top + 'px',
|
|
185
|
+
left: left + 'px'
|
|
186
|
+
}).fadeIn(this.options.fadeDuration);
|
|
187
|
+
this.changeImage(imageNumber);
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
Lightbox.prototype.changeImage = function(imageNumber) {
|
|
191
|
+
var $image, $lightbox, preloader,
|
|
192
|
+
_this = this;
|
|
193
|
+
this.disableKeyboardNav();
|
|
194
|
+
$lightbox = $('#lightbox');
|
|
195
|
+
$image = $lightbox.find('.lb-image');
|
|
196
|
+
this.sizeOverlay();
|
|
197
|
+
$('#lightboxOverlay').fadeIn(this.options.fadeDuration);
|
|
198
|
+
$('.loader').fadeIn('slow');
|
|
199
|
+
$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide();
|
|
200
|
+
$lightbox.find('.lb-outerContainer').addClass('animating');
|
|
201
|
+
preloader = new Image;
|
|
202
|
+
preloader.onload = function() {
|
|
203
|
+
$image.attr('src', _this.album[imageNumber].link);
|
|
204
|
+
$image.width = preloader.width;
|
|
205
|
+
$image.height = preloader.height;
|
|
206
|
+
return _this.sizeContainer(preloader.width, preloader.height);
|
|
207
|
+
};
|
|
208
|
+
preloader.src = this.album[imageNumber].link;
|
|
209
|
+
this.currentImageIndex = imageNumber;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
Lightbox.prototype.sizeOverlay = function() {
|
|
213
|
+
return $('#lightboxOverlay').width($(document).width()).height($(document).height());
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
Lightbox.prototype.sizeContainer = function(imageWidth, imageHeight) {
|
|
217
|
+
var $container, $lightbox, $outerContainer, containerBottomPadding, containerLeftPadding, containerRightPadding, containerTopPadding, newHeight, newWidth, oldHeight, oldWidth,
|
|
218
|
+
_this = this;
|
|
219
|
+
$lightbox = $('#lightbox');
|
|
220
|
+
$outerContainer = $lightbox.find('.lb-outerContainer');
|
|
221
|
+
oldWidth = $outerContainer.outerWidth();
|
|
222
|
+
oldHeight = $outerContainer.outerHeight();
|
|
223
|
+
$container = $lightbox.find('.lb-container');
|
|
224
|
+
containerTopPadding = parseInt($container.css('padding-top'), 10);
|
|
225
|
+
containerRightPadding = parseInt($container.css('padding-right'), 10);
|
|
226
|
+
containerBottomPadding = parseInt($container.css('padding-bottom'), 10);
|
|
227
|
+
containerLeftPadding = parseInt($container.css('padding-left'), 10);
|
|
228
|
+
newWidth = imageWidth + containerLeftPadding + containerRightPadding;
|
|
229
|
+
newHeight = imageHeight + containerTopPadding + containerBottomPadding;
|
|
230
|
+
if (newWidth !== oldWidth && newHeight !== oldHeight) {
|
|
231
|
+
$outerContainer.animate({
|
|
232
|
+
width: newWidth,
|
|
233
|
+
height: newHeight
|
|
234
|
+
}, this.options.resizeDuration, 'swing');
|
|
235
|
+
} else if (newWidth !== oldWidth) {
|
|
236
|
+
$outerContainer.animate({
|
|
237
|
+
width: newWidth
|
|
238
|
+
}, this.options.resizeDuration, 'swing');
|
|
239
|
+
} else if (newHeight !== oldHeight) {
|
|
240
|
+
$outerContainer.animate({
|
|
241
|
+
height: newHeight
|
|
242
|
+
}, this.options.resizeDuration, 'swing');
|
|
243
|
+
}
|
|
244
|
+
setTimeout(function() {
|
|
245
|
+
$lightbox.find('.lb-dataContainer').width(newWidth);
|
|
246
|
+
$lightbox.find('.lb-prevLink').height(newHeight);
|
|
247
|
+
$lightbox.find('.lb-nextLink').height(newHeight);
|
|
248
|
+
_this.showImage();
|
|
249
|
+
}, this.options.resizeDuration);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
Lightbox.prototype.showImage = function() {
|
|
253
|
+
var $lightbox;
|
|
254
|
+
$lightbox = $('#lightbox');
|
|
255
|
+
$lightbox.find('.lb-loader').hide();
|
|
256
|
+
$lightbox.find('.lb-image').fadeIn('slow');
|
|
257
|
+
this.updateNav();
|
|
258
|
+
this.updateDetails();
|
|
259
|
+
this.preloadNeighboringImages();
|
|
260
|
+
this.enableKeyboardNav();
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
Lightbox.prototype.updateNav = function() {
|
|
264
|
+
var $lightbox;
|
|
265
|
+
$lightbox = $('#lightbox');
|
|
266
|
+
$lightbox.find('.lb-nav').show();
|
|
267
|
+
if (this.currentImageIndex > 0) $lightbox.find('.lb-prev').show();
|
|
268
|
+
if (this.currentImageIndex < this.album.length - 1) {
|
|
269
|
+
$lightbox.find('.lb-next').show();
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
Lightbox.prototype.updateDetails = function() {
|
|
274
|
+
var $lightbox,
|
|
275
|
+
_this = this;
|
|
276
|
+
$lightbox = $('#lightbox');
|
|
277
|
+
if (typeof this.album[this.currentImageIndex].title !== 'undefined' && this.album[this.currentImageIndex].title !== "") {
|
|
278
|
+
$lightbox.find('.lb-caption').html(this.album[this.currentImageIndex].title).fadeIn('fast');
|
|
279
|
+
}
|
|
280
|
+
if (this.album.length > 1) {
|
|
281
|
+
$lightbox.find('.lb-number').html(this.options.labelImage + ' ' + (this.currentImageIndex + 1) + ' ' + this.options.labelOf + ' ' + this.album.length).fadeIn('fast');
|
|
282
|
+
} else {
|
|
283
|
+
$lightbox.find('.lb-number').hide();
|
|
284
|
+
}
|
|
285
|
+
$lightbox.find('.lb-outerContainer').removeClass('animating');
|
|
286
|
+
$lightbox.find('.lb-dataContainer').fadeIn(this.resizeDuration, function() {
|
|
287
|
+
return _this.sizeOverlay();
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
Lightbox.prototype.preloadNeighboringImages = function() {
|
|
292
|
+
var preloadNext, preloadPrev;
|
|
293
|
+
if (this.album.length > this.currentImageIndex + 1) {
|
|
294
|
+
preloadNext = new Image;
|
|
295
|
+
preloadNext.src = this.album[this.currentImageIndex + 1].link;
|
|
296
|
+
}
|
|
297
|
+
if (this.currentImageIndex > 0) {
|
|
298
|
+
preloadPrev = new Image;
|
|
299
|
+
preloadPrev.src = this.album[this.currentImageIndex - 1].link;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
Lightbox.prototype.enableKeyboardNav = function() {
|
|
304
|
+
$(document).on('keyup.keyboard', $.proxy(this.keyboardAction, this));
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
Lightbox.prototype.disableKeyboardNav = function() {
|
|
308
|
+
$(document).off('.keyboard');
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
Lightbox.prototype.keyboardAction = function(event) {
|
|
312
|
+
var KEYCODE_ESC, KEYCODE_LEFTARROW, KEYCODE_RIGHTARROW, key, keycode;
|
|
313
|
+
KEYCODE_ESC = 27;
|
|
314
|
+
KEYCODE_LEFTARROW = 37;
|
|
315
|
+
KEYCODE_RIGHTARROW = 39;
|
|
316
|
+
keycode = event.keyCode;
|
|
317
|
+
key = String.fromCharCode(keycode).toLowerCase();
|
|
318
|
+
if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) {
|
|
319
|
+
this.end();
|
|
320
|
+
} else if (key === 'p' || keycode === KEYCODE_LEFTARROW) {
|
|
321
|
+
if (this.currentImageIndex !== 0) {
|
|
322
|
+
this.changeImage(this.currentImageIndex - 1);
|
|
323
|
+
}
|
|
324
|
+
} else if (key === 'n' || keycode === KEYCODE_RIGHTARROW) {
|
|
325
|
+
if (this.currentImageIndex !== this.album.length - 1) {
|
|
326
|
+
this.changeImage(this.currentImageIndex + 1);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
Lightbox.prototype.end = function() {
|
|
332
|
+
this.disableKeyboardNav();
|
|
333
|
+
$(window).off("resize", this.sizeOverlay);
|
|
334
|
+
$('#lightbox').fadeOut(this.options.fadeDuration);
|
|
335
|
+
$('#lightboxOverlay').fadeOut(this.options.fadeDuration);
|
|
336
|
+
return $('select, object, embed').css({
|
|
337
|
+
visibility: "visible"
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
return Lightbox;
|
|
342
|
+
|
|
343
|
+
})();
|
|
344
|
+
|
|
345
|
+
$(function() {
|
|
346
|
+
var lightbox, options;
|
|
347
|
+
options = new LightboxOptions;
|
|
348
|
+
return lightbox = new Lightbox(options);
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
}).call(this);
|
data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
#= require jquery
|
|
2
2
|
#= require jquery_ujs
|
|
3
|
-
#=
|
|
4
|
-
#= require support/bootstrap
|
|
5
|
-
#= require site/lib/plugins
|
|
6
|
-
#= require site/lib/jquery.fitvids
|
|
7
|
-
#= require jquery.facebox
|
|
8
|
-
#= require notify
|
|
9
|
-
|
|
10
|
-
# require support/gmap
|
|
11
|
-
# require angular
|
|
12
|
-
|
|
3
|
+
#= require_tree .
|
|
13
4
|
|
|
14
5
|
$(document).ready ->
|
|
15
|
-
$('.carousel').carousel()
|
|
16
|
-
$('.video-thumbnail').fitVids()
|
|
6
|
+
# $('.carousel').carousel()
|
|
7
|
+
# $('.video-thumbnail').fitVids()
|
|
8
|
+
# $('.cycle').cycle()
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Bootstrap v2.2.2
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2012 Twitter, Inc
|
|
5
|
+
* Licensed under the Apache License v2.0
|
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
*
|
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@media (min-width: 1200px) {
|
|
12
|
+
.row {
|
|
13
|
+
margin-left: -30px;
|
|
14
|
+
*zoom: 1;
|
|
15
|
+
}
|
|
16
|
+
.row:before,
|
|
17
|
+
.row:after {
|
|
18
|
+
display: table;
|
|
19
|
+
content: "";
|
|
20
|
+
line-height: 0;
|
|
21
|
+
}
|
|
22
|
+
.row:after {
|
|
23
|
+
clear: both;
|
|
24
|
+
}
|
|
25
|
+
[class*="span"] {
|
|
26
|
+
float: left;
|
|
27
|
+
min-height: 1px;
|
|
28
|
+
margin-left: 30px;
|
|
29
|
+
}
|
|
30
|
+
.container,
|
|
31
|
+
.navbar-static-top .container,
|
|
32
|
+
.navbar-fixed-top .container,
|
|
33
|
+
.navbar-fixed-bottom .container {
|
|
34
|
+
width: 1170px;
|
|
35
|
+
}
|
|
36
|
+
.span12 {
|
|
37
|
+
width: 1170px;
|
|
38
|
+
}
|
|
39
|
+
.span11 {
|
|
40
|
+
width: 1070px;
|
|
41
|
+
}
|
|
42
|
+
.span10 {
|
|
43
|
+
width: 970px;
|
|
44
|
+
}
|
|
45
|
+
.span9 {
|
|
46
|
+
width: 870px;
|
|
47
|
+
}
|
|
48
|
+
.span8 {
|
|
49
|
+
width: 770px;
|
|
50
|
+
}
|
|
51
|
+
.span7 {
|
|
52
|
+
width: 670px;
|
|
53
|
+
}
|
|
54
|
+
.span6 {
|
|
55
|
+
width: 570px;
|
|
56
|
+
}
|
|
57
|
+
.span5 {
|
|
58
|
+
width: 470px;
|
|
59
|
+
}
|
|
60
|
+
.span4 {
|
|
61
|
+
width: 370px;
|
|
62
|
+
}
|
|
63
|
+
.span3 {
|
|
64
|
+
width: 270px;
|
|
65
|
+
}
|
|
66
|
+
.span2 {
|
|
67
|
+
width: 170px;
|
|
68
|
+
}
|
|
69
|
+
.span1 {
|
|
70
|
+
width: 70px;
|
|
71
|
+
}
|
|
72
|
+
.offset12 {
|
|
73
|
+
margin-left: 1230px;
|
|
74
|
+
}
|
|
75
|
+
.offset11 {
|
|
76
|
+
margin-left: 1130px;
|
|
77
|
+
}
|
|
78
|
+
.offset10 {
|
|
79
|
+
margin-left: 1030px;
|
|
80
|
+
}
|
|
81
|
+
.offset9 {
|
|
82
|
+
margin-left: 930px;
|
|
83
|
+
}
|
|
84
|
+
.offset8 {
|
|
85
|
+
margin-left: 830px;
|
|
86
|
+
}
|
|
87
|
+
.offset7 {
|
|
88
|
+
margin-left: 730px;
|
|
89
|
+
}
|
|
90
|
+
.offset6 {
|
|
91
|
+
margin-left: 630px;
|
|
92
|
+
}
|
|
93
|
+
.offset5 {
|
|
94
|
+
margin-left: 530px;
|
|
95
|
+
}
|
|
96
|
+
.offset4 {
|
|
97
|
+
margin-left: 430px;
|
|
98
|
+
}
|
|
99
|
+
.offset3 {
|
|
100
|
+
margin-left: 330px;
|
|
101
|
+
}
|
|
102
|
+
.offset2 {
|
|
103
|
+
margin-left: 230px;
|
|
104
|
+
}
|
|
105
|
+
.offset1 {
|
|
106
|
+
margin-left: 130px;
|
|
107
|
+
}
|
|
108
|
+
.row-fluid {
|
|
109
|
+
width: 100%;
|
|
110
|
+
*zoom: 1;
|
|
111
|
+
}
|
|
112
|
+
.row-fluid:before,
|
|
113
|
+
.row-fluid:after {
|
|
114
|
+
display: table;
|
|
115
|
+
content: "";
|
|
116
|
+
line-height: 0;
|
|
117
|
+
}
|
|
118
|
+
.row-fluid:after {
|
|
119
|
+
clear: both;
|
|
120
|
+
}
|
|
121
|
+
.row-fluid [class*="span"] {
|
|
122
|
+
display: block;
|
|
123
|
+
width: 100%;
|
|
124
|
+
min-height: 30px;
|
|
125
|
+
-webkit-box-sizing: border-box;
|
|
126
|
+
-moz-box-sizing: border-box;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
float: left;
|
|
129
|
+
margin-left: 2.564102564102564%;
|
|
130
|
+
*margin-left: 2.5109110747408616%;
|
|
131
|
+
}
|
|
132
|
+
.row-fluid [class*="span"]:first-child {
|
|
133
|
+
margin-left: 0;
|
|
134
|
+
}
|
|
135
|
+
.row-fluid .controls-row [class*="span"] + [class*="span"] {
|
|
136
|
+
margin-left: 2.564102564102564%;
|
|
137
|
+
}
|
|
138
|
+
.row-fluid .span12 {
|
|
139
|
+
width: 100%;
|
|
140
|
+
*width: 99.94680851063829%;
|
|
141
|
+
}
|
|
142
|
+
.row-fluid .span11 {
|
|
143
|
+
width: 91.45299145299145%;
|
|
144
|
+
*width: 91.39979996362975%;
|
|
145
|
+
}
|
|
146
|
+
.row-fluid .span10 {
|
|
147
|
+
width: 82.90598290598291%;
|
|
148
|
+
*width: 82.8527914166212%;
|
|
149
|
+
}
|
|
150
|
+
.row-fluid .span9 {
|
|
151
|
+
width: 74.35897435897436%;
|
|
152
|
+
*width: 74.30578286961266%;
|
|
153
|
+
}
|
|
154
|
+
.row-fluid .span8 {
|
|
155
|
+
width: 65.81196581196582%;
|
|
156
|
+
*width: 65.75877432260411%;
|
|
157
|
+
}
|
|
158
|
+
.row-fluid .span7 {
|
|
159
|
+
width: 57.26495726495726%;
|
|
160
|
+
*width: 57.21176577559556%;
|
|
161
|
+
}
|
|
162
|
+
.row-fluid .span6 {
|
|
163
|
+
width: 48.717948717948715%;
|
|
164
|
+
*width: 48.664757228587014%;
|
|
165
|
+
}
|
|
166
|
+
.row-fluid .span5 {
|
|
167
|
+
width: 40.17094017094017%;
|
|
168
|
+
*width: 40.11774868157847%;
|
|
169
|
+
}
|
|
170
|
+
.row-fluid .span4 {
|
|
171
|
+
width: 31.623931623931625%;
|
|
172
|
+
*width: 31.570740134569924%;
|
|
173
|
+
}
|
|
174
|
+
.row-fluid .span3 {
|
|
175
|
+
width: 23.076923076923077%;
|
|
176
|
+
*width: 23.023731587561375%;
|
|
177
|
+
}
|
|
178
|
+
.row-fluid .span2 {
|
|
179
|
+
width: 14.52991452991453%;
|
|
180
|
+
*width: 14.476723040552828%;
|
|
181
|
+
}
|
|
182
|
+
.row-fluid .span1 {
|
|
183
|
+
width: 5.982905982905983%;
|
|
184
|
+
*width: 5.929714493544281%;
|
|
185
|
+
}
|
|
186
|
+
.row-fluid .offset12 {
|
|
187
|
+
margin-left: 105.12820512820512%;
|
|
188
|
+
*margin-left: 105.02182214948171%;
|
|
189
|
+
}
|
|
190
|
+
.row-fluid .offset12:first-child {
|
|
191
|
+
margin-left: 102.56410256410257%;
|
|
192
|
+
*margin-left: 102.45771958537915%;
|
|
193
|
+
}
|
|
194
|
+
.row-fluid .offset11 {
|
|
195
|
+
margin-left: 96.58119658119658%;
|
|
196
|
+
*margin-left: 96.47481360247316%;
|
|
197
|
+
}
|
|
198
|
+
.row-fluid .offset11:first-child {
|
|
199
|
+
margin-left: 94.01709401709402%;
|
|
200
|
+
*margin-left: 93.91071103837061%;
|
|
201
|
+
}
|
|
202
|
+
.row-fluid .offset10 {
|
|
203
|
+
margin-left: 88.03418803418803%;
|
|
204
|
+
*margin-left: 87.92780505546462%;
|
|
205
|
+
}
|
|
206
|
+
.row-fluid .offset10:first-child {
|
|
207
|
+
margin-left: 85.47008547008548%;
|
|
208
|
+
*margin-left: 85.36370249136206%;
|
|
209
|
+
}
|
|
210
|
+
.row-fluid .offset9 {
|
|
211
|
+
margin-left: 79.48717948717949%;
|
|
212
|
+
*margin-left: 79.38079650845607%;
|
|
213
|
+
}
|
|
214
|
+
.row-fluid .offset9:first-child {
|
|
215
|
+
margin-left: 76.92307692307693%;
|
|
216
|
+
*margin-left: 76.81669394435352%;
|
|
217
|
+
}
|
|
218
|
+
.row-fluid .offset8 {
|
|
219
|
+
margin-left: 70.94017094017094%;
|
|
220
|
+
*margin-left: 70.83378796144753%;
|
|
221
|
+
}
|
|
222
|
+
.row-fluid .offset8:first-child {
|
|
223
|
+
margin-left: 68.37606837606839%;
|
|
224
|
+
*margin-left: 68.26968539734497%;
|
|
225
|
+
}
|
|
226
|
+
.row-fluid .offset7 {
|
|
227
|
+
margin-left: 62.393162393162385%;
|
|
228
|
+
*margin-left: 62.28677941443899%;
|
|
229
|
+
}
|
|
230
|
+
.row-fluid .offset7:first-child {
|
|
231
|
+
margin-left: 59.82905982905982%;
|
|
232
|
+
*margin-left: 59.72267685033642%;
|
|
233
|
+
}
|
|
234
|
+
.row-fluid .offset6 {
|
|
235
|
+
margin-left: 53.84615384615384%;
|
|
236
|
+
*margin-left: 53.739770867430444%;
|
|
237
|
+
}
|
|
238
|
+
.row-fluid .offset6:first-child {
|
|
239
|
+
margin-left: 51.28205128205128%;
|
|
240
|
+
*margin-left: 51.175668303327875%;
|
|
241
|
+
}
|
|
242
|
+
.row-fluid .offset5 {
|
|
243
|
+
margin-left: 45.299145299145295%;
|
|
244
|
+
*margin-left: 45.1927623204219%;
|
|
245
|
+
}
|
|
246
|
+
.row-fluid .offset5:first-child {
|
|
247
|
+
margin-left: 42.73504273504273%;
|
|
248
|
+
*margin-left: 42.62865975631933%;
|
|
249
|
+
}
|
|
250
|
+
.row-fluid .offset4 {
|
|
251
|
+
margin-left: 36.75213675213675%;
|
|
252
|
+
*margin-left: 36.645753773413354%;
|
|
253
|
+
}
|
|
254
|
+
.row-fluid .offset4:first-child {
|
|
255
|
+
margin-left: 34.18803418803419%;
|
|
256
|
+
*margin-left: 34.081651209310785%;
|
|
257
|
+
}
|
|
258
|
+
.row-fluid .offset3 {
|
|
259
|
+
margin-left: 28.205128205128204%;
|
|
260
|
+
*margin-left: 28.0987452264048%;
|
|
261
|
+
}
|
|
262
|
+
.row-fluid .offset3:first-child {
|
|
263
|
+
margin-left: 25.641025641025642%;
|
|
264
|
+
*margin-left: 25.53464266230224%;
|
|
265
|
+
}
|
|
266
|
+
.row-fluid .offset2 {
|
|
267
|
+
margin-left: 19.65811965811966%;
|
|
268
|
+
*margin-left: 19.551736679396257%;
|
|
269
|
+
}
|
|
270
|
+
.row-fluid .offset2:first-child {
|
|
271
|
+
margin-left: 17.094017094017094%;
|
|
272
|
+
*margin-left: 16.98763411529369%;
|
|
273
|
+
}
|
|
274
|
+
.row-fluid .offset1 {
|
|
275
|
+
margin-left: 11.11111111111111%;
|
|
276
|
+
*margin-left: 11.004728132387708%;
|
|
277
|
+
}
|
|
278
|
+
.row-fluid .offset1:first-child {
|
|
279
|
+
margin-left: 8.547008547008547%;
|
|
280
|
+
*margin-left: 8.440625568285142%;
|
|
281
|
+
}
|
|
282
|
+
input,
|
|
283
|
+
textarea,
|
|
284
|
+
.uneditable-input {
|
|
285
|
+
margin-left: 0;
|
|
286
|
+
}
|
|
287
|
+
.controls-row [class*="span"] + [class*="span"] {
|
|
288
|
+
margin-left: 30px;
|
|
289
|
+
}
|
|
290
|
+
input.span12, textarea.span12, .uneditable-input.span12 {
|
|
291
|
+
width: 1156px;
|
|
292
|
+
}
|
|
293
|
+
input.span11, textarea.span11, .uneditable-input.span11 {
|
|
294
|
+
width: 1056px;
|
|
295
|
+
}
|
|
296
|
+
input.span10, textarea.span10, .uneditable-input.span10 {
|
|
297
|
+
width: 956px;
|
|
298
|
+
}
|
|
299
|
+
input.span9, textarea.span9, .uneditable-input.span9 {
|
|
300
|
+
width: 856px;
|
|
301
|
+
}
|
|
302
|
+
input.span8, textarea.span8, .uneditable-input.span8 {
|
|
303
|
+
width: 756px;
|
|
304
|
+
}
|
|
305
|
+
input.span7, textarea.span7, .uneditable-input.span7 {
|
|
306
|
+
width: 656px;
|
|
307
|
+
}
|
|
308
|
+
input.span6, textarea.span6, .uneditable-input.span6 {
|
|
309
|
+
width: 556px;
|
|
310
|
+
}
|
|
311
|
+
input.span5, textarea.span5, .uneditable-input.span5 {
|
|
312
|
+
width: 456px;
|
|
313
|
+
}
|
|
314
|
+
input.span4, textarea.span4, .uneditable-input.span4 {
|
|
315
|
+
width: 356px;
|
|
316
|
+
}
|
|
317
|
+
input.span3, textarea.span3, .uneditable-input.span3 {
|
|
318
|
+
width: 256px;
|
|
319
|
+
}
|
|
320
|
+
input.span2, textarea.span2, .uneditable-input.span2 {
|
|
321
|
+
width: 156px;
|
|
322
|
+
}
|
|
323
|
+
input.span1, textarea.span1, .uneditable-input.span1 {
|
|
324
|
+
width: 56px;
|
|
325
|
+
}
|
|
326
|
+
.thumbnails {
|
|
327
|
+
margin-left: -30px;
|
|
328
|
+
}
|
|
329
|
+
.thumbnails > li {
|
|
330
|
+
margin-left: 30px;
|
|
331
|
+
}
|
|
332
|
+
.row-fluid .thumbnails {
|
|
333
|
+
margin-left: 0;
|
|
334
|
+
}
|
|
335
|
+
}
|