diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2016-02-19 19:20:56 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2016-02-19 19:20:56 +0300 |
commit | c537b2eeb8b194fee8d141c0a941fd9ba323faf5 (patch) | |
tree | a37a397dffa297537415464784f0e0d5ff140acb | |
parent | f17b502b4d04bd72871042e87ff676398b5e2405 (diff) | |
parent | a8f7d79c704fb238ea5efe6089d8d1b17d507575 (diff) |
Merge pull request #1007 from iammikecohen/master
Add Eyeglass support to Bootstrap
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | eyeglass-exports.js | 7 | ||||
-rw-r--r-- | package.json | 7 |
3 files changed, 29 insertions, 1 deletions
@@ -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 diff --git a/eyeglass-exports.js b/eyeglass-exports.js new file mode 100644 index 00000000..49d2c840 --- /dev/null +++ b/eyeglass-exports.js @@ -0,0 +1,7 @@ +var path = require('path'); + +module.exports = function(eyeglass, sass) { + return { + sassDir: path.join(__dirname, 'assets/stylesheets') + } +}
\ No newline at end of file diff --git a/package.json b/package.json index 21c9c0ec..11b1b05b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "keywords": [ "bootstrap", "sass", - "css" + "css", + "eyeglass-module" ], "contributors": [ "Thomas McDonald", @@ -26,5 +27,9 @@ "node-sass": "~3.4.2", "mincer": "~1.3", "ejs": "~2.3" + }, + "eyeglass": { + "exports": "eyeglass-exports.js", + "needs": "^0.7.1" } } |