Skip to content

Commit f5f8e9e

Browse files
committed
updated for bootstrap sass version 3.3.7
1 parent 7f346e9 commit f5f8e9e

29 files changed

+208
-138
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bootstrap-sass-nuget (v 3.3.6)
1+
bootstrap-sass-nuget (v 3.3.7)
22
==============================
33

44
Unofficial bootstrap-sass [NuGet package](https://www.nuget.org/packages/Twitter.Bootstrap.Sass/) ... well it's the only NuGet package at the moment for Bootstrap SASS!
@@ -12,7 +12,9 @@ I was going to make this "*official*" and hopefully pull it into the [bootstrap
1212

1313
## Release Notes
1414

15-
**Release Notes (v3.3.6):** Updated for release of Bootstrap 3.3.6 (source and sass).
15+
**Release Notes (v3.3.7)**: Updated for release of Bootstrap 3.3.6 (source and sass).
16+
17+
Release Notes (v3.3.6): Updated for release of Bootstrap 3.3.6 (source and sass).
1618

1719
Release Notes (v3.3.5): Updated for release of Bootstrap 3.3.5 (source and sass).
1820

bootstrap-sass-official/CHANGELOG.md

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

3+
## 3.3.7
4+
5+
* Allows jQuery 3.x in bower.json. [#1048](https://github.com/twbs/bootstrap-sass/issues/1048)
6+
* Adds the `style` and `sass` fields to package.json. [#1045](https://github.com/twbs/bootstrap-sass/issues/1045)
7+
* Adds Eyeglass support. [#1007](https://github.com/twbs/bootstrap-sass/pull/1007)
8+
39
## 3.3.6
410

511
* Bumps Sass dependency to 3.3.4+ to avoid compatibility issues with @at-root.

bootstrap-sass-official/README.md

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Please see the appropriate guide for your environment of choice:
1515
* [Ruby on Rails](#a-ruby-on-rails).
1616
* [Compass](#b-compass-without-rails) not on Rails.
1717
* [Bower](#c-bower).
18+
* [npm / Node.js](#d-npm--nodejs).
1819

1920
### a. Ruby on Rails
2021

@@ -157,7 +158,7 @@ This is compatible by default with asset managers such as [wiredep](https://gith
157158
158159
#### Node.js Mincer
159160
160-
If you use [mincer][mincer] with node-sass, import bootstrap like so:
161+
If you use [mincer][mincer] with node-sass, import Bootstrap like so:
161162
162163
In `application.css.ejs.scss` (NB **.css.ejs.scss**):
163164
@@ -175,10 +176,15 @@ In `application.js`:
175176
176177
See also this [example manifest.js](/test/dummy_node_mincer/manifest.js) for mincer.
177178
179+
### d. npm / Node.js
180+
```console
181+
$ npm install bootstrap-sass
182+
```
178183
179-
### Configuration
180184
181-
#### Sass
185+
## Configuration
186+
187+
### Sass
182188
183189
By default all of Bootstrap is imported.
184190
@@ -191,25 +197,39 @@ In the application Sass file, replace `@import 'bootstrap'` with:
191197
@import 'bootstrap-custom';
192198
```
193199
194-
#### Sass: Number Precision
200+
### Sass: Number Precision
195201
196202
bootstrap-sass [requires](https://github.com/twbs/bootstrap-sass/issues/409) minimum [Sass number precision][sass-precision] of 8 (default is 5).
197203
198204
Precision is set for Rails and Compass automatically.
199-
When using ruby Sass compiler standalone or with the Bower version you can set it with:
205+
When using Ruby Sass compiler standalone or with the Bower version you can set it with:
200206
201207
```ruby
202208
::Sass::Script::Value::Number.precision = [8, ::Sass::Script::Value::Number.precision].max
203209
```
204210
205-
#### Sass: Autoprefixer
211+
### Sass: Autoprefixer
206212
207213
Bootstrap requires the use of [Autoprefixer][autoprefixer].
208214
[Autoprefixer][autoprefixer] adds vendor prefixes to CSS rules using values from [Can I Use](http://caniuse.com/).
209215
210-
#### JavaScript
216+
To match [upstream Bootstrap's level of browser compatibility](http://getbootstrap.com/getting-started/#support), set Autoprefixer's `browsers` option to:
217+
```json
218+
[
219+
"Android 2.3",
220+
"Android >= 4",
221+
"Chrome >= 20",
222+
"Firefox >= 24",
223+
"Explorer >= 8",
224+
"iOS >= 6",
225+
"Opera >= 12",
226+
"Safari >= 6"
227+
]
228+
```
229+
230+
### JavaScript
211231

212-
[`assets/javascripts/bootstrap.js`](/assets/javascripts/bootstrap.js) contains all of Bootstrap JavaScript,
232+
[`assets/javascripts/bootstrap.js`](/assets/javascripts/bootstrap.js) contains all of Bootstrap's JavaScript,
213233
concatenated in the [correct order](/assets/javascripts/bootstrap-sprockets.js).
214234
215235
@@ -231,7 +251,7 @@ You can check dependencies in the [Bootstrap JS documentation][jsdocs].
231251
//= require bootstrap/dropdown
232252
```
233253
234-
#### Fonts
254+
### Fonts
235255
236256
The fonts are referenced as:
237257
@@ -252,19 +272,19 @@ When using bootstrap-sass with Compass, Sprockets, or Mincer, you **must** impor
252272
253273
### Sass
254274
255-
Import Bootstrap into a Sass file (for example, application.scss) to get all of Bootstrap's styles, mixins and variables!
275+
Import Bootstrap into a Sass file (for example, `application.scss`) to get all of Bootstrap's styles, mixins and variables!
256276

257277
```scss
258278
@import "bootstrap";
259279
```
260280

261-
You can also include optional bootstrap theme:
281+
You can also include optional Bootstrap theme:
262282

263283
```scss
264284
@import "bootstrap/theme";
265285
```
266286

267-
The full list of bootstrap variables can be found [here](http://getbootstrap.com/customize/#less-variables). You can override these by simply redefining the variable before the `@import` directive, e.g.:
287+
The full list of Bootstrap variables can be found [here](http://getbootstrap.com/customize/#less-variables). You can override these by simply redefining the variable before the `@import` directive, e.g.:
268288

269289
```scss
270290
$navbar-default-bg: #312312;
@@ -274,6 +294,22 @@ $navbar-default-color: $light-orange;
274294
@import "bootstrap";
275295
```
276296

297+
### Eyeglass
298+
299+
Bootstrap is available as an [Eyeglass](https://github.com/sass-eyeglass/eyeglass) module. After installing Bootstrap via NPM you can import the Bootstrap library via:
300+
301+
```scss
302+
@import "bootstrap-sass/bootstrap"
303+
```
304+
305+
or import only the parts of Bootstrap you need:
306+
307+
```scss
308+
@import "bootstrap-sass/bootstrap/variables";
309+
@import "bootstrap-sass/bootstrap/mixins";
310+
@import "bootstrap-sass/bootstrap/carousel";
311+
```
312+
277313
## Version
278314

279315
Bootstrap for Sass version may differ from the upstream version in the last number, known as
@@ -287,9 +323,7 @@ The upstream versions vs the Bootstrap for Sass versions are:
287323

288324
| Upstream | Sass |
289325
|---------:|--------:|
290-
| 3.3.6 | 3.3.6 |
291-
| 3.3.5 | 3.3.5 |
292-
| 3.3.4 | 3.3.4 |
326+
| 3.3.4+ | same |
293327
| 3.3.2 | 3.3.3 |
294328
| <= 3.3.1 | 3.3.1.x |
295329

@@ -320,7 +354,7 @@ To convert a specific branch or version, pass the branch name or the commit hash
320354
321355
The latest converter script is located [here][converter] and does the following:
322356
323-
* Converts upstream bootstrap LESS files to its matching SCSS file.
357+
* Converts upstream Bootstrap LESS files to its matching SCSS file.
324358
* Copies all upstream JavaScript into `assets/javascripts/bootstrap`, a Sprockets manifest at `assets/javascripts/bootstrap-sprockets.js`, and a concatenation at `assets/javascripts/bootstrap.js`.
325359
* Copies all upstream font files into `assets/fonts/bootstrap`.
326360
* Sets `Bootstrap::BOOTSTRAP_SHA` in [version.rb][version] to the branch sha.

bootstrap-sass-official/bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"Gemfile"
3131
],
3232
"dependencies": {
33-
"jquery": ">= 1.9.0"
33+
"jquery": "1.9.1 - 3"
3434
},
35-
"version": "3.3.6"
35+
"version": "3.3.7"
3636
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//= require ./bootstrap/affix
1+
//= require ./bootstrap/transition
22
//= require ./bootstrap/alert
33
//= require ./bootstrap/button
44
//= require ./bootstrap/carousel
55
//= require ./bootstrap/collapse
66
//= require ./bootstrap/dropdown
77
//= require ./bootstrap/modal
8-
//= require ./bootstrap/scrollspy
98
//= require ./bootstrap/tab
10-
//= require ./bootstrap/transition
9+
//= require ./bootstrap/affix
10+
//= require ./bootstrap/scrollspy
1111
//= require ./bootstrap/tooltip
1212
//= require ./bootstrap/popover

0 commit comments

Comments
 (0)