bootstrap-sass-rails 2.0.1.2 → 2.0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/lib/bootstrap/sass/rails/version.rb +1 -1
  2. data/test/cases/usage_css_spec.rb +1 -0
  3. data/test/dummy/log/test.log +76 -0
  4. data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -0
  5. data/test/dummy/tmp/cache/assets/D04/3C0/sprockets%2F29d763bd40cc25622b1f04b876a5c3e3 +0 -0
  6. data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
  7. data/test/dummy/tmp/cache/assets/D7C/3E0/sprockets%2F53c81ab87ec56a748428a59da9a5d5de +0 -0
  8. data/test/dummy/tmp/cache/assets/E3A/D90/sprockets%2Fce0dbefdb4416ebc42589ecdbf7d7857 +0 -0
  9. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_accordion.scssc +0 -0
  10. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_alerts.scssc +0 -0
  11. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_badges.scssc +0 -0
  12. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_breadcrumbs.scssc +0 -0
  13. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_button-groups.scssc +0 -0
  14. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_buttons.scssc +0 -0
  15. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_carousel.scssc +0 -0
  16. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_close.scssc +0 -0
  17. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_code.scssc +0 -0
  18. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_component-animations.scssc +0 -0
  19. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_dropdowns.scssc +0 -0
  20. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
  21. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_grid.scssc +0 -0
  22. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_hero-unit.scssc +0 -0
  23. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_labels.scssc +0 -0
  24. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_layouts.scssc +0 -0
  25. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
  26. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_modals.scssc +0 -0
  27. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navbar.scssc +0 -0
  28. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navs.scssc +0 -0
  29. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_pager.scssc +0 -0
  30. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_pagination.scssc +0 -0
  31. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_popovers.scssc +0 -0
  32. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_progress-bars.scssc +0 -0
  33. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
  34. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive.scssc +0 -0
  35. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_scaffolding.scssc +0 -0
  36. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_sprites.scssc +0 -0
  37. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
  38. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_thumbnails.scssc +0 -0
  39. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tooltip.scssc +0 -0
  40. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
  41. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_utilities.scssc +0 -0
  42. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
  43. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_wells.scssc +0 -0
  44. data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
  45. data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/application.css.scssc +0 -0
  46. data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/individual.css.scssc +0 -0
  47. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +1 -1
  48. data/vendor/assets/javascripts/twitter/bootstrap/button.js +4 -2
  49. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +7 -3
  50. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +4 -2
  51. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +1 -1
  52. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +1 -1
  53. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +1 -1
  54. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -1
  55. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +1 -1
  56. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
  57. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  58. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +7 -7
  59. data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +2 -1
  60. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +2 -13
  61. data/vendor/assets/stylesheets/twitter/bootstrap/_badges.scss +36 -0
  62. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +2 -0
  63. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +31 -8
  64. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +17 -13
  65. data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +3 -3
  66. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +3 -1
  67. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +45 -28
  68. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +76 -43
  69. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +2 -2
  70. data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +3 -1
  71. data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +8 -2
  72. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +162 -158
  73. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +12 -5
  74. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +76 -34
  75. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +19 -9
  76. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +6 -0
  77. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -0
  78. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +16 -1
  79. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +1 -1
  80. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +72 -28
  81. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +3 -3
  82. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +1 -1
  83. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +26 -17
  84. data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +21 -5
  85. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +98 -6
  86. data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +10 -0
  87. metadata +14 -11
@@ -1,7 +1,7 @@
1
1
  module Bootstrap
2
2
  module Sass
3
3
  module Rails
4
- VERSION = '2.0.1.2'
4
+ VERSION = '2.0.2.0'
5
5
  end
6
6
  end
7
7
  end
@@ -37,6 +37,7 @@ class UsageCssSpec < Bootstrap::Sass::Rails::Spec
37
37
  app_css.must_include '_accordion.scss'
38
38
  app_css.must_include '_carousel.scss'
39
39
  app_css.must_include '_hero-unit.scss'
40
+ app_css.must_include '_badges.scss'
40
41
  end
41
42
 
42
43
  it 'must include basic css afterward' do
@@ -1167,3 +1167,79 @@ Compiled twitter/bootstrap.css (505ms) (pid 63126)
1167
1167
  Compiled sprockets.css (512ms) (pid 63126)
1168
1168
  Compiled twitter/bootstrap.css (501ms) (pid 63126)
1169
1169
  Compiled sprockets.css (509ms) (pid 63126)
1170
+ Compiled application.css (1139ms) (pid 9818)
1171
+ Compiled application.css (523ms) (pid 9818)
1172
+ Compiled application.css (484ms) (pid 9818)
1173
+ Compiled twitter/bootstrap/transition.js (0ms) (pid 9818)
1174
+ Compiled twitter/bootstrap/alert.js (0ms) (pid 9818)
1175
+ Compiled twitter/bootstrap/button.js (0ms) (pid 9818)
1176
+ Compiled twitter/bootstrap/carousel.js (0ms) (pid 9818)
1177
+ Compiled twitter/bootstrap/collapse.js (0ms) (pid 9818)
1178
+ Compiled twitter/bootstrap/dropdown.js (0ms) (pid 9818)
1179
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9818)
1180
+ Compiled twitter/bootstrap/tooltip.js (0ms) (pid 9818)
1181
+ Compiled twitter/bootstrap/popover.js (0ms) (pid 9818)
1182
+ Compiled twitter/bootstrap/scrollspy.js (0ms) (pid 9818)
1183
+ Compiled twitter/bootstrap/tab.js (0ms) (pid 9818)
1184
+ Compiled twitter/bootstrap/typeahead.js (0ms) (pid 9818)
1185
+ Compiled twitter/bootstrap.js (94ms) (pid 9818)
1186
+ Compiled application.js (118ms) (pid 9818)
1187
+ Compiled twitter/bootstrap/transition.js (0ms) (pid 9818)
1188
+ Compiled twitter/bootstrap/alert.js (0ms) (pid 9818)
1189
+ Compiled twitter/bootstrap/button.js (0ms) (pid 9818)
1190
+ Compiled twitter/bootstrap/carousel.js (0ms) (pid 9818)
1191
+ Compiled twitter/bootstrap/collapse.js (0ms) (pid 9818)
1192
+ Compiled twitter/bootstrap/dropdown.js (0ms) (pid 9818)
1193
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9818)
1194
+ Compiled twitter/bootstrap/tooltip.js (0ms) (pid 9818)
1195
+ Compiled twitter/bootstrap/popover.js (0ms) (pid 9818)
1196
+ Compiled twitter/bootstrap/scrollspy.js (0ms) (pid 9818)
1197
+ Compiled twitter/bootstrap/tab.js (0ms) (pid 9818)
1198
+ Compiled twitter/bootstrap/typeahead.js (0ms) (pid 9818)
1199
+ Compiled twitter/bootstrap.js (74ms) (pid 9818)
1200
+ Compiled application.js (80ms) (pid 9818)
1201
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9818)
1202
+ Compiled individual.js (4ms) (pid 9818)
1203
+ Compiled individual.css (166ms) (pid 9818)
1204
+ Compiled twitter/bootstrap.css (565ms) (pid 9818)
1205
+ Compiled sprockets.css (573ms) (pid 9818)
1206
+ Compiled twitter/bootstrap.css (542ms) (pid 9818)
1207
+ Compiled sprockets.css (549ms) (pid 9818)
1208
+ Compiled application.css (511ms) (pid 9855)
1209
+ Compiled application.css (491ms) (pid 9855)
1210
+ Compiled application.css (481ms) (pid 9855)
1211
+ Compiled twitter/bootstrap/transition.js (0ms) (pid 9855)
1212
+ Compiled twitter/bootstrap/alert.js (0ms) (pid 9855)
1213
+ Compiled twitter/bootstrap/button.js (0ms) (pid 9855)
1214
+ Compiled twitter/bootstrap/carousel.js (0ms) (pid 9855)
1215
+ Compiled twitter/bootstrap/collapse.js (0ms) (pid 9855)
1216
+ Compiled twitter/bootstrap/dropdown.js (0ms) (pid 9855)
1217
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9855)
1218
+ Compiled twitter/bootstrap/tooltip.js (0ms) (pid 9855)
1219
+ Compiled twitter/bootstrap/popover.js (0ms) (pid 9855)
1220
+ Compiled twitter/bootstrap/scrollspy.js (0ms) (pid 9855)
1221
+ Compiled twitter/bootstrap/tab.js (0ms) (pid 9855)
1222
+ Compiled twitter/bootstrap/typeahead.js (0ms) (pid 9855)
1223
+ Compiled twitter/bootstrap.js (99ms) (pid 9855)
1224
+ Compiled application.js (105ms) (pid 9855)
1225
+ Compiled twitter/bootstrap/transition.js (0ms) (pid 9855)
1226
+ Compiled twitter/bootstrap/alert.js (0ms) (pid 9855)
1227
+ Compiled twitter/bootstrap/button.js (0ms) (pid 9855)
1228
+ Compiled twitter/bootstrap/carousel.js (0ms) (pid 9855)
1229
+ Compiled twitter/bootstrap/collapse.js (0ms) (pid 9855)
1230
+ Compiled twitter/bootstrap/dropdown.js (0ms) (pid 9855)
1231
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9855)
1232
+ Compiled twitter/bootstrap/tooltip.js (0ms) (pid 9855)
1233
+ Compiled twitter/bootstrap/popover.js (0ms) (pid 9855)
1234
+ Compiled twitter/bootstrap/scrollspy.js (0ms) (pid 9855)
1235
+ Compiled twitter/bootstrap/tab.js (0ms) (pid 9855)
1236
+ Compiled twitter/bootstrap/typeahead.js (0ms) (pid 9855)
1237
+ Compiled twitter/bootstrap.js (77ms) (pid 9855)
1238
+ Compiled application.js (83ms) (pid 9855)
1239
+ Compiled twitter/bootstrap/modal.js (0ms) (pid 9855)
1240
+ Compiled individual.js (4ms) (pid 9855)
1241
+ Compiled individual.css (120ms) (pid 9855)
1242
+ Compiled twitter/bootstrap.css (559ms) (pid 9855)
1243
+ Compiled sprockets.css (567ms) (pid 9855)
1244
+ Compiled twitter/bootstrap.css (574ms) (pid 9855)
1245
+ Compiled sprockets.css (581ms) (pid 9855)
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-alert.js v2.0.1
2
+ * bootstrap-alert.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#alerts
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-button.js v2.0.1
2
+ * bootstrap-button.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#buttons
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -91,7 +91,9 @@
91
91
 
92
92
  $(function () {
93
93
  $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
94
- $(e.currentTarget).button('toggle')
94
+ var $btn = $(e.target)
95
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
96
+ $btn.button('toggle')
95
97
  })
96
98
  })
97
99
 
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-carousel.js v2.0.1
2
+ * bootstrap-carousel.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#carousel
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -29,6 +29,9 @@
29
29
  this.$element = $(element)
30
30
  this.options = $.extend({}, $.fn.carousel.defaults, options)
31
31
  this.options.slide && this.slide(this.options.slide)
32
+ this.options.pause == 'hover' && this.$element
33
+ .on('mouseenter', $.proxy(this.pause, this))
34
+ .on('mouseleave', $.proxy(this.cycle, this))
32
35
  }
33
36
 
34
37
  Carousel.prototype = {
@@ -83,14 +86,14 @@
83
86
  , fallback = type == 'next' ? 'first' : 'last'
84
87
  , that = this
85
88
 
86
- if (!$next.length) return
87
-
88
89
  this.sliding = true
89
90
 
90
91
  isCycling && this.pause()
91
92
 
92
93
  $next = $next.length ? $next : this.$element.find('.item')[fallback]()
93
94
 
95
+ if ($next.hasClass('active')) return
96
+
94
97
  if (!$.support.transition && this.$element.hasClass('slide')) {
95
98
  this.$element.trigger('slide')
96
99
  $active.removeClass('active')
@@ -136,6 +139,7 @@
136
139
 
137
140
  $.fn.carousel.defaults = {
138
141
  interval: 5000
142
+ , pause: 'hover'
139
143
  }
140
144
 
141
145
  $.fn.carousel.Constructor = Carousel
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-collapse.js v2.0.1
2
+ * bootstrap-collapse.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#collapse
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -74,7 +74,9 @@
74
74
  [dimension](size || 'auto')
75
75
  [0].offsetWidth
76
76
 
77
- this.$element.addClass('collapse')
77
+ this.$element[size ? 'addClass' : 'removeClass']('collapse')
78
+
79
+ return this
78
80
  }
79
81
 
80
82
  , transition: function ( method, startEvent, completeEvent ) {
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-dropdown.js v2.0.1
2
+ * bootstrap-dropdown.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =========================================================
2
- * bootstrap-modal.js v2.0.1
2
+ * bootstrap-modal.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#modals
4
4
  * =========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ===========================================================
2
- * bootstrap-popover.js v2.0.1
2
+ * bootstrap-popover.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#popovers
4
4
  * ===========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-scrollspy.js v2.0.1
2
+ * bootstrap-scrollspy.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ========================================================
2
- * bootstrap-tab.js v2.0.1
2
+ * bootstrap-tab.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#tabs
4
4
  * ========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ===========================================================
2
- * bootstrap-tooltip.js v2.0.1
2
+ * bootstrap-tooltip.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ===========================================================
@@ -206,7 +206,7 @@
206
206
  title = $e.attr('data-original-title')
207
207
  || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
208
208
 
209
- title = title.toString().replace(/(^\s*|\s*$)/, "")
209
+ title = (title || '').toString().replace(/(^\s*|\s*$)/, "")
210
210
 
211
211
  return title
212
212
  }
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.0.1
2
+ * bootstrap-transition.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#transitions
4
4
  * ===================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-typeahead.js v2.0.1
2
+ * bootstrap-typeahead.js v2.0.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -40,6 +40,7 @@
40
40
  , select: function () {
41
41
  var val = this.$menu.find('.active').attr('data-value')
42
42
  this.$element.val(val)
43
+ this.$element.change();
43
44
  return this.hide()
44
45
  }
45
46
 
@@ -165,9 +166,6 @@
165
166
  }
166
167
 
167
168
  , keyup: function (e) {
168
- e.stopPropagation()
169
- e.preventDefault()
170
-
171
169
  switch(e.keyCode) {
172
170
  case 40: // down arrow
173
171
  case 38: // up arrow
@@ -180,6 +178,7 @@
180
178
  break
181
179
 
182
180
  case 27: // escape
181
+ if (!this.shown) return
183
182
  this.hide()
184
183
  break
185
184
 
@@ -187,10 +186,11 @@
187
186
  this.lookup()
188
187
  }
189
188
 
189
+ e.stopPropagation()
190
+ e.preventDefault()
190
191
  }
191
192
 
192
193
  , keypress: function (e) {
193
- e.stopPropagation()
194
194
  if (!this.shown) return
195
195
 
196
196
  switch(e.keyCode) {
@@ -210,12 +210,12 @@
210
210
  this.next()
211
211
  break
212
212
  }
213
+
214
+ e.stopPropagation()
213
215
  }
214
216
 
215
217
  , blur: function (e) {
216
218
  var that = this
217
- e.stopPropagation()
218
- e.preventDefault()
219
219
  setTimeout(function () { that.hide() }, 150)
220
220
  }
221
221
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.0.1
2
+ * Bootstrap v2.0.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -53,6 +53,7 @@
53
53
  // Components: Misc
54
54
  @import "bootstrap/thumbnails";
55
55
  @import "bootstrap/labels";
56
+ @import "bootstrap/badges";
56
57
  @import "bootstrap/progress-bars";
57
58
  @import "bootstrap/accordion";
58
59
  @import "bootstrap/carousel";
@@ -9,10 +9,10 @@
9
9
  background-color: $warningBackground;
10
10
  border: 1px solid $warningBorder;
11
11
  @include border-radius(4px);
12
+ color: $warningText;
12
13
  }
13
- .alert,
14
14
  .alert-heading {
15
- color: $warningText;
15
+ color: inherit;
16
16
  }
17
17
 
18
18
  // Adjust close link position
@@ -29,28 +29,17 @@
29
29
  .alert-success {
30
30
  background-color: $successBackground;
31
31
  border-color: $successBorder;
32
- }
33
- .alert-success,
34
- .alert-success .alert-heading {
35
32
  color: $successText;
36
33
  }
37
34
  .alert-danger,
38
35
  .alert-error {
39
36
  background-color: $errorBackground;
40
37
  border-color: $errorBorder;
41
- }
42
- .alert-danger,
43
- .alert-error,
44
- .alert-danger .alert-heading,
45
- .alert-error .alert-heading {
46
38
  color: $errorText;
47
39
  }
48
40
  .alert-info {
49
41
  background-color: $infoBackground;
50
42
  border-color: $infoBorder;
51
- }
52
- .alert-info,
53
- .alert-info .alert-heading {
54
43
  color: $infoText;
55
44
  }
56
45