twbs_less_rails 2.10.3 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Rakefile +6 -3
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +469 -379
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/gemfiles/Gemfile.rails-3.2.x +1 -1
- data/gemfiles/Gemfile.rails-4.0.x +1 -1
- data/gemfiles/Gemfile.rails-4.1.x +1 -1
- data/lib/twbs_less_rails/version.rb +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +19 -14
- data/vendor/assets/javascripts/twbs/bootstrap/alert.js +10 -6
- data/vendor/assets/javascripts/twbs/bootstrap/button.js +11 -8
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +49 -31
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +22 -22
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +17 -13
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +66 -29
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +10 -7
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +40 -23
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +11 -8
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +115 -57
- data/vendor/assets/javascripts/twbs/bootstrap/transition.js +18 -7
- data/vendor/assets/javascripts/twbs/bootstrap.js +4 -4
- data/vendor/assets/stylesheets/fontawesome/font-awesome.less +13 -13
- data/vendor/assets/stylesheets/fontawesome/icons.less +97 -3
- data/vendor/assets/stylesheets/fontawesome/spinning.less +8 -6
- data/vendor/assets/stylesheets/fontawesome/variables.less +463 -329
- data/vendor/assets/stylesheets/twbs/bootstrap/alerts.less +4 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/badges.less +18 -18
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +2 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +16 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/buttons.less +0 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +15 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/code.less +6 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/component-animations.less +6 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/dropdowns.less +2 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/forms.less +144 -42
- data/vendor/assets/stylesheets/twbs/bootstrap/input-groups.less +6 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +4 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/labels.less +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +22 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/alerts.less +14 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/background-variant.less +8 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/buttons.less +50 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/center-block.less +7 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/forms.less +81 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/gradients.less +59 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/grid.less +122 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/image.less +34 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/labels.less +12 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/list-group.less +29 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/opacity.less +8 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/pagination.less +23 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/panels.less +24 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/resize.less +6 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/size.less +10 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/table-row.less +28 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/text-emphasis.less +8 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +35 -925
- data/vendor/assets/stylesheets/twbs/bootstrap/modals.less +18 -7
- data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +41 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/navs.less +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/normalize.less +21 -19
- data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +8 -6
- data/vendor/assets/stylesheets/twbs/bootstrap/popovers.less +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/progress-bars.less +27 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/responsive-embed.less +34 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/responsive-utilities.less +103 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/scaffolding.less +17 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/tables.less +4 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +11 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/type.less +32 -12
- data/vendor/assets/stylesheets/twbs/bootstrap/utilities.less +1 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +40 -23
- metadata +32 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: tooltip.js v3.
|
2
|
+
* Bootstrap: tooltip.js v3.2.0
|
3
3
|
* http://getbootstrap.com/javascript/#tooltip
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ========================================================================
|
@@ -25,23 +25,30 @@
|
|
25
25
|
this.init('tooltip', element, options)
|
26
26
|
}
|
27
27
|
|
28
|
+
Tooltip.VERSION = '3.2.0'
|
29
|
+
|
28
30
|
Tooltip.DEFAULTS = {
|
29
31
|
animation: true,
|
30
32
|
placement: 'top',
|
31
33
|
selector: false,
|
32
|
-
template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
|
34
|
+
template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
|
33
35
|
trigger: 'hover focus',
|
34
36
|
title: '',
|
35
37
|
delay: 0,
|
36
38
|
html: false,
|
37
|
-
container: false
|
39
|
+
container: false,
|
40
|
+
viewport: {
|
41
|
+
selector: 'body',
|
42
|
+
padding: 0
|
43
|
+
}
|
38
44
|
}
|
39
45
|
|
40
46
|
Tooltip.prototype.init = function (type, element, options) {
|
41
|
-
this.enabled
|
42
|
-
this.type
|
43
|
-
this.$element
|
44
|
-
this.options
|
47
|
+
this.enabled = true
|
48
|
+
this.type = type
|
49
|
+
this.$element = $(element)
|
50
|
+
this.options = this.getOptions(options)
|
51
|
+
this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport)
|
45
52
|
|
46
53
|
var triggers = this.options.trigger.split(' ')
|
47
54
|
|
@@ -94,7 +101,12 @@
|
|
94
101
|
|
95
102
|
Tooltip.prototype.enter = function (obj) {
|
96
103
|
var self = obj instanceof this.constructor ?
|
97
|
-
obj : $(obj.currentTarget)
|
104
|
+
obj : $(obj.currentTarget).data('bs.' + this.type)
|
105
|
+
|
106
|
+
if (!self) {
|
107
|
+
self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
|
108
|
+
$(obj.currentTarget).data('bs.' + this.type, self)
|
109
|
+
}
|
98
110
|
|
99
111
|
clearTimeout(self.timeout)
|
100
112
|
|
@@ -109,7 +121,12 @@
|
|
109
121
|
|
110
122
|
Tooltip.prototype.leave = function (obj) {
|
111
123
|
var self = obj instanceof this.constructor ?
|
112
|
-
obj : $(obj.currentTarget)
|
124
|
+
obj : $(obj.currentTarget).data('bs.' + this.type)
|
125
|
+
|
126
|
+
if (!self) {
|
127
|
+
self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
|
128
|
+
$(obj.currentTarget).data('bs.' + this.type, self)
|
129
|
+
}
|
113
130
|
|
114
131
|
clearTimeout(self.timeout)
|
115
132
|
|
@@ -128,12 +145,17 @@
|
|
128
145
|
if (this.hasContent() && this.enabled) {
|
129
146
|
this.$element.trigger(e)
|
130
147
|
|
131
|
-
|
132
|
-
|
148
|
+
var inDom = $.contains(document.documentElement, this.$element[0])
|
149
|
+
if (e.isDefaultPrevented() || !inDom) return
|
150
|
+
var that = this
|
133
151
|
|
134
152
|
var $tip = this.tip()
|
135
153
|
|
154
|
+
var tipId = this.getUID(this.type)
|
155
|
+
|
136
156
|
this.setContent()
|
157
|
+
$tip.attr('id', tipId)
|
158
|
+
this.$element.attr('aria-describedby', tipId)
|
137
159
|
|
138
160
|
if (this.options.animation) $tip.addClass('fade')
|
139
161
|
|
@@ -149,6 +171,7 @@
|
|
149
171
|
.detach()
|
150
172
|
.css({ top: 0, left: 0, display: 'block' })
|
151
173
|
.addClass(placement)
|
174
|
+
.data('bs.' + this.type, this)
|
152
175
|
|
153
176
|
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
|
154
177
|
|
@@ -157,18 +180,14 @@
|
|
157
180
|
var actualHeight = $tip[0].offsetHeight
|
158
181
|
|
159
182
|
if (autoPlace) {
|
160
|
-
var $parent = this.$element.parent()
|
161
|
-
|
162
183
|
var orgPlacement = placement
|
163
|
-
var
|
164
|
-
var
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
placement == '
|
170
|
-
placement == 'right' && pos.right + actualWidth > parentWidth ? 'left' :
|
171
|
-
placement == 'left' && pos.left - actualWidth < parentLeft ? 'right' :
|
184
|
+
var $parent = this.$element.parent()
|
185
|
+
var parentDim = this.getPosition($parent)
|
186
|
+
|
187
|
+
placement = placement == 'bottom' && pos.top + pos.height + actualHeight - parentDim.scroll > parentDim.height ? 'top' :
|
188
|
+
placement == 'top' && pos.top - parentDim.scroll - actualHeight < 0 ? 'bottom' :
|
189
|
+
placement == 'right' && pos.right + actualWidth > parentDim.width ? 'left' :
|
190
|
+
placement == 'left' && pos.left - actualWidth < parentDim.left ? 'right' :
|
172
191
|
placement
|
173
192
|
|
174
193
|
$tip
|
@@ -179,22 +198,21 @@
|
|
179
198
|
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
|
180
199
|
|
181
200
|
this.applyPlacement(calculatedOffset, placement)
|
182
|
-
this.hoverState = null
|
183
201
|
|
184
|
-
var complete = function() {
|
202
|
+
var complete = function () {
|
185
203
|
that.$element.trigger('shown.bs.' + that.type)
|
204
|
+
that.hoverState = null
|
186
205
|
}
|
187
206
|
|
188
207
|
$.support.transition && this.$tip.hasClass('fade') ?
|
189
208
|
$tip
|
190
|
-
.one(
|
209
|
+
.one('bsTransitionEnd', complete)
|
191
210
|
.emulateTransitionEnd(150) :
|
192
211
|
complete()
|
193
212
|
}
|
194
213
|
}
|
195
214
|
|
196
215
|
Tooltip.prototype.applyPlacement = function (offset, placement) {
|
197
|
-
var replace
|
198
216
|
var $tip = this.tip()
|
199
217
|
var width = $tip[0].offsetWidth
|
200
218
|
var height = $tip[0].offsetHeight
|
@@ -228,29 +246,20 @@
|
|
228
246
|
var actualHeight = $tip[0].offsetHeight
|
229
247
|
|
230
248
|
if (placement == 'top' && actualHeight != height) {
|
231
|
-
replace = true
|
232
249
|
offset.top = offset.top + height - actualHeight
|
233
250
|
}
|
234
251
|
|
235
|
-
|
236
|
-
var delta = 0
|
252
|
+
var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
|
237
253
|
|
238
|
-
|
239
|
-
|
240
|
-
offset.left = 0
|
254
|
+
if (delta.left) offset.left += delta.left
|
255
|
+
else offset.top += delta.top
|
241
256
|
|
242
|
-
|
257
|
+
var arrowDelta = delta.left ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
|
258
|
+
var arrowPosition = delta.left ? 'left' : 'top'
|
259
|
+
var arrowOffsetPosition = delta.left ? 'offsetWidth' : 'offsetHeight'
|
243
260
|
|
244
|
-
|
245
|
-
|
246
|
-
}
|
247
|
-
|
248
|
-
this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
|
249
|
-
} else {
|
250
|
-
this.replaceArrow(actualHeight - height, actualHeight, 'top')
|
251
|
-
}
|
252
|
-
|
253
|
-
if (replace) $tip.offset(offset)
|
261
|
+
$tip.offset(offset)
|
262
|
+
this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], arrowPosition)
|
254
263
|
}
|
255
264
|
|
256
265
|
Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
|
@@ -270,6 +279,8 @@
|
|
270
279
|
var $tip = this.tip()
|
271
280
|
var e = $.Event('hide.bs.' + this.type)
|
272
281
|
|
282
|
+
this.$element.removeAttr('aria-describedby')
|
283
|
+
|
273
284
|
function complete() {
|
274
285
|
if (that.hoverState != 'in') $tip.detach()
|
275
286
|
that.$element.trigger('hidden.bs.' + that.type)
|
@@ -283,7 +294,7 @@
|
|
283
294
|
|
284
295
|
$.support.transition && this.$tip.hasClass('fade') ?
|
285
296
|
$tip
|
286
|
-
.one(
|
297
|
+
.one('bsTransitionEnd', complete)
|
287
298
|
.emulateTransitionEnd(150) :
|
288
299
|
complete()
|
289
300
|
|
@@ -294,7 +305,7 @@
|
|
294
305
|
|
295
306
|
Tooltip.prototype.fixTitle = function () {
|
296
307
|
var $e = this.$element
|
297
|
-
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
308
|
+
if ($e.attr('title') || typeof ($e.attr('data-original-title')) != 'string') {
|
298
309
|
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
299
310
|
}
|
300
311
|
}
|
@@ -303,12 +314,15 @@
|
|
303
314
|
return this.getTitle()
|
304
315
|
}
|
305
316
|
|
306
|
-
Tooltip.prototype.getPosition = function () {
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
317
|
+
Tooltip.prototype.getPosition = function ($element) {
|
318
|
+
$element = $element || this.$element
|
319
|
+
var el = $element[0]
|
320
|
+
var isBody = el.tagName == 'BODY'
|
321
|
+
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : null, {
|
322
|
+
scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop(),
|
323
|
+
width: isBody ? $(window).width() : $element.outerWidth(),
|
324
|
+
height: isBody ? $(window).height() : $element.outerHeight()
|
325
|
+
}, isBody ? { top: 0, left: 0 } : $element.offset())
|
312
326
|
}
|
313
327
|
|
314
328
|
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
|
@@ -316,6 +330,35 @@
|
|
316
330
|
placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
|
317
331
|
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
|
318
332
|
/* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
|
333
|
+
|
334
|
+
}
|
335
|
+
|
336
|
+
Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
|
337
|
+
var delta = { top: 0, left: 0 }
|
338
|
+
if (!this.$viewport) return delta
|
339
|
+
|
340
|
+
var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
|
341
|
+
var viewportDimensions = this.getPosition(this.$viewport)
|
342
|
+
|
343
|
+
if (/right|left/.test(placement)) {
|
344
|
+
var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll
|
345
|
+
var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
|
346
|
+
if (topEdgeOffset < viewportDimensions.top) { // top overflow
|
347
|
+
delta.top = viewportDimensions.top - topEdgeOffset
|
348
|
+
} else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
|
349
|
+
delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
|
350
|
+
}
|
351
|
+
} else {
|
352
|
+
var leftEdgeOffset = pos.left - viewportPadding
|
353
|
+
var rightEdgeOffset = pos.left + viewportPadding + actualWidth
|
354
|
+
if (leftEdgeOffset < viewportDimensions.left) { // left overflow
|
355
|
+
delta.left = viewportDimensions.left - leftEdgeOffset
|
356
|
+
} else if (rightEdgeOffset > viewportDimensions.width) { // right overflow
|
357
|
+
delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
|
358
|
+
}
|
359
|
+
}
|
360
|
+
|
361
|
+
return delta
|
319
362
|
}
|
320
363
|
|
321
364
|
Tooltip.prototype.getTitle = function () {
|
@@ -329,12 +372,18 @@
|
|
329
372
|
return title
|
330
373
|
}
|
331
374
|
|
375
|
+
Tooltip.prototype.getUID = function (prefix) {
|
376
|
+
do prefix += ~~(Math.random() * 1000000)
|
377
|
+
while (document.getElementById(prefix))
|
378
|
+
return prefix
|
379
|
+
}
|
380
|
+
|
332
381
|
Tooltip.prototype.tip = function () {
|
333
|
-
return this.$tip = this.$tip || $(this.options.template)
|
382
|
+
return (this.$tip = this.$tip || $(this.options.template))
|
334
383
|
}
|
335
384
|
|
336
385
|
Tooltip.prototype.arrow = function () {
|
337
|
-
return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')
|
386
|
+
return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
|
338
387
|
}
|
339
388
|
|
340
389
|
Tooltip.prototype.validate = function () {
|
@@ -358,7 +407,15 @@
|
|
358
407
|
}
|
359
408
|
|
360
409
|
Tooltip.prototype.toggle = function (e) {
|
361
|
-
var self =
|
410
|
+
var self = this
|
411
|
+
if (e) {
|
412
|
+
self = $(e.currentTarget).data('bs.' + this.type)
|
413
|
+
if (!self) {
|
414
|
+
self = new this.constructor(e.currentTarget, this.getDelegateOptions())
|
415
|
+
$(e.currentTarget).data('bs.' + this.type, self)
|
416
|
+
}
|
417
|
+
}
|
418
|
+
|
362
419
|
self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
|
363
420
|
}
|
364
421
|
|
@@ -371,9 +428,7 @@
|
|
371
428
|
// TOOLTIP PLUGIN DEFINITION
|
372
429
|
// =========================
|
373
430
|
|
374
|
-
|
375
|
-
|
376
|
-
$.fn.tooltip = function (option) {
|
431
|
+
function Plugin(option) {
|
377
432
|
return this.each(function () {
|
378
433
|
var $this = $(this)
|
379
434
|
var data = $this.data('bs.tooltip')
|
@@ -385,6 +440,9 @@
|
|
385
440
|
})
|
386
441
|
}
|
387
442
|
|
443
|
+
var old = $.fn.tooltip
|
444
|
+
|
445
|
+
$.fn.tooltip = Plugin
|
388
446
|
$.fn.tooltip.Constructor = Tooltip
|
389
447
|
|
390
448
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: transition.js v3.
|
2
|
+
* Bootstrap: transition.js v3.2.0
|
3
3
|
* http://getbootstrap.com/javascript/#transitions
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2011-2014 Twitter, Inc.
|
@@ -17,10 +17,10 @@
|
|
17
17
|
var el = document.createElement('bootstrap')
|
18
18
|
|
19
19
|
var transEndEventNames = {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
WebkitTransition : 'webkitTransitionEnd',
|
21
|
+
MozTransition : 'transitionend',
|
22
|
+
OTransition : 'oTransitionEnd otransitionend',
|
23
|
+
transition : 'transitionend'
|
24
24
|
}
|
25
25
|
|
26
26
|
for (var name in transEndEventNames) {
|
@@ -34,8 +34,9 @@
|
|
34
34
|
|
35
35
|
// http://blog.alexmaccaw.com/css-transitions
|
36
36
|
$.fn.emulateTransitionEnd = function (duration) {
|
37
|
-
var called = false
|
38
|
-
$
|
37
|
+
var called = false
|
38
|
+
var $el = this
|
39
|
+
$(this).one('bsTransitionEnd', function () { called = true })
|
39
40
|
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
40
41
|
setTimeout(callback, duration)
|
41
42
|
return this
|
@@ -43,6 +44,16 @@
|
|
43
44
|
|
44
45
|
$(function () {
|
45
46
|
$.support.transition = transitionEnd()
|
47
|
+
|
48
|
+
if (!$.support.transition) return
|
49
|
+
|
50
|
+
$.event.special.bsTransitionEnd = {
|
51
|
+
bindType: $.support.transition.end,
|
52
|
+
delegateType: $.support.transition.end,
|
53
|
+
handle: function (e) {
|
54
|
+
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
|
55
|
+
}
|
56
|
+
}
|
46
57
|
})
|
47
58
|
|
48
59
|
}(jQuery);
|
@@ -1,12 +1,12 @@
|
|
1
|
-
//= require ./bootstrap/
|
1
|
+
//= require ./bootstrap/affix
|
2
2
|
//= require ./bootstrap/alert
|
3
3
|
//= require ./bootstrap/button
|
4
4
|
//= require ./bootstrap/carousel
|
5
5
|
//= require ./bootstrap/collapse
|
6
6
|
//= require ./bootstrap/dropdown
|
7
|
+
//= require ./bootstrap/tab
|
8
|
+
//= require ./bootstrap/transition
|
9
|
+
//= require ./bootstrap/scrollspy
|
7
10
|
//= require ./bootstrap/modal
|
8
11
|
//= require ./bootstrap/tooltip
|
9
12
|
//= require ./bootstrap/popover
|
10
|
-
//= require ./bootstrap/scrollspy
|
11
|
-
//= require ./bootstrap/tab
|
12
|
-
//= require ./bootstrap/affix
|
@@ -1,17 +1,17 @@
|
|
1
1
|
/*!
|
2
|
-
* Font Awesome 4.0
|
2
|
+
* Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome
|
3
3
|
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
4
4
|
*/
|
5
5
|
|
6
|
-
@import "variables";
|
7
|
-
@import "mixins";
|
8
|
-
@import "path";
|
9
|
-
@import "core";
|
10
|
-
@import "larger";
|
11
|
-
@import "fixed-width";
|
12
|
-
@import "list";
|
13
|
-
@import "bordered-pulled";
|
14
|
-
@import "spinning";
|
15
|
-
@import "rotated-flipped";
|
16
|
-
@import "stacked";
|
17
|
-
@import "icons";
|
6
|
+
@import "variables.less";
|
7
|
+
@import "mixins.less";
|
8
|
+
@import "path.less";
|
9
|
+
@import "core.less";
|
10
|
+
@import "larger.less";
|
11
|
+
@import "fixed-width.less";
|
12
|
+
@import "list.less";
|
13
|
+
@import "bordered-pulled.less";
|
14
|
+
@import "spinning.less";
|
15
|
+
@import "rotated-flipped.less";
|
16
|
+
@import "stacked.less";
|
17
|
+
@import "icons.less";
|
@@ -63,6 +63,8 @@
|
|
63
63
|
.@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; }
|
64
64
|
.@{fa-css-prefix}-indent:before { content: @fa-var-indent; }
|
65
65
|
.@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; }
|
66
|
+
.@{fa-css-prefix}-photo:before,
|
67
|
+
.@{fa-css-prefix}-image:before,
|
66
68
|
.@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; }
|
67
69
|
.@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; }
|
68
70
|
.@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; }
|
@@ -190,6 +192,8 @@
|
|
190
192
|
.@{fa-css-prefix}-save:before,
|
191
193
|
.@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; }
|
192
194
|
.@{fa-css-prefix}-square:before { content: @fa-var-square; }
|
195
|
+
.@{fa-css-prefix}-navicon:before,
|
196
|
+
.@{fa-css-prefix}-reorder:before,
|
193
197
|
.@{fa-css-prefix}-bars:before { content: @fa-var-bars; }
|
194
198
|
.@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; }
|
195
199
|
.@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; }
|
@@ -211,9 +215,9 @@
|
|
211
215
|
.@{fa-css-prefix}-unsorted:before,
|
212
216
|
.@{fa-css-prefix}-sort:before { content: @fa-var-sort; }
|
213
217
|
.@{fa-css-prefix}-sort-down:before,
|
214
|
-
.@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }
|
215
|
-
.@{fa-css-prefix}-sort-up:before,
|
216
218
|
.@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; }
|
219
|
+
.@{fa-css-prefix}-sort-up:before,
|
220
|
+
.@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }
|
217
221
|
.@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; }
|
218
222
|
.@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; }
|
219
223
|
.@{fa-css-prefix}-rotate-left:before,
|
@@ -281,8 +285,8 @@
|
|
281
285
|
.@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; }
|
282
286
|
.@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; }
|
283
287
|
.@{fa-css-prefix}-code:before { content: @fa-var-code; }
|
288
|
+
.@{fa-css-prefix}-mail-reply-all:before,
|
284
289
|
.@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; }
|
285
|
-
.@{fa-css-prefix}-mail-reply-all:before { content: @fa-var-mail-reply-all; }
|
286
290
|
.@{fa-css-prefix}-star-half-empty:before,
|
287
291
|
.@{fa-css-prefix}-star-half-full:before,
|
288
292
|
.@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; }
|
@@ -410,3 +414,93 @@
|
|
410
414
|
.@{fa-css-prefix}-turkish-lira:before,
|
411
415
|
.@{fa-css-prefix}-try:before { content: @fa-var-try; }
|
412
416
|
.@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; }
|
417
|
+
.@{fa-css-prefix}-space-shuttle:before { content: @fa-var-space-shuttle; }
|
418
|
+
.@{fa-css-prefix}-slack:before { content: @fa-var-slack; }
|
419
|
+
.@{fa-css-prefix}-envelope-square:before { content: @fa-var-envelope-square; }
|
420
|
+
.@{fa-css-prefix}-wordpress:before { content: @fa-var-wordpress; }
|
421
|
+
.@{fa-css-prefix}-openid:before { content: @fa-var-openid; }
|
422
|
+
.@{fa-css-prefix}-institution:before,
|
423
|
+
.@{fa-css-prefix}-bank:before,
|
424
|
+
.@{fa-css-prefix}-university:before { content: @fa-var-university; }
|
425
|
+
.@{fa-css-prefix}-mortar-board:before,
|
426
|
+
.@{fa-css-prefix}-graduation-cap:before { content: @fa-var-graduation-cap; }
|
427
|
+
.@{fa-css-prefix}-yahoo:before { content: @fa-var-yahoo; }
|
428
|
+
.@{fa-css-prefix}-google:before { content: @fa-var-google; }
|
429
|
+
.@{fa-css-prefix}-reddit:before { content: @fa-var-reddit; }
|
430
|
+
.@{fa-css-prefix}-reddit-square:before { content: @fa-var-reddit-square; }
|
431
|
+
.@{fa-css-prefix}-stumbleupon-circle:before { content: @fa-var-stumbleupon-circle; }
|
432
|
+
.@{fa-css-prefix}-stumbleupon:before { content: @fa-var-stumbleupon; }
|
433
|
+
.@{fa-css-prefix}-delicious:before { content: @fa-var-delicious; }
|
434
|
+
.@{fa-css-prefix}-digg:before { content: @fa-var-digg; }
|
435
|
+
.@{fa-css-prefix}-pied-piper-square:before,
|
436
|
+
.@{fa-css-prefix}-pied-piper:before { content: @fa-var-pied-piper; }
|
437
|
+
.@{fa-css-prefix}-pied-piper-alt:before { content: @fa-var-pied-piper-alt; }
|
438
|
+
.@{fa-css-prefix}-drupal:before { content: @fa-var-drupal; }
|
439
|
+
.@{fa-css-prefix}-joomla:before { content: @fa-var-joomla; }
|
440
|
+
.@{fa-css-prefix}-language:before { content: @fa-var-language; }
|
441
|
+
.@{fa-css-prefix}-fax:before { content: @fa-var-fax; }
|
442
|
+
.@{fa-css-prefix}-building:before { content: @fa-var-building; }
|
443
|
+
.@{fa-css-prefix}-child:before { content: @fa-var-child; }
|
444
|
+
.@{fa-css-prefix}-paw:before { content: @fa-var-paw; }
|
445
|
+
.@{fa-css-prefix}-spoon:before { content: @fa-var-spoon; }
|
446
|
+
.@{fa-css-prefix}-cube:before { content: @fa-var-cube; }
|
447
|
+
.@{fa-css-prefix}-cubes:before { content: @fa-var-cubes; }
|
448
|
+
.@{fa-css-prefix}-behance:before { content: @fa-var-behance; }
|
449
|
+
.@{fa-css-prefix}-behance-square:before { content: @fa-var-behance-square; }
|
450
|
+
.@{fa-css-prefix}-steam:before { content: @fa-var-steam; }
|
451
|
+
.@{fa-css-prefix}-steam-square:before { content: @fa-var-steam-square; }
|
452
|
+
.@{fa-css-prefix}-recycle:before { content: @fa-var-recycle; }
|
453
|
+
.@{fa-css-prefix}-automobile:before,
|
454
|
+
.@{fa-css-prefix}-car:before { content: @fa-var-car; }
|
455
|
+
.@{fa-css-prefix}-cab:before,
|
456
|
+
.@{fa-css-prefix}-taxi:before { content: @fa-var-taxi; }
|
457
|
+
.@{fa-css-prefix}-tree:before { content: @fa-var-tree; }
|
458
|
+
.@{fa-css-prefix}-spotify:before { content: @fa-var-spotify; }
|
459
|
+
.@{fa-css-prefix}-deviantart:before { content: @fa-var-deviantart; }
|
460
|
+
.@{fa-css-prefix}-soundcloud:before { content: @fa-var-soundcloud; }
|
461
|
+
.@{fa-css-prefix}-database:before { content: @fa-var-database; }
|
462
|
+
.@{fa-css-prefix}-file-pdf-o:before { content: @fa-var-file-pdf-o; }
|
463
|
+
.@{fa-css-prefix}-file-word-o:before { content: @fa-var-file-word-o; }
|
464
|
+
.@{fa-css-prefix}-file-excel-o:before { content: @fa-var-file-excel-o; }
|
465
|
+
.@{fa-css-prefix}-file-powerpoint-o:before { content: @fa-var-file-powerpoint-o; }
|
466
|
+
.@{fa-css-prefix}-file-photo-o:before,
|
467
|
+
.@{fa-css-prefix}-file-picture-o:before,
|
468
|
+
.@{fa-css-prefix}-file-image-o:before { content: @fa-var-file-image-o; }
|
469
|
+
.@{fa-css-prefix}-file-zip-o:before,
|
470
|
+
.@{fa-css-prefix}-file-archive-o:before { content: @fa-var-file-archive-o; }
|
471
|
+
.@{fa-css-prefix}-file-sound-o:before,
|
472
|
+
.@{fa-css-prefix}-file-audio-o:before { content: @fa-var-file-audio-o; }
|
473
|
+
.@{fa-css-prefix}-file-movie-o:before,
|
474
|
+
.@{fa-css-prefix}-file-video-o:before { content: @fa-var-file-video-o; }
|
475
|
+
.@{fa-css-prefix}-file-code-o:before { content: @fa-var-file-code-o; }
|
476
|
+
.@{fa-css-prefix}-vine:before { content: @fa-var-vine; }
|
477
|
+
.@{fa-css-prefix}-codepen:before { content: @fa-var-codepen; }
|
478
|
+
.@{fa-css-prefix}-jsfiddle:before { content: @fa-var-jsfiddle; }
|
479
|
+
.@{fa-css-prefix}-life-bouy:before,
|
480
|
+
.@{fa-css-prefix}-life-saver:before,
|
481
|
+
.@{fa-css-prefix}-support:before,
|
482
|
+
.@{fa-css-prefix}-life-ring:before { content: @fa-var-life-ring; }
|
483
|
+
.@{fa-css-prefix}-circle-o-notch:before { content: @fa-var-circle-o-notch; }
|
484
|
+
.@{fa-css-prefix}-ra:before,
|
485
|
+
.@{fa-css-prefix}-rebel:before { content: @fa-var-rebel; }
|
486
|
+
.@{fa-css-prefix}-ge:before,
|
487
|
+
.@{fa-css-prefix}-empire:before { content: @fa-var-empire; }
|
488
|
+
.@{fa-css-prefix}-git-square:before { content: @fa-var-git-square; }
|
489
|
+
.@{fa-css-prefix}-git:before { content: @fa-var-git; }
|
490
|
+
.@{fa-css-prefix}-hacker-news:before { content: @fa-var-hacker-news; }
|
491
|
+
.@{fa-css-prefix}-tencent-weibo:before { content: @fa-var-tencent-weibo; }
|
492
|
+
.@{fa-css-prefix}-qq:before { content: @fa-var-qq; }
|
493
|
+
.@{fa-css-prefix}-wechat:before,
|
494
|
+
.@{fa-css-prefix}-weixin:before { content: @fa-var-weixin; }
|
495
|
+
.@{fa-css-prefix}-send:before,
|
496
|
+
.@{fa-css-prefix}-paper-plane:before { content: @fa-var-paper-plane; }
|
497
|
+
.@{fa-css-prefix}-send-o:before,
|
498
|
+
.@{fa-css-prefix}-paper-plane-o:before { content: @fa-var-paper-plane-o; }
|
499
|
+
.@{fa-css-prefix}-history:before { content: @fa-var-history; }
|
500
|
+
.@{fa-css-prefix}-circle-thin:before { content: @fa-var-circle-thin; }
|
501
|
+
.@{fa-css-prefix}-header:before { content: @fa-var-header; }
|
502
|
+
.@{fa-css-prefix}-paragraph:before { content: @fa-var-paragraph; }
|
503
|
+
.@{fa-css-prefix}-sliders:before { content: @fa-var-sliders; }
|
504
|
+
.@{fa-css-prefix}-share-alt:before { content: @fa-var-share-alt; }
|
505
|
+
.@{fa-css-prefix}-share-alt-square:before { content: @fa-var-share-alt-square; }
|
506
|
+
.@{fa-css-prefix}-bomb:before { content: @fa-var-bomb; }
|
@@ -20,11 +20,13 @@
|
|
20
20
|
0% { -o-transform: rotate(0deg); }
|
21
21
|
100% { -o-transform: rotate(359deg); }
|
22
22
|
}
|
23
|
-
@-ms-keyframes spin {
|
24
|
-
0% { -ms-transform: rotate(0deg); }
|
25
|
-
100% { -ms-transform: rotate(359deg); }
|
26
|
-
}
|
27
23
|
@keyframes spin {
|
28
|
-
0% {
|
29
|
-
|
24
|
+
0% {
|
25
|
+
-webkit-transform: rotate(0deg);
|
26
|
+
transform: rotate(0deg);
|
27
|
+
}
|
28
|
+
100% {
|
29
|
+
-webkit-transform: rotate(359deg);
|
30
|
+
transform: rotate(359deg);
|
31
|
+
}
|
30
32
|
}
|