Skip to content

Commit 1b9a3b2

Browse files
committed
update bootstrap and bootstrap-sass to latest version #21
1 parent 91c2012 commit 1b9a3b2

File tree

200 files changed

+10904
-19527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+10904
-19527
lines changed
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-sass",
3-
"version": "3.2.0+1",
3+
"version": "3.3.3",
44
"homepage": "https://github.com/twbs/bootstrap-sass",
55
"authors": [
66
"Thomas McDonald",
@@ -10,23 +10,13 @@
1010
],
1111
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
1212
"main": [
13-
"assets/stylesheets/bootstrap.scss",
13+
"assets/stylesheets/_bootstrap.scss",
1414
"assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
1515
"assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
1616
"assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
1717
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
18-
"assets/javascripts/bootstrap/affix.js",
19-
"assets/javascripts/bootstrap/alert.js",
20-
"assets/javascripts/bootstrap/button.js",
21-
"assets/javascripts/bootstrap/carousel.js",
22-
"assets/javascripts/bootstrap/collapse.js",
23-
"assets/javascripts/bootstrap/dropdown.js",
24-
"assets/javascripts/bootstrap/tab.js",
25-
"assets/javascripts/bootstrap/transition.js",
26-
"assets/javascripts/bootstrap/scrollspy.js",
27-
"assets/javascripts/bootstrap/modal.js",
28-
"assets/javascripts/bootstrap/tooltip.js",
29-
"assets/javascripts/bootstrap/popover.js"
18+
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff2",
19+
"assets/javascripts/bootstrap.js"
3020
],
3121
"keywords": [
3222
"twbs",
@@ -47,13 +37,14 @@
4737
"dependencies": {
4838
"jquery": ">= 1.9.0"
4939
},
50-
"_release": "3.2.0+1",
40+
"_release": "3.3.3",
5141
"_resolution": {
5242
"type": "version",
53-
"tag": "v3.2.0+1",
54-
"commit": "6f45298818f454aead771ecd0c6398d7c17d8649"
43+
"tag": "v3.3.3",
44+
"commit": "ed0a2bfdc9e33c3f350306252ee8da9da47d6107"
5545
},
5646
"_source": "git://github.com/twbs/bootstrap-sass.git",
57-
"_target": "3.2.0+1",
58-
"_originalSource": "bootstrap-sass-official"
47+
"_target": "~3.3.3",
48+
"_originalSource": "bootstrap-sass-official",
49+
"_direct": true
5950
}

bower_components/bootstrap-sass-official/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# Changelog
22

3+
## 3.3.3
4+
5+
This is a re-packaged release of 3.3.2.1 (v3.3.2+1).
6+
7+
Versions are now strictly semver.
8+
The PATCH version may be ahead of the upstream.
9+
10+
Framework version: Bootstrap **v3.3.2**.
11+
12+
## 3.3.2.1
13+
14+
* Fix glyphicons regression (revert 443d5b49eac84aec1cb2f8ea173554327bfc8c14)
15+
16+
## 3.3.2.0
17+
18+
* Autoprefixer is now required, and `autoprefixer-rails` is now a dependency for the ruby gem. [#824](https://github.com/twbs/bootstrap-sass/issues/824)
19+
* Minimum precision reduced from 10 to 8 [#821](https://github.com/twbs/bootstrap-sass/issues/821)
20+
* Requiring bootstrap JS from npm now works [#812](https://github.com/twbs/bootstrap-sass/issues/812)
21+
* Fix Sass 3.4.x + IE10 compatibility issue [#803](https://github.com/twbs/bootstrap-sass/issues/803)
22+
* Provide minified JS bundle [#777](https://github.com/twbs/bootstrap-sass/issues/777)
23+
* Bower package is now at bootstrap-sass [#813](https://github.com/twbs/bootstrap-sass/issues/813)
24+
25+
26+
## 3.3.1.0
27+
28+
* Variables override template at templates/project/_bootstrap-variables.sass
29+
* Readme: Bower + Rails configuration
30+
31+
## 3.3.0.1
32+
33+
* Fix loading issue with the ruby gem version
34+
35+
## 3.3.0
36+
37+
* Improve libsass compatibility
38+
* Support using Bower package with Rails
39+
40+
## 3.2.0.2
41+
42+
Main bootstrap file is now a partial (_bootstrap.scss), for compatibility with Compass 1+.
43+
44+
Fixed a number of bugs. [Issues closed in v3.2.0.2](https://github.com/twbs/bootstrap-sass/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av3.2.0.2).
45+
46+
## 3.2.0.1
47+
48+
Fixed a number of bugs: [Issues closed in v3.2.0.1](https://github.com/twbs/bootstrap-sass/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av3.2.0.1).
49+
350
## 3.2.0.0
451

552
- Assets (Sass, JS, fonts) moved from `vendor/assets` to `assets`. `bootstrap.js` now contains concatenated JS.

bower_components/bootstrap-sass-official/CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Asset Changes
44

55
Any changes to `bootstrap-sass` assets (scss, javascripts, fonts) should be checked against the `convert` rake task.
6-
For usage instructions, see the [README](https://github.com/twbs/bootstrap-sass/blob/3/README.md).
6+
For usage instructions, see the [README](/README.md).
77

88
If something is broken in the converter, it's preferable to update the converter along with the asset itself.
99

@@ -57,7 +57,11 @@ Example:
5757

5858
**We will not accept pull requests that modify the SCSS beyond fixing bugs caused by *our* code!**
5959

60-
Most pull requests should go to [twbs/bootstrap](https://github.com/twbs/bootstrap) or [jlong/sass-twitter-bootstrap](https://github.com/jlong/sass-twitter-bootstrap)
60+
We use a [converter script][converter-readme] to automatically convert upstream bootstrap, written in LESS, to Sass.
61+
62+
Issues related to styles or javascript but unrelated to the conversion process should go to [twbs/bootstrap][upstream].
63+
64+
Pull requests that fix bugs caused by our code should not modify the SCSS directly, but should patch the converter instead.
6165

6266
Good pull requests - patches, improvements, new features - are a fantastic
6367
help. They should remain focused in scope and avoid containing unrelated
@@ -77,3 +81,6 @@ Please **do not** derail or troll issues. Keep the
7781
discussion on topic and respect the opinions of others.
7882

7983
*props [html5-boilerplate](https://github.com/h5bp/html5-boilerplate/blob/master/CONTRIBUTING.md)*
84+
85+
[upstream]: https://github.com/twbs/bootstrap
86+
[converter-readme]: https://github.com/twbs/bootstrap-sass/blob/master/README.md#upstream-converter

bower_components/bootstrap-sass-official/README.md

Lines changed: 83 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,116 @@
1-
# Bootstrap for Sass [![Gem Version](https://badge.fury.io/rb/bootstrap-sass.svg)](http://badge.fury.io/rb/bootstrap-sass) [![Bower Version](https://badge.fury.io/bo/bootstrap-sass-official.svg)](http://badge.fury.io/bo/bootstrap-sass-official) [![Build Status](http://img.shields.io/travis/twbs/bootstrap-sass.svg)](http://travis-ci.org/twbs/bootstrap-sass)
1+
# Bootstrap for Sass [![Gem Version](https://badge.fury.io/rb/bootstrap-sass.svg)](http://badge.fury.io/rb/bootstrap-sass) [![Bower Version](https://badge.fury.io/bo/bootstrap-sass.svg)](http://badge.fury.io/bo/bootstrap-sass) [![Build Status](http://img.shields.io/travis/twbs/bootstrap-sass.svg)](http://travis-ci.org/twbs/bootstrap-sass)
22

33
`bootstrap-sass` is a Sass-powered version of [Bootstrap](http://github.com/twbs/bootstrap), ready to drop right into your Sass powered applications.
44

55
## Installation
66

77
Please see the appropriate guide for your environment of choice:
88

9+
* [Ruby on Rails](#a-ruby-on-rails).
10+
* [Compass](#b-compass-without-rails) not on Rails.
11+
* [Bower](#c-bower).
12+
913
### a. Ruby on Rails
1014

1115
`bootstrap-sass` is easy to drop into Rails with the asset pipeline.
1216

1317
In your Gemfile you need to add the `bootstrap-sass` gem, and ensure that the `sass-rails` gem is present - it is added to new Rails applications by default.
1418

1519
```ruby
16-
gem 'bootstrap-sass', '~> 3.2.0'
20+
gem 'bootstrap-sass', '~> 3.3.3'
1721
gem 'sass-rails', '>= 3.2'
1822
```
1923

20-
It is also recommended to use [Autoprefixer](https://github.com/ai/autoprefixer-rails) with Bootstrap
21-
to add browser vendor prefixes automatically. Simply add the gem:
22-
23-
```ruby
24-
gem 'autoprefixer-rails'
25-
```
26-
2724
`bundle install` and restart your server to make the files available through the pipeline.
2825

29-
In `app/assets/stylesheets/application.css.scss`:
26+
Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`:
3027

3128
```scss
29+
// "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables"
3230
@import "bootstrap-sprockets";
3331
@import "bootstrap";
3432
```
3533

34+
`bootstrap-sprockets` must be imported before `bootstrap` for the icon fonts to work.
35+
36+
Make sure the file has `.css.scss` extension (or `.css.sass` for Sass syntax). If you have just generated a new Rails app,
37+
it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it:
38+
39+
```console
40+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
41+
```
42+
43+
Then, remove all the `//= require` and `//= require_tree` statements from the file. Instead, use `@import` to import Sass files.
44+
3645
Do not use `//= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables.
3746

38-
In `app/assets/javascripts/application.js`:
47+
Require Bootstrap Javascripts in `app/assets/javascripts/application.js`:
3948

4049
```js
4150
//= require jquery
4251
//= require bootstrap-sprockets
4352
```
4453

45-
#### Rails 3.2.x
46-
47-
Rails 3.2 is [no longer maintained for bugfixes](http://guides.rubyonrails.org/maintenance_policy.html), and you should upgrade as soon as possible.
54+
#### Bower with Rails
4855

49-
Starting with bootstrap-sass v3.1.1.1, due to the structural changes from upstream you will need these
50-
backported asset pipeline gems on Rails 3.2. There is more on why this is necessary in
51-
https://github.com/twbs/bootstrap-sass/issues/523 and https://github.com/twbs/bootstrap-sass/issues/578.
56+
When using [bootstrap-sass Bower package](#c-bower) instead of the gem in Rails, configure assets in `config/application.rb`:
5257

5358
```ruby
54-
gem 'sprockets-rails', '=2.0.0.backport1'
55-
gem 'sprockets', '=2.2.2.backport2'
56-
gem 'sass-rails', github: 'guilleiguaran/sass-rails', branch: 'backport'
59+
# Bower asset paths
60+
root.join('vendor', 'assets', 'bower_components').to_s.tap do |bower_path|
61+
config.sass.load_paths << bower_path
62+
config.assets.paths << bower_path
63+
end
64+
# Precompile Bootstrap fonts
65+
config.assets.precompile << %r(bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$)
66+
# Minimum Sass number precision required by bootstrap-sass
67+
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
5768
```
5869

59-
### b. Compass without Rails
70+
Replace Bootstrap `@import` statements in `application.css.scss` with:
6071

61-
Install the gem
62-
```sh
63-
gem install bootstrap-sass
72+
```scss
73+
$icon-font-path: "bootstrap-sass/assets/fonts/bootstrap/";
74+
@import "bootstrap-sass/assets/stylesheets/bootstrap-sprockets";
75+
@import "bootstrap-sass/assets/stylesheets/bootstrap";
6476
```
6577

66-
If you have an existing Compass project:
78+
Replace Bootstrap `require` directive in `application.js` with:
6779

68-
```ruby
69-
# config.rb:
70-
require 'bootstrap-sass'
80+
```js
81+
//= require bootstrap-sass/assets/javascripts/bootstrap-sprockets
7182
```
7283

84+
#### Rails 4.x
85+
86+
Please make sure `sprockets-rails` is at least v2.1.4.
87+
88+
#### Rails 3.2.x
89+
90+
bootstrap-sass is no longer compatible with Rails 3. The latest version of bootstrap-sass compatible with Rails 3.2 is v3.1.1.0.
91+
92+
### b. Compass without Rails
93+
94+
Install the gem:
95+
7396
```console
74-
$ bundle exec compass install bootstrap
97+
$ gem install bootstrap-sass
7598
```
7699

100+
If you have an existing Compass project:
101+
102+
1. Require `bootstrap-sass` in `config.rb`:
103+
104+
```ruby
105+
require 'bootstrap-sass'
106+
```
107+
108+
2. Install Bootstrap with:
109+
110+
```console
111+
$ bundle exec compass install bootstrap -r bootstrap-sass
112+
```
113+
77114
If you are creating a new Compass project, you can generate it with bootstrap-sass support:
78115

79116
```console
@@ -89,31 +126,29 @@ $ compass create my-new-project -r bootstrap-sass --using bootstrap
89126
This will create a new Compass project with the following files in it:
90127
91128
* [styles.sass](/templates/project/styles.sass) - main project Sass file, imports Bootstrap and variables.
92-
* [_bootstrap-variables.sass](/templates/project/_bootstrap-variables.sass.erb) - all of Bootstrap variables, override them here.
129+
* [_bootstrap-variables.sass](/templates/project/_bootstrap-variables.sass) - all of Bootstrap variables, override them here.
93130
94131
Some bootstrap-sass mixins may conflict with the Compass ones.
95132
If this happens, change the import order so that Compass mixins are loaded later.
96133
97134
### c. Bower
98135
99-
Using bootstrap-sass as a Bower package is still being tested. It is compatible with node-sass 0.8.3+. You can install it with:
136+
bootstrap-sass Bower package is compatible with node-sass 1.2.3+. You can install it with:
100137
101138
```console
102-
$ bower install bootstrap-sass-official
139+
$ bower install bootstrap-sass
103140
```
104141
105-
`bootstrap-sass` is taken so make sure you use the command above.
106-
107142
Sass, JS, and all other assets are located at [assets](/assets).
108143
109-
By default, `bower.json` main field list only the main `bootstrap.scss` and all the static assets (fonts and JS).
144+
By default, `bower.json` main field list only the main `_bootstrap.scss` and all the static assets (fonts and JS).
110145
This is compatible by default with asset managers such as [wiredep](https://github.com/taptapship/wiredep).
111146
112147
#### Node.js Mincer
113148
114-
If you use [mincer][mincer] with node-sass, import bootstrap into like so:
149+
If you use [mincer][mincer] with node-sass, import bootstrap like so:
115150
116-
In `application.css.ejs.scss` (NB **.css.ejs.css**):
151+
In `application.css.ejs.scss` (NB **.css.ejs.scss**):
117152
118153
```scss
119154
// Import mincer asset paths helper integration
@@ -137,8 +172,8 @@ See also this [example manifest.js](/test/dummy_node_mincer/manifest.js) for min
137172
By default all of Bootstrap is imported.
138173
139174
You can also import components explicitly. To start with a full list of modules copy
140-
[`bootstrap.scss`](assets/stylesheets/bootstrap.scss) file into your assets as `bootstrap-custom.scss`.
141-
Then comment out components you do not want from `bootstrap-custom`.
175+
[`_bootstrap.scss`](assets/stylesheets/_bootstrap.scss) file into your assets as `_bootstrap-custom.scss`.
176+
Then comment out components you do not want from `_bootstrap-custom`.
142177
In the application Sass file, replace `@import 'bootstrap'` with:
143178
144179
```scss
@@ -147,21 +182,18 @@ In the application Sass file, replace `@import 'bootstrap'` with:
147182
148183
#### Sass: Number Precision
149184
150-
bootstrap-sass [requires](https://github.com/twbs/bootstrap-sass/issues/409) minimum [Sass number precision][sass-precision] of 10 (default is 5).
185+
bootstrap-sass [requires](https://github.com/twbs/bootstrap-sass/issues/409) minimum [Sass number precision][sass-precision] of 8 (default is 5).
151186
152187
Precision is set for Rails and Compass automatically.
153188
When using ruby Sass compiler standalone or with the Bower version you can set it with:
154189
155190
```ruby
156-
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
191+
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
157192
```
158193
159-
Note that libsass and node-sass do not currently support the precision option, due to an open bug ([bug #364](https://github.com/sass/libsass/issues/364)) in libsass.
160-
161-
162194
#### Sass: Autoprefixer
163195
164-
Using [Autoprefixer][autoprefixer] with Bootstrap is recommended.
196+
Bootstrap requires the use of [Autoprefixer][autoprefixer].
165197
[Autoprefixer][autoprefixer] adds vendor prefixes to CSS rules using values from [Can I Use](http://caniuse.com/).
166198
167199
#### JavaScript
@@ -231,6 +263,12 @@ $navbar-default-color: $light-orange;
231263
@import "bootstrap";
232264
```
233265

266+
## Version
267+
268+
`bootstrap-sass` version reflects the upstream version, with an additional number for Sass-specific changes.
269+
270+
Always refer to [CHANGELOG.md](/CHANGELOG.md) when upgrading.
271+
234272
---
235273

236274
## Development and Contributing

0 commit comments

Comments
 (0)