bootswatch-sass 3.3.2 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/bootstrap/affix.js +5 -5
- data/assets/javascripts/bootstrap/alert.js +2 -2
- data/assets/javascripts/bootstrap/button.js +13 -9
- data/assets/javascripts/bootstrap/carousel.js +6 -6
- data/assets/javascripts/bootstrap/collapse.js +7 -7
- data/assets/javascripts/bootstrap/dropdown.js +47 -43
- data/assets/javascripts/bootstrap/modal.js +44 -31
- data/assets/javascripts/bootstrap/popover.js +3 -8
- data/assets/javascripts/bootstrap/scrollspy.js +17 -20
- data/assets/javascripts/bootstrap/tab.js +6 -4
- data/assets/javascripts/bootstrap/tooltip.js +73 -31
- data/assets/javascripts/bootstrap/transition.js +1 -1
- data/assets/stylesheets/_bootstrap.scss +6 -0
- data/assets/stylesheets/bootstrap/_alerts.scss +2 -2
- data/assets/stylesheets/bootstrap/_badges.scss +7 -6
- data/assets/stylesheets/bootstrap/_button-groups.scss +3 -2
- data/assets/stylesheets/bootstrap/_buttons.scss +13 -5
- data/assets/stylesheets/bootstrap/_carousel.scss +2 -2
- data/assets/stylesheets/bootstrap/_component-animations.scss +1 -2
- data/assets/stylesheets/bootstrap/_dropdowns.scss +4 -2
- data/assets/stylesheets/bootstrap/_forms.scss +56 -15
- data/assets/stylesheets/bootstrap/_glyphicons.scss +15 -9
- data/assets/stylesheets/bootstrap/_input-groups.scss +1 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +6 -4
- data/assets/stylesheets/bootstrap/_list-group.scss +9 -3
- data/assets/stylesheets/bootstrap/_media.scss +5 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +1 -0
- data/assets/stylesheets/bootstrap/_modals.scss +3 -1
- data/assets/stylesheets/bootstrap/_navbar.scss +0 -1
- data/assets/stylesheets/bootstrap/_navs.scss +0 -2
- data/assets/stylesheets/bootstrap/_normalize.scss +8 -11
- data/assets/stylesheets/bootstrap/_pagination.scss +3 -2
- data/assets/stylesheets/bootstrap/_panels.scss +6 -0
- data/assets/stylesheets/bootstrap/_popovers.scss +4 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -6
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +8 -8
- data/assets/stylesheets/bootstrap/_responsive-utilities.scss +4 -2
- data/assets/stylesheets/bootstrap/_scaffolding.scss +11 -0
- data/assets/stylesheets/bootstrap/_theme.scss +23 -5
- data/assets/stylesheets/bootstrap/_tooltip.scss +4 -6
- data/assets/stylesheets/bootstrap/_type.scss +1 -1
- data/assets/stylesheets/bootstrap/_utilities.scss +0 -1
- data/assets/stylesheets/bootstrap/_variables.scss +12 -2
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +18 -2
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +2 -1
- data/assets/stylesheets/cerulean/_bootswatch.scss +7 -1
- data/assets/stylesheets/cerulean/_variables.scss +392 -381
- data/assets/stylesheets/cosmo/_bootswatch.scss +26 -2
- data/assets/stylesheets/cosmo/_variables.scss +392 -381
- data/assets/stylesheets/cyborg/_bootswatch.scss +26 -2
- data/assets/stylesheets/cyborg/_variables.scss +392 -381
- data/assets/stylesheets/darkly/_bootswatch.scss +22 -4
- data/assets/stylesheets/darkly/_variables.scss +392 -381
- data/assets/stylesheets/flatly/_bootswatch.scss +21 -3
- data/assets/stylesheets/flatly/_variables.scss +392 -381
- data/assets/stylesheets/journal/_bootswatch.scss +26 -2
- data/assets/stylesheets/journal/_variables.scss +392 -381
- data/assets/stylesheets/lumen/_bootswatch.scss +47 -8
- data/assets/stylesheets/lumen/_variables.scss +392 -381
- data/assets/stylesheets/paper/_bootswatch.scss +214 -76
- data/assets/stylesheets/paper/_variables.scss +392 -381
- data/assets/stylesheets/readable/_bootswatch.scss +16 -24
- data/assets/stylesheets/readable/_variables.scss +392 -381
- data/assets/stylesheets/sandstone/_bootswatch.scss +7 -4
- data/assets/stylesheets/sandstone/_variables.scss +392 -381
- data/assets/stylesheets/simplex/_bootswatch.scss +32 -5
- data/assets/stylesheets/simplex/_variables.scss +392 -381
- data/assets/stylesheets/slate/_bootswatch.scss +25 -1
- data/assets/stylesheets/slate/_variables.scss +392 -381
- data/assets/stylesheets/spacelab/_bootswatch.scss +4 -4
- data/assets/stylesheets/spacelab/_variables.scss +392 -381
- data/assets/stylesheets/superhero/_bootswatch.scss +26 -2
- data/assets/stylesheets/superhero/_variables.scss +392 -381
- data/assets/stylesheets/united/_bootswatch.scss +15 -2
- data/assets/stylesheets/united/_variables.scss +392 -381
- data/assets/stylesheets/yeti/_bootswatch.scss +2 -2
- data/assets/stylesheets/yeti/_variables.scss +392 -381
- data/lib/bootswatch-sass/version.rb +1 -1
- data/test/dummy/Gemfile +7 -5
- data/test/dummy/app/views/home/index.html.erb +1 -1
- metadata +4 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: popover.js v3.3.
|
2
|
+
* Bootstrap: popover.js v3.3.5
|
3
3
|
* http://getbootstrap.com/javascript/#popovers
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2011-2015 Twitter, Inc.
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
21
21
|
|
22
|
-
Popover.VERSION = '3.3.
|
22
|
+
Popover.VERSION = '3.3.5'
|
23
23
|
|
24
24
|
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
25
25
|
placement: 'right',
|
@@ -75,11 +75,6 @@
|
|
75
75
|
return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
|
76
76
|
}
|
77
77
|
|
78
|
-
Popover.prototype.tip = function () {
|
79
|
-
if (!this.$tip) this.$tip = $(this.options.template)
|
80
|
-
return this.$tip
|
81
|
-
}
|
82
|
-
|
83
78
|
|
84
79
|
// POPOVER PLUGIN DEFINITION
|
85
80
|
// =========================
|
@@ -90,7 +85,7 @@
|
|
90
85
|
var data = $this.data('bs.popover')
|
91
86
|
var options = typeof option == 'object' && option
|
92
87
|
|
93
|
-
if (!data && option
|
88
|
+
if (!data && /destroy|hide/.test(option)) return
|
94
89
|
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
|
95
90
|
if (typeof option == 'string') data[option]()
|
96
91
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: scrollspy.js v3.3.
|
2
|
+
* Bootstrap: scrollspy.js v3.3.5
|
3
3
|
* http://getbootstrap.com/javascript/#scrollspy
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2011-2015 Twitter, Inc.
|
@@ -14,10 +14,8 @@
|
|
14
14
|
// ==========================
|
15
15
|
|
16
16
|
function ScrollSpy(element, options) {
|
17
|
-
|
18
|
-
|
19
|
-
this.$body = $('body')
|
20
|
-
this.$scrollElement = $(element).is('body') ? $(window) : $(element)
|
17
|
+
this.$body = $(document.body)
|
18
|
+
this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
|
21
19
|
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
|
22
20
|
this.selector = (this.options.target || '') + ' .nav li > a'
|
23
21
|
this.offsets = []
|
@@ -25,12 +23,12 @@
|
|
25
23
|
this.activeTarget = null
|
26
24
|
this.scrollHeight = 0
|
27
25
|
|
28
|
-
this.$scrollElement.on('scroll.bs.scrollspy', process)
|
26
|
+
this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
|
29
27
|
this.refresh()
|
30
28
|
this.process()
|
31
29
|
}
|
32
30
|
|
33
|
-
ScrollSpy.VERSION = '3.3.
|
31
|
+
ScrollSpy.VERSION = '3.3.5'
|
34
32
|
|
35
33
|
ScrollSpy.DEFAULTS = {
|
36
34
|
offset: 10
|
@@ -41,20 +39,19 @@
|
|
41
39
|
}
|
42
40
|
|
43
41
|
ScrollSpy.prototype.refresh = function () {
|
44
|
-
var
|
45
|
-
var
|
42
|
+
var that = this
|
43
|
+
var offsetMethod = 'offset'
|
44
|
+
var offsetBase = 0
|
45
|
+
|
46
|
+
this.offsets = []
|
47
|
+
this.targets = []
|
48
|
+
this.scrollHeight = this.getScrollHeight()
|
46
49
|
|
47
50
|
if (!$.isWindow(this.$scrollElement[0])) {
|
48
51
|
offsetMethod = 'position'
|
49
52
|
offsetBase = this.$scrollElement.scrollTop()
|
50
53
|
}
|
51
54
|
|
52
|
-
this.offsets = []
|
53
|
-
this.targets = []
|
54
|
-
this.scrollHeight = this.getScrollHeight()
|
55
|
-
|
56
|
-
var self = this
|
57
|
-
|
58
55
|
this.$body
|
59
56
|
.find(this.selector)
|
60
57
|
.map(function () {
|
@@ -69,8 +66,8 @@
|
|
69
66
|
})
|
70
67
|
.sort(function (a, b) { return a[0] - b[0] })
|
71
68
|
.each(function () {
|
72
|
-
|
73
|
-
|
69
|
+
that.offsets.push(this[0])
|
70
|
+
that.targets.push(this[1])
|
74
71
|
})
|
75
72
|
}
|
76
73
|
|
@@ -99,7 +96,7 @@
|
|
99
96
|
for (i = offsets.length; i--;) {
|
100
97
|
activeTarget != targets[i]
|
101
98
|
&& scrollTop >= offsets[i]
|
102
|
-
&& (
|
99
|
+
&& (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
|
103
100
|
&& this.activate(targets[i])
|
104
101
|
}
|
105
102
|
}
|
@@ -110,8 +107,8 @@
|
|
110
107
|
this.clear()
|
111
108
|
|
112
109
|
var selector = this.selector +
|
113
|
-
|
114
|
-
|
110
|
+
'[data-target="' + target + '"],' +
|
111
|
+
this.selector + '[href="' + target + '"]'
|
115
112
|
|
116
113
|
var active = $(selector)
|
117
114
|
.parents('li')
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: tab.js v3.3.
|
2
|
+
* Bootstrap: tab.js v3.3.5
|
3
3
|
* http://getbootstrap.com/javascript/#tabs
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2011-2015 Twitter, Inc.
|
@@ -14,10 +14,12 @@
|
|
14
14
|
// ====================
|
15
15
|
|
16
16
|
var Tab = function (element) {
|
17
|
+
// jscs:disable requireDollarBeforejQueryAssignment
|
17
18
|
this.element = $(element)
|
19
|
+
// jscs:enable requireDollarBeforejQueryAssignment
|
18
20
|
}
|
19
21
|
|
20
|
-
Tab.VERSION = '3.3.
|
22
|
+
Tab.VERSION = '3.3.5'
|
21
23
|
|
22
24
|
Tab.TRANSITION_DURATION = 150
|
23
25
|
|
@@ -65,7 +67,7 @@
|
|
65
67
|
var $active = container.find('> .active')
|
66
68
|
var transition = callback
|
67
69
|
&& $.support.transition
|
68
|
-
&& (
|
70
|
+
&& ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
|
69
71
|
|
70
72
|
function next() {
|
71
73
|
$active
|
@@ -88,7 +90,7 @@
|
|
88
90
|
element.removeClass('fade')
|
89
91
|
}
|
90
92
|
|
91
|
-
if (element.parent('.dropdown-menu')) {
|
93
|
+
if (element.parent('.dropdown-menu').length) {
|
92
94
|
element
|
93
95
|
.closest('li.dropdown')
|
94
96
|
.addClass('active')
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: tooltip.js v3.3.
|
2
|
+
* Bootstrap: tooltip.js v3.3.5
|
3
3
|
* http://getbootstrap.com/javascript/#tooltip
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ========================================================================
|
@@ -15,17 +15,18 @@
|
|
15
15
|
// ===============================
|
16
16
|
|
17
17
|
var Tooltip = function (element, options) {
|
18
|
-
this.type =
|
19
|
-
this.options =
|
20
|
-
this.enabled =
|
21
|
-
this.timeout =
|
22
|
-
this.hoverState =
|
18
|
+
this.type = null
|
19
|
+
this.options = null
|
20
|
+
this.enabled = null
|
21
|
+
this.timeout = null
|
22
|
+
this.hoverState = null
|
23
23
|
this.$element = null
|
24
|
+
this.inState = null
|
24
25
|
|
25
26
|
this.init('tooltip', element, options)
|
26
27
|
}
|
27
28
|
|
28
|
-
Tooltip.VERSION = '3.3.
|
29
|
+
Tooltip.VERSION = '3.3.5'
|
29
30
|
|
30
31
|
Tooltip.TRANSITION_DURATION = 150
|
31
32
|
|
@@ -50,7 +51,12 @@
|
|
50
51
|
this.type = type
|
51
52
|
this.$element = $(element)
|
52
53
|
this.options = this.getOptions(options)
|
53
|
-
this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport)
|
54
|
+
this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
|
55
|
+
this.inState = { click: false, hover: false, focus: false }
|
56
|
+
|
57
|
+
if (this.$element[0] instanceof document.constructor && !this.options.selector) {
|
58
|
+
throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
|
59
|
+
}
|
54
60
|
|
55
61
|
var triggers = this.options.trigger.split(' ')
|
56
62
|
|
@@ -105,16 +111,20 @@
|
|
105
111
|
var self = obj instanceof this.constructor ?
|
106
112
|
obj : $(obj.currentTarget).data('bs.' + this.type)
|
107
113
|
|
108
|
-
if (self && self.$tip && self.$tip.is(':visible')) {
|
109
|
-
self.hoverState = 'in'
|
110
|
-
return
|
111
|
-
}
|
112
|
-
|
113
114
|
if (!self) {
|
114
115
|
self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
|
115
116
|
$(obj.currentTarget).data('bs.' + this.type, self)
|
116
117
|
}
|
117
118
|
|
119
|
+
if (obj instanceof $.Event) {
|
120
|
+
self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true
|
121
|
+
}
|
122
|
+
|
123
|
+
if (self.tip().hasClass('in') || self.hoverState == 'in') {
|
124
|
+
self.hoverState = 'in'
|
125
|
+
return
|
126
|
+
}
|
127
|
+
|
118
128
|
clearTimeout(self.timeout)
|
119
129
|
|
120
130
|
self.hoverState = 'in'
|
@@ -126,6 +136,14 @@
|
|
126
136
|
}, self.options.delay.show)
|
127
137
|
}
|
128
138
|
|
139
|
+
Tooltip.prototype.isInStateTrue = function () {
|
140
|
+
for (var key in this.inState) {
|
141
|
+
if (this.inState[key]) return true
|
142
|
+
}
|
143
|
+
|
144
|
+
return false
|
145
|
+
}
|
146
|
+
|
129
147
|
Tooltip.prototype.leave = function (obj) {
|
130
148
|
var self = obj instanceof this.constructor ?
|
131
149
|
obj : $(obj.currentTarget).data('bs.' + this.type)
|
@@ -135,6 +153,12 @@
|
|
135
153
|
$(obj.currentTarget).data('bs.' + this.type, self)
|
136
154
|
}
|
137
155
|
|
156
|
+
if (obj instanceof $.Event) {
|
157
|
+
self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false
|
158
|
+
}
|
159
|
+
|
160
|
+
if (self.isInStateTrue()) return
|
161
|
+
|
138
162
|
clearTimeout(self.timeout)
|
139
163
|
|
140
164
|
self.hoverState = 'out'
|
@@ -181,6 +205,7 @@
|
|
181
205
|
.data('bs.' + this.type, this)
|
182
206
|
|
183
207
|
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
|
208
|
+
this.$element.trigger('inserted.bs.' + this.type)
|
184
209
|
|
185
210
|
var pos = this.getPosition()
|
186
211
|
var actualWidth = $tip[0].offsetWidth
|
@@ -188,13 +213,12 @@
|
|
188
213
|
|
189
214
|
if (autoPlace) {
|
190
215
|
var orgPlacement = placement
|
191
|
-
var
|
192
|
-
var containerDim = this.getPosition($container)
|
216
|
+
var viewportDim = this.getPosition(this.$viewport)
|
193
217
|
|
194
|
-
placement = placement == 'bottom' && pos.bottom + actualHeight >
|
195
|
-
placement == 'top' && pos.top - actualHeight <
|
196
|
-
placement == 'right' && pos.right + actualWidth >
|
197
|
-
placement == 'left' && pos.left - actualWidth <
|
218
|
+
placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' :
|
219
|
+
placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' :
|
220
|
+
placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' :
|
221
|
+
placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' :
|
198
222
|
placement
|
199
223
|
|
200
224
|
$tip
|
@@ -235,8 +259,8 @@
|
|
235
259
|
if (isNaN(marginTop)) marginTop = 0
|
236
260
|
if (isNaN(marginLeft)) marginLeft = 0
|
237
261
|
|
238
|
-
offset.top
|
239
|
-
offset.left
|
262
|
+
offset.top += marginTop
|
263
|
+
offset.left += marginLeft
|
240
264
|
|
241
265
|
// $.fn.offset doesn't round pixel values
|
242
266
|
// so we use setOffset directly with our own function B-0
|
@@ -272,10 +296,10 @@
|
|
272
296
|
this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
|
273
297
|
}
|
274
298
|
|
275
|
-
Tooltip.prototype.replaceArrow = function (delta, dimension,
|
299
|
+
Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
|
276
300
|
this.arrow()
|
277
|
-
.css(
|
278
|
-
.css(
|
301
|
+
.css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
|
302
|
+
.css(isVertical ? 'top' : 'left', '')
|
279
303
|
}
|
280
304
|
|
281
305
|
Tooltip.prototype.setContent = function () {
|
@@ -288,7 +312,7 @@
|
|
288
312
|
|
289
313
|
Tooltip.prototype.hide = function (callback) {
|
290
314
|
var that = this
|
291
|
-
var $tip = this
|
315
|
+
var $tip = $(this.$tip)
|
292
316
|
var e = $.Event('hide.bs.' + this.type)
|
293
317
|
|
294
318
|
function complete() {
|
@@ -305,7 +329,7 @@
|
|
305
329
|
|
306
330
|
$tip.removeClass('in')
|
307
331
|
|
308
|
-
$.support.transition &&
|
332
|
+
$.support.transition && $tip.hasClass('fade') ?
|
309
333
|
$tip
|
310
334
|
.one('bsTransitionEnd', complete)
|
311
335
|
.emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
|
@@ -318,7 +342,7 @@
|
|
318
342
|
|
319
343
|
Tooltip.prototype.fixTitle = function () {
|
320
344
|
var $e = this.$element
|
321
|
-
if ($e.attr('title') || typeof
|
345
|
+
if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
|
322
346
|
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
323
347
|
}
|
324
348
|
}
|
@@ -373,7 +397,7 @@
|
|
373
397
|
var rightEdgeOffset = pos.left + viewportPadding + actualWidth
|
374
398
|
if (leftEdgeOffset < viewportDimensions.left) { // left overflow
|
375
399
|
delta.left = viewportDimensions.left - leftEdgeOffset
|
376
|
-
} else if (rightEdgeOffset > viewportDimensions.
|
400
|
+
} else if (rightEdgeOffset > viewportDimensions.right) { // right overflow
|
377
401
|
delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
|
378
402
|
}
|
379
403
|
}
|
@@ -399,7 +423,13 @@
|
|
399
423
|
}
|
400
424
|
|
401
425
|
Tooltip.prototype.tip = function () {
|
402
|
-
|
426
|
+
if (!this.$tip) {
|
427
|
+
this.$tip = $(this.options.template)
|
428
|
+
if (this.$tip.length != 1) {
|
429
|
+
throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
|
430
|
+
}
|
431
|
+
}
|
432
|
+
return this.$tip
|
403
433
|
}
|
404
434
|
|
405
435
|
Tooltip.prototype.arrow = function () {
|
@@ -428,7 +458,13 @@
|
|
428
458
|
}
|
429
459
|
}
|
430
460
|
|
431
|
-
|
461
|
+
if (e) {
|
462
|
+
self.inState.click = !self.inState.click
|
463
|
+
if (self.isInStateTrue()) self.enter(self)
|
464
|
+
else self.leave(self)
|
465
|
+
} else {
|
466
|
+
self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
|
467
|
+
}
|
432
468
|
}
|
433
469
|
|
434
470
|
Tooltip.prototype.destroy = function () {
|
@@ -436,6 +472,12 @@
|
|
436
472
|
clearTimeout(this.timeout)
|
437
473
|
this.hide(function () {
|
438
474
|
that.$element.off('.' + that.type).removeData('bs.' + that.type)
|
475
|
+
if (that.$tip) {
|
476
|
+
that.$tip.detach()
|
477
|
+
}
|
478
|
+
that.$tip = null
|
479
|
+
that.$arrow = null
|
480
|
+
that.$viewport = null
|
439
481
|
})
|
440
482
|
}
|
441
483
|
|
@@ -449,7 +491,7 @@
|
|
449
491
|
var data = $this.data('bs.tooltip')
|
450
492
|
var options = typeof option == 'object' && option
|
451
493
|
|
452
|
-
if (!data && option
|
494
|
+
if (!data && /destroy|hide/.test(option)) return
|
453
495
|
if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
|
454
496
|
if (typeof option == 'string') data[option]()
|
455
497
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* Bootstrap: transition.js v3.3.
|
2
|
+
* Bootstrap: transition.js v3.3.5
|
3
3
|
* http://getbootstrap.com/javascript/#transitions
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2011-2015 Twitter, Inc.
|
@@ -1,3 +1,9 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v3.3.5 (http://getbootstrap.com)
|
3
|
+
* Copyright 2011-2015 Twitter, Inc.
|
4
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
|
+
*/
|
6
|
+
|
1
7
|
// Core variables and mixins
|
2
8
|
@import "bootstrap/variables";
|
3
9
|
@import "bootstrap/mixins";
|
@@ -18,7 +18,7 @@
|
|
18
18
|
// Specified for the h4 to prevent conflicts of changing $headings-color
|
19
19
|
color: inherit;
|
20
20
|
}
|
21
|
-
|
21
|
+
|
22
22
|
// Provide class for links that match alerts
|
23
23
|
.alert-link {
|
24
24
|
font-weight: $alert-link-font-weight;
|
@@ -29,7 +29,7 @@
|
|
29
29
|
> ul {
|
30
30
|
margin-bottom: 0;
|
31
31
|
}
|
32
|
-
|
32
|
+
|
33
33
|
> p + p {
|
34
34
|
margin-top: 5px;
|
35
35
|
}
|
@@ -12,7 +12,7 @@
|
|
12
12
|
font-weight: $badge-font-weight;
|
13
13
|
color: $badge-color;
|
14
14
|
line-height: $badge-line-height;
|
15
|
-
vertical-align:
|
15
|
+
vertical-align: middle;
|
16
16
|
white-space: nowrap;
|
17
17
|
text-align: center;
|
18
18
|
background-color: $badge-bg;
|
@@ -28,8 +28,9 @@
|
|
28
28
|
position: relative;
|
29
29
|
top: -1px;
|
30
30
|
}
|
31
|
-
|
32
|
-
.btn-xs
|
31
|
+
|
32
|
+
.btn-xs &,
|
33
|
+
.btn-group-xs > .btn & {
|
33
34
|
top: 0;
|
34
35
|
padding: 1px 5px;
|
35
36
|
}
|
@@ -42,15 +43,15 @@
|
|
42
43
|
color: $badge-active-color;
|
43
44
|
background-color: $badge-active-bg;
|
44
45
|
}
|
45
|
-
|
46
|
+
|
46
47
|
.list-group-item > & {
|
47
48
|
float: right;
|
48
49
|
}
|
49
|
-
|
50
|
+
|
50
51
|
.list-group-item > & + & {
|
51
52
|
margin-right: 5px;
|
52
53
|
}
|
53
|
-
|
54
|
+
|
54
55
|
.nav-pills > li > a > & {
|
55
56
|
margin-left: 3px;
|
56
57
|
}
|