Skip to content

Commit

Permalink
Merge pull request twbs#1007 from iammikecohen/master
Browse files Browse the repository at this point in the history
Add Eyeglass support to Bootstrap
  • Loading branch information
glebm committed Feb 19, 2016
2 parents f17b502 + a8f7d79 commit c537b2e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,22 @@ $navbar-default-color: $light-orange;
@import "bootstrap";
```

### Eyeglass

Boodstrap is available as an [Eyeglass](https://github.com/sass-eyeglass/eyeglass) module. After installing Bootstrap via NPM you can import the Bootstrap library via:

```scss
@import "bootstrap-sass/bootstrap"
```

or import only the parts of Bootstrap you need:

```scss
@import "bootstrap-sass/bootstrap/variables";
@import "bootstrap-sass/bootstrap/mixins";
@import "bootstrap-sass/bootstrap/carousel";
```

## Version

Bootstrap for Sass version may differ from the upstream version in the last number, known as
Expand Down
7 changes: 7 additions & 0 deletions eyeglass-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var path = require('path');

module.exports = function(eyeglass, sass) {
return {
sassDir: path.join(__dirname, 'assets/stylesheets')
}
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"keywords": [
"bootstrap",
"sass",
"css"
"css",
"eyeglass-module"
],
"contributors": [
"Thomas McDonald",
Expand All @@ -26,5 +27,9 @@
"node-sass": "~3.4.2",
"mincer": "~1.3",
"ejs": "~2.3"
},
"eyeglass": {
"exports": "eyeglass-exports.js",
"needs": "^0.7.1"
}
}

0 comments on commit c537b2e

Please sign in to comment.