3 ms·
If you use the .less sources in your project and compile them as part of your pipeline, you can affect bootstrap styles to a much larger degree with a much smal
by jfrey 13y ago
If you use the .less sources in your project and compile them as part of your pipeline, you can affect bootstrap styles to a much larger degree with a much smaller set of changes. As an example, changing values in bootstrap\variables.less will propagate to all the other dependent less stylesheets.
That's the approach I took for my latest project, and was able to upgrade from 3.0.1 to 3.0.3 this morning with very few headaches.
- elithrar 13y ago> As an example, changing values in bootstrap\variables.less will propagate to all the other dependent less stylesheets. You're better off actually creating a new stylesheet (or sheets) and importing only the Bootstrap LESS files you want. As long as your file is last in the import list, anything you override (variables) will take precedence. This will also make your upgrade path smoother, as the upgrade won't overwrite any of your mods. i.e. @import "bower_components/bootstrap/less/variables.less"; @import "bower_components/bootstrap/less/mixins.less"; // Rest of Bootstrap here @import "myappstylesheet.less";