less-rails-bootstrap 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,11 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 2.3.3 - 03/06/2013
5
+
6
+ * Update boostrap to 2.3.2.
7
+
8
+
4
9
  2.3.2 - 03/06/2013
5
10
 
6
11
  * Update to less-rails 2.3.1. Really uses less v1.3.3
data/README.md CHANGED
@@ -1,44 +1,68 @@
1
1
  # Less Rails Bootstrap
2
2
 
3
- Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more. To get started -- checkout http://twitter.github.com/bootstrap!
3
+ Bootstrap is Twitter's toolkit for kickstarting your site or app's CSS. It includes base styles for typography, forms, buttons, tables, grid layout, navigation, alerts, and more. To get started -- check out the [Bootstrap docs](http://twitter.github.com/bootstrap).
4
4
 
5
- The less-rails-bootstrap project hooks into less-rails (https://github.com/metaskills/less-rails) to provide both compiled and LESS CSS source files from the Twitter Bootstrap project within the Rails 3.1 asset pipeline. Benefits:
5
+ The less-rails-bootstrap project hooks into [less-rails](http://github.com/metaskills/less-rails) and [less.rb](http://github.com/cowboyd/less.rb), making Bootstrap's source LESS files, compiled CSS, and JavaScript files available in the Rails 3.1+ asset pipeline.
6
+
7
+ The benefits:
6
8
 
7
9
  * Assets are namespaced in twitter/bootstrap to avoid asset conflicts.
8
10
  * Top level requires to get all stylesheets or javascripts.
9
11
  * Ability to import or require individually namespaced stylesheets or javascripts.
10
12
 
11
13
 
12
- ## Versioning
13
-
14
- This gem will directly track the semantic versioning releases of the Twitter Bootstrap project. Our major and minor versions will always match to theirs. Tho we may have tiny patch level releases specific to this gem.
15
-
14
+ ## Installation
16
15
 
17
- ## Installing
18
-
19
- This library requires the less-rails gem greater than 2.0.0 to work. Our gem spec will pull this and less in automatically. So all you need to do is bundle up less-rails-bootstrap in your Gemfle.
16
+ LESS requires a JavaScript runtime to work. Which one you use depends on your Ruby implementation. Two are shown for Ruby (MRI) and JRuby. Add only the relevant one to your Gemfile. If you want to use Bootstrap's JavaScript plugins, also add the `jquery-rails` gem. Finally, add `less-rails-bootstrap` and run `bundle install`.
20
17
 
21
18
  ```ruby
19
+ # Gemfile
20
+
21
+ gem 'therubyracer' # If using Ruby
22
+ gem 'therubyrhino' # If using JRuby
23
+ gem 'jquery-rails' # If using Bootstrap's JS plugins.
22
24
  gem 'less-rails-bootstrap'
23
25
  ```
24
26
 
27
+ ## Basic CSS Use
28
+
29
+ Get the full Bootstrap stylesheet with a single line in your `application.css`.
25
30
 
26
- ## Usage
31
+ /*
32
+ *= require twitter/bootstrap
33
+ */
34
+
35
+ If you wish to make use of Bootstraps' responsive features, like the collapsing of your navigation bar on window resize, make sure to include bootstrap-responsive as well.
27
36
 
28
- Please see the [less-rails-bootstrap-test](http://github.com/metaskills/less-rails-bootstrap-test) project for working examples of how to use less.rb, less-rails, and less-rails-bootstrap in any way possible. The "CSS Tests Suites" section of the README and code is what you want to focus on.
37
+ /*
38
+ *= require twitter/bootstrap-responsive
39
+ */
29
40
 
41
+ Please see the [less-rails-bootstrap-test](http://github.com/metaskills/less-rails-bootstrap-test) repo for examples that customize the CSS output by using LESS. The "CSS Tests Suites" section of the README and code is what you want to focus on. Also, check out the [LESS syntax](http://lesscss.org/).
30
42
 
31
- ### JavaScript Usage
43
+ ## Basic JavaScript Use
32
44
 
33
- Using the JavaScript files is just as easy. You can include all them with a single directive from your `application.js` file. Optionally, you can require only the files you need like `require twitter/bootstrap/modal`.
45
+ In `application.js`, require jQuery first. Now you can add all the Bootstrap plugins with a single line.
34
46
 
35
- ```javascript
47
+ ````
48
+ //= require jquery
49
+ //= require jquery_ujs
36
50
  //= require twitter/bootstrap
51
+ ````
37
52
 
38
- $(document).ready(function(){
39
-
40
- });
41
- ```
53
+ Or include plugins individually.
54
+
55
+ ````
56
+ //= require jquery
57
+ //= require jquery_ujs
58
+ //= require twitter/bootstrap/modal
59
+ //= require twitter/bootstrap/alert
60
+ ````
61
+
62
+
63
+ ## Versioning
64
+
65
+ This gem will directly track the semantic versioning of the Twitter Bootstrap project. Our major and minor versions will always match to theirs, though we may have tiny patch level releases specific to this gem.
42
66
 
43
67
 
44
68
  ## Testing
@@ -1,7 +1,7 @@
1
1
  module Less
2
2
  module Rails
3
3
  module Bootstrap
4
- VERSION = "2.3.2"
4
+ VERSION = "2.3.3"
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-affix.js v2.3.1
2
+ * bootstrap-affix.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#affix
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-alert.js v2.3.1
2
+ * bootstrap-alert.js v2.3.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.3.1
2
+ * bootstrap-button.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#buttons
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-carousel.js v2.3.1
2
+ * bootstrap-carousel.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#carousel
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-collapse.js v2.3.1
2
+ * bootstrap-collapse.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#collapse
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-dropdown.js v2.3.1
2
+ * bootstrap-dropdown.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -52,6 +52,10 @@
52
52
  clearMenus()
53
53
 
54
54
  if (!isActive) {
55
+ if ('ontouchstart' in document.documentElement) {
56
+ // if mobile we we use a backdrop because click events don't delegate
57
+ $('<div class="dropdown-backdrop"/>').insertBefore($(this)).on('click', clearMenus)
58
+ }
55
59
  $parent.toggleClass('open')
56
60
  }
57
61
 
@@ -104,6 +108,7 @@
104
108
  }
105
109
 
106
110
  function clearMenus() {
111
+ $('.dropdown-backdrop').remove()
107
112
  $(toggle).each(function () {
108
113
  getParent($(this)).removeClass('open')
109
114
  })
@@ -158,7 +163,6 @@
158
163
  $(document)
159
164
  .on('click.dropdown.data-api', clearMenus)
160
165
  .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
161
- .on('click.dropdown-menu', function (e) { e.stopPropagation() })
162
166
  .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
163
167
  .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
164
168
 
@@ -1,5 +1,5 @@
1
1
  /* =========================================================
2
- * bootstrap-modal.js v2.3.1
2
+ * bootstrap-modal.js v2.3.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.3.1
2
+ * bootstrap-popover.js v2.3.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.3.1
2
+ * bootstrap-scrollspy.js v2.3.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.3.1
2
+ * bootstrap-tab.js v2.3.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.3.1
2
+ * bootstrap-tooltip.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ===========================================================
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.3.1
2
+ * bootstrap-transition.js v2.3.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.3.1
2
+ * bootstrap-typeahead.js v2.3.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -135,6 +135,17 @@
135
135
  }
136
136
  }
137
137
 
138
+ // Backdrop to catch body clicks on mobile, etc.
139
+ // ---------------------------
140
+ .dropdown-backdrop {
141
+ position: fixed;
142
+ left: 0;
143
+ right: 0;
144
+ bottom: 0;
145
+ top: 0;
146
+ z-index: @zindexDropdown - 10;
147
+ }
148
+
138
149
  // Right aligned dropdowns
139
150
  // ---------------------------
140
151
  .pull-right > .dropdown-menu {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: less-rails
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: 2344748879226599613
182
+ hash: -785556492811934017
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  segments:
190
190
  - 0
191
- hash: 2344748879226599613
191
+ hash: -785556492811934017
192
192
  requirements: []
193
193
  rubyforge_project:
194
194
  rubygems_version: 1.8.25