compass_twitter_bootstrap 2.0.3 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +41 -7
- data/build/convert.rb +27 -11
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +2 -1
- data/stylesheets/_compass_twitter_bootstrap_awesome.scss +1 -1
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +4 -3
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +31 -10
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +14 -14
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +91 -55
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +126 -84
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +33 -23
- data/stylesheets/compass_twitter_bootstrap/_close.scss +7 -5
- data/stylesheets/compass_twitter_bootstrap/_code.scss +12 -8
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +112 -22
- data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +258 -196
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +262 -161
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +18 -2
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +11 -8
- data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +42 -26
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -4
- data/stylesheets/compass_twitter_bootstrap/_media.scss +55 -0
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +243 -189
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +28 -23
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +269 -143
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +59 -46
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +17 -12
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +92 -27
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +116 -36
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +35 -30
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +101 -11
- data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +115 -71
- data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +8 -6
- data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +53 -14
- data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +17 -15
- data/stylesheets/compass_twitter_bootstrap/_responsive.scss +48 -0
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +27 -4
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +24 -22
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +122 -61
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +12 -7
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +50 -15
- data/stylesheets/compass_twitter_bootstrap/_type.scss +93 -93
- data/stylesheets/compass_twitter_bootstrap/_utilities.scss +9 -2
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +134 -38
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +11 -10
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +1 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +1 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +4 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +27 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +12 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +93 -55
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +113 -88
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +31 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +5 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +12 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +105 -21
- data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +228 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +255 -155
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +16 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +10 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +38 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +48 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +215 -174
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +25 -26
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +229 -134
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +53 -46
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +16 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +78 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +106 -40
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +35 -30
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +80 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +8 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +89 -54
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +38 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +18 -17
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +44 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +24 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +25 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +110 -83
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +11 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -19
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +123 -75
- data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +7 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +141 -37
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +10 -9
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +247 -167
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +13 -4
- data/vendor/assets/javascripts/bootstrap-all.js +2 -1
- data/vendor/assets/javascripts/bootstrap-button.js +17 -8
- data/vendor/assets/javascripts/bootstrap-carousel.js +30 -14
- data/vendor/assets/javascripts/bootstrap-collapse.js +24 -14
- data/vendor/assets/javascripts/bootstrap-dropdown.js +80 -19
- data/vendor/assets/javascripts/bootstrap-modal.js +111 -84
- data/vendor/assets/javascripts/bootstrap-popover.js +21 -5
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +21 -10
- data/vendor/assets/javascripts/bootstrap-tab.js +17 -8
- data/vendor/assets/javascripts/bootstrap-tooltip.js +36 -24
- data/vendor/assets/javascripts/bootstrap-transition.js +6 -7
- data/vendor/assets/javascripts/bootstrap-typeahead.js +87 -49
- metadata +17 -7
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===========================================================
|
2
|
-
* bootstrap-tooltip.js v2.
|
2
|
+
* bootstrap-tooltip.js v2.2.2
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ===========================================================
|
@@ -44,11 +44,13 @@
|
|
44
44
|
this.options = this.getOptions(options)
|
45
45
|
this.enabled = true
|
46
46
|
|
47
|
-
if (this.options.trigger
|
48
|
-
|
47
|
+
if (this.options.trigger == 'click') {
|
48
|
+
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
|
49
|
+
} else if (this.options.trigger != 'manual') {
|
50
|
+
eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
|
49
51
|
eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
|
50
|
-
this.$element.on(eventIn, this.options.selector, $.proxy(this.enter, this))
|
51
|
-
this.$element.on(eventOut, this.options.selector, $.proxy(this.leave, this))
|
52
|
+
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
|
53
|
+
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
|
52
54
|
}
|
53
55
|
|
54
56
|
this.options.selector ?
|
@@ -84,9 +86,9 @@
|
|
84
86
|
, leave: function (e) {
|
85
87
|
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
86
88
|
|
89
|
+
if (this.timeout) clearTimeout(this.timeout)
|
87
90
|
if (!self.options.delay || !self.options.delay.hide) return self.hide()
|
88
91
|
|
89
|
-
clearTimeout(this.timeout)
|
90
92
|
self.hoverState = 'out'
|
91
93
|
this.timeout = setTimeout(function() {
|
92
94
|
if (self.hoverState == 'out') self.hide()
|
@@ -117,9 +119,9 @@
|
|
117
119
|
inside = /in/.test(placement)
|
118
120
|
|
119
121
|
$tip
|
120
|
-
.
|
122
|
+
.detach()
|
121
123
|
.css({ top: 0, left: 0, display: 'block' })
|
122
|
-
.
|
124
|
+
.insertAfter(this.$element)
|
123
125
|
|
124
126
|
pos = this.getPosition(inside)
|
125
127
|
|
@@ -142,26 +144,17 @@
|
|
142
144
|
}
|
143
145
|
|
144
146
|
$tip
|
145
|
-
.
|
147
|
+
.offset(tp)
|
146
148
|
.addClass(placement)
|
147
149
|
.addClass('in')
|
148
150
|
}
|
149
151
|
}
|
150
152
|
|
151
|
-
, isHTML: function(text) {
|
152
|
-
// html string detection logic adapted from jQuery
|
153
|
-
return typeof text != 'string'
|
154
|
-
|| ( text.charAt(0) === "<"
|
155
|
-
&& text.charAt( text.length - 1 ) === ">"
|
156
|
-
&& text.length >= 3
|
157
|
-
) || /^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(text)
|
158
|
-
}
|
159
|
-
|
160
153
|
, setContent: function () {
|
161
154
|
var $tip = this.tip()
|
162
155
|
, title = this.getTitle()
|
163
156
|
|
164
|
-
$tip.find('.tooltip-inner')[this.
|
157
|
+
$tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
|
165
158
|
$tip.removeClass('fade in top bottom left right')
|
166
159
|
}
|
167
160
|
|
@@ -173,18 +166,20 @@
|
|
173
166
|
|
174
167
|
function removeWithAnimation() {
|
175
168
|
var timeout = setTimeout(function () {
|
176
|
-
$tip.off($.support.transition.end).
|
169
|
+
$tip.off($.support.transition.end).detach()
|
177
170
|
}, 500)
|
178
171
|
|
179
172
|
$tip.one($.support.transition.end, function () {
|
180
173
|
clearTimeout(timeout)
|
181
|
-
$tip.
|
174
|
+
$tip.detach()
|
182
175
|
})
|
183
176
|
}
|
184
177
|
|
185
178
|
$.support.transition && this.$tip.hasClass('fade') ?
|
186
179
|
removeWithAnimation() :
|
187
|
-
$tip.
|
180
|
+
$tip.detach()
|
181
|
+
|
182
|
+
return this
|
188
183
|
}
|
189
184
|
|
190
185
|
, fixTitle: function () {
|
@@ -240,8 +235,13 @@
|
|
240
235
|
this.enabled = !this.enabled
|
241
236
|
}
|
242
237
|
|
243
|
-
, toggle: function () {
|
244
|
-
|
238
|
+
, toggle: function (e) {
|
239
|
+
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
240
|
+
self[self.tip().hasClass('in') ? 'hide' : 'show']()
|
241
|
+
}
|
242
|
+
|
243
|
+
, destroy: function () {
|
244
|
+
this.hide().$element.off('.' + this.type).removeData(this.type)
|
245
245
|
}
|
246
246
|
|
247
247
|
}
|
@@ -250,6 +250,8 @@
|
|
250
250
|
/* TOOLTIP PLUGIN DEFINITION
|
251
251
|
* ========================= */
|
252
252
|
|
253
|
+
var old = $.fn.tooltip
|
254
|
+
|
253
255
|
$.fn.tooltip = function ( option ) {
|
254
256
|
return this.each(function () {
|
255
257
|
var $this = $(this)
|
@@ -270,6 +272,16 @@
|
|
270
272
|
, trigger: 'hover'
|
271
273
|
, title: ''
|
272
274
|
, delay: 0
|
275
|
+
, html: false
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
/* TOOLTIP NO CONFLICT
|
280
|
+
* =================== */
|
281
|
+
|
282
|
+
$.fn.tooltip.noConflict = function () {
|
283
|
+
$.fn.tooltip = old
|
284
|
+
return this
|
273
285
|
}
|
274
286
|
|
275
287
|
}(window.jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ===================================================
|
2
|
-
* bootstrap-transition.js v2.
|
2
|
+
* bootstrap-transition.js v2.2.2
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4
4
|
* ===================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -20,13 +20,13 @@
|
|
20
20
|
|
21
21
|
!function ($) {
|
22
22
|
|
23
|
-
|
23
|
+
"use strict"; // jshint ;_;
|
24
24
|
|
25
|
-
"use strict"; // jshint ;_;
|
26
25
|
|
26
|
+
/* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
|
27
|
+
* ======================================================= */
|
27
28
|
|
28
|
-
|
29
|
-
* ======================================================= */
|
29
|
+
$(function () {
|
30
30
|
|
31
31
|
$.support.transition = (function () {
|
32
32
|
|
@@ -36,8 +36,7 @@
|
|
36
36
|
, transEndEventNames = {
|
37
37
|
'WebkitTransition' : 'webkitTransitionEnd'
|
38
38
|
, 'MozTransition' : 'transitionend'
|
39
|
-
, 'OTransition' : 'oTransitionEnd'
|
40
|
-
, 'msTransition' : 'MSTransitionEnd'
|
39
|
+
, 'OTransition' : 'oTransitionEnd otransitionend'
|
41
40
|
, 'transition' : 'transitionend'
|
42
41
|
}
|
43
42
|
, name
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =============================================================
|
2
|
-
* bootstrap-typeahead.js v2.
|
2
|
+
* bootstrap-typeahead.js v2.2.2
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
4
4
|
* =============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -33,8 +33,8 @@
|
|
33
33
|
this.sorter = this.options.sorter || this.sorter
|
34
34
|
this.highlighter = this.options.highlighter || this.highlighter
|
35
35
|
this.updater = this.options.updater || this.updater
|
36
|
-
this.$menu = $(this.options.menu).appendTo('body')
|
37
36
|
this.source = this.options.source
|
37
|
+
this.$menu = $(this.options.menu)
|
38
38
|
this.shown = false
|
39
39
|
this.listen()
|
40
40
|
}
|
@@ -56,16 +56,18 @@
|
|
56
56
|
}
|
57
57
|
|
58
58
|
, show: function () {
|
59
|
-
var pos = $.extend({}, this.$element.
|
59
|
+
var pos = $.extend({}, this.$element.position(), {
|
60
60
|
height: this.$element[0].offsetHeight
|
61
61
|
})
|
62
62
|
|
63
|
-
this.$menu
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
this.$menu
|
64
|
+
.insertAfter(this.$element)
|
65
|
+
.css({
|
66
|
+
top: pos.top + pos.height
|
67
|
+
, left: pos.left
|
68
|
+
})
|
69
|
+
.show()
|
67
70
|
|
68
|
-
this.$menu.show()
|
69
71
|
this.shown = true
|
70
72
|
return this
|
71
73
|
}
|
@@ -77,17 +79,23 @@
|
|
77
79
|
}
|
78
80
|
|
79
81
|
, lookup: function (event) {
|
80
|
-
var
|
81
|
-
, items
|
82
|
-
, q
|
82
|
+
var items
|
83
83
|
|
84
84
|
this.query = this.$element.val()
|
85
85
|
|
86
|
-
if (!this.query) {
|
86
|
+
if (!this.query || this.query.length < this.options.minLength) {
|
87
87
|
return this.shown ? this.hide() : this
|
88
88
|
}
|
89
89
|
|
90
|
-
items = $.
|
90
|
+
items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source
|
91
|
+
|
92
|
+
return items ? this.process(items) : this
|
93
|
+
}
|
94
|
+
|
95
|
+
, process: function (items) {
|
96
|
+
var that = this
|
97
|
+
|
98
|
+
items = $.grep(items, function (item) {
|
91
99
|
return that.matcher(item)
|
92
100
|
})
|
93
101
|
|
@@ -168,8 +176,8 @@
|
|
168
176
|
.on('keypress', $.proxy(this.keypress, this))
|
169
177
|
.on('keyup', $.proxy(this.keyup, this))
|
170
178
|
|
171
|
-
if (
|
172
|
-
this.$element.on('keydown', $.proxy(this.
|
179
|
+
if (this.eventSupported('keydown')) {
|
180
|
+
this.$element.on('keydown', $.proxy(this.keydown, this))
|
173
181
|
}
|
174
182
|
|
175
183
|
this.$menu
|
@@ -177,32 +185,16 @@
|
|
177
185
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
178
186
|
}
|
179
187
|
|
180
|
-
,
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
case 9: // tab
|
187
|
-
case 13: // enter
|
188
|
-
if (!this.shown) return
|
189
|
-
this.select()
|
190
|
-
break
|
191
|
-
|
192
|
-
case 27: // escape
|
193
|
-
if (!this.shown) return
|
194
|
-
this.hide()
|
195
|
-
break
|
196
|
-
|
197
|
-
default:
|
198
|
-
this.lookup()
|
188
|
+
, eventSupported: function(eventName) {
|
189
|
+
var isSupported = eventName in this.$element
|
190
|
+
if (!isSupported) {
|
191
|
+
this.$element.setAttribute(eventName, 'return;')
|
192
|
+
isSupported = typeof this.$element[eventName] === 'function'
|
199
193
|
}
|
194
|
+
return isSupported
|
195
|
+
}
|
200
196
|
|
201
|
-
|
202
|
-
e.preventDefault()
|
203
|
-
}
|
204
|
-
|
205
|
-
, keypress: function (e) {
|
197
|
+
, move: function (e) {
|
206
198
|
if (!this.shown) return
|
207
199
|
|
208
200
|
switch(e.keyCode) {
|
@@ -213,13 +205,11 @@
|
|
213
205
|
break
|
214
206
|
|
215
207
|
case 38: // up arrow
|
216
|
-
if (e.type != 'keydown') break
|
217
208
|
e.preventDefault()
|
218
209
|
this.prev()
|
219
210
|
break
|
220
211
|
|
221
212
|
case 40: // down arrow
|
222
|
-
if (e.type != 'keydown') break
|
223
213
|
e.preventDefault()
|
224
214
|
this.next()
|
225
215
|
break
|
@@ -228,6 +218,44 @@
|
|
228
218
|
e.stopPropagation()
|
229
219
|
}
|
230
220
|
|
221
|
+
, keydown: function (e) {
|
222
|
+
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
|
223
|
+
this.move(e)
|
224
|
+
}
|
225
|
+
|
226
|
+
, keypress: function (e) {
|
227
|
+
if (this.suppressKeyPressRepeat) return
|
228
|
+
this.move(e)
|
229
|
+
}
|
230
|
+
|
231
|
+
, keyup: function (e) {
|
232
|
+
switch(e.keyCode) {
|
233
|
+
case 40: // down arrow
|
234
|
+
case 38: // up arrow
|
235
|
+
case 16: // shift
|
236
|
+
case 17: // ctrl
|
237
|
+
case 18: // alt
|
238
|
+
break
|
239
|
+
|
240
|
+
case 9: // tab
|
241
|
+
case 13: // enter
|
242
|
+
if (!this.shown) return
|
243
|
+
this.select()
|
244
|
+
break
|
245
|
+
|
246
|
+
case 27: // escape
|
247
|
+
if (!this.shown) return
|
248
|
+
this.hide()
|
249
|
+
break
|
250
|
+
|
251
|
+
default:
|
252
|
+
this.lookup()
|
253
|
+
}
|
254
|
+
|
255
|
+
e.stopPropagation()
|
256
|
+
e.preventDefault()
|
257
|
+
}
|
258
|
+
|
231
259
|
, blur: function (e) {
|
232
260
|
var that = this
|
233
261
|
setTimeout(function () { that.hide() }, 150)
|
@@ -250,6 +278,8 @@
|
|
250
278
|
/* TYPEAHEAD PLUGIN DEFINITION
|
251
279
|
* =========================== */
|
252
280
|
|
281
|
+
var old = $.fn.typeahead
|
282
|
+
|
253
283
|
$.fn.typeahead = function (option) {
|
254
284
|
return this.each(function () {
|
255
285
|
var $this = $(this)
|
@@ -265,21 +295,29 @@
|
|
265
295
|
, items: 8
|
266
296
|
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
267
297
|
, item: '<li><a href="#"></a></li>'
|
298
|
+
, minLength: 1
|
268
299
|
}
|
269
300
|
|
270
301
|
$.fn.typeahead.Constructor = Typeahead
|
271
302
|
|
272
303
|
|
304
|
+
/* TYPEAHEAD NO CONFLICT
|
305
|
+
* =================== */
|
306
|
+
|
307
|
+
$.fn.typeahead.noConflict = function () {
|
308
|
+
$.fn.typeahead = old
|
309
|
+
return this
|
310
|
+
}
|
311
|
+
|
312
|
+
|
273
313
|
/* TYPEAHEAD DATA-API
|
274
314
|
* ================== */
|
275
315
|
|
276
|
-
$(function () {
|
277
|
-
$
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
$this.typeahead($this.data())
|
282
|
-
})
|
316
|
+
$(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
317
|
+
var $this = $(this)
|
318
|
+
if ($this.data('typeahead')) return
|
319
|
+
e.preventDefault()
|
320
|
+
$this.typeahead($this.data())
|
283
321
|
})
|
284
322
|
|
285
|
-
}(window.jQuery);
|
323
|
+
}(window.jQuery);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass_twitter_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: compass
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: Compass/SCSS version of the twitter bootstrap
|
26
31
|
email:
|
27
32
|
- vrwaller@gmail.com
|
@@ -59,6 +64,7 @@ files:
|
|
59
64
|
- stylesheets/compass_twitter_bootstrap/_hero-unit.scss
|
60
65
|
- stylesheets/compass_twitter_bootstrap/_labels-badges.scss
|
61
66
|
- stylesheets/compass_twitter_bootstrap/_layouts.scss
|
67
|
+
- stylesheets/compass_twitter_bootstrap/_media.scss
|
62
68
|
- stylesheets/compass_twitter_bootstrap/_mixins.scss
|
63
69
|
- stylesheets/compass_twitter_bootstrap/_modals.scss
|
64
70
|
- stylesheets/compass_twitter_bootstrap/_navbar.scss
|
@@ -73,6 +79,7 @@ files:
|
|
73
79
|
- stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss
|
74
80
|
- stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss
|
75
81
|
- stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss
|
82
|
+
- stylesheets/compass_twitter_bootstrap/_responsive.scss
|
76
83
|
- stylesheets/compass_twitter_bootstrap/_scaffolding.scss
|
77
84
|
- stylesheets/compass_twitter_bootstrap/_sprites.scss
|
78
85
|
- stylesheets/compass_twitter_bootstrap/_tables.scss
|
@@ -101,6 +108,7 @@ files:
|
|
101
108
|
- stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass
|
102
109
|
- stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass
|
103
110
|
- stylesheets_sass/compass_twitter_bootstrap/_layouts.sass
|
111
|
+
- stylesheets_sass/compass_twitter_bootstrap/_media.sass
|
104
112
|
- stylesheets_sass/compass_twitter_bootstrap/_mixins.sass
|
105
113
|
- stylesheets_sass/compass_twitter_bootstrap/_modals.sass
|
106
114
|
- stylesheets_sass/compass_twitter_bootstrap/_navbar.sass
|
@@ -115,6 +123,7 @@ files:
|
|
115
123
|
- stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass
|
116
124
|
- stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass
|
117
125
|
- stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass
|
126
|
+
- stylesheets_sass/compass_twitter_bootstrap/_responsive.sass
|
118
127
|
- stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass
|
119
128
|
- stylesheets_sass/compass_twitter_bootstrap/_sprites.sass
|
120
129
|
- stylesheets_sass/compass_twitter_bootstrap/_tables.sass
|
@@ -131,6 +140,7 @@ files:
|
|
131
140
|
- vendor/assets/fonts/fontawesome-webfont.woff
|
132
141
|
- vendor/assets/images/glyphicons-halflings-white.png
|
133
142
|
- vendor/assets/images/glyphicons-halflings.png
|
143
|
+
- vendor/assets/javascripts/bootstrap-affix.js
|
134
144
|
- vendor/assets/javascripts/bootstrap-alert.js
|
135
145
|
- vendor/assets/javascripts/bootstrap-all.js
|
136
146
|
- vendor/assets/javascripts/bootstrap-button.js
|
@@ -158,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
168
|
version: '0'
|
159
169
|
segments:
|
160
170
|
- 0
|
161
|
-
hash: -
|
171
|
+
hash: -2950877450082221068
|
162
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
173
|
none: false
|
164
174
|
requirements:
|
@@ -167,10 +177,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
177
|
version: '0'
|
168
178
|
segments:
|
169
179
|
- 0
|
170
|
-
hash: -
|
180
|
+
hash: -2950877450082221068
|
171
181
|
requirements: []
|
172
182
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.
|
183
|
+
rubygems_version: 1.8.24
|
174
184
|
signing_key:
|
175
185
|
specification_version: 3
|
176
186
|
summary: Compass Twitter Bootstrap
|