Recursively walk through all rules and keyframes
make bootstrap css non obtrusive
- did you ever want to use twitter bootstrap, but not in every place?
- or did you want to have two different bootstrap versions on the same page?
here's one possible solution for you:
Just wrap the elements that use the custom bootstrap build in a div like this:
... inline editing that uses the custom twitter bootstrap build of this rework plugin.
With this, the custom bootstrap does not interfere with your custom styles.
The custom bootstrap styles are only applied within the elements inside of the elements with the class
npm install rework rework-bootstrap
var src = './test/fixtures/bootstrap.css';var target = './test/outputs/rework-bootstrap.css';var fs = require'fs';var rework = require'rework';var bootstrap = require'rework-bootstrap';var css = fsreadFileSyncsrc 'utf-8';css = reworkcssusebootstrap'.nested-bootstrap'toString;fswriteFileSynctarget css 'utf-8';