Feature request: !important variables impacting @imported variables
Closed this issue · 1 comments
I just included bootstrap and font awesome into a project I'm working on using bower. Bower downloaded both repo's into a components
folder in my project.
My project looks like this
/components
/bootstrap
/Font-Awesome
/style.less
My style.less
file contains individual imports of all of bootstraps
parts excluding sprites.less
which shares classes with font awesome.
At the bottom of style.less
I'm importing font awesome. Within that file at the top is a variable @FontAwesomePath
which is a relative path to the font
folder. This is invalid now that i've @imported
the file.
I would like to not have to edit this variable within the repo, I wanna keep the rep clean and make all my changes in my files.
What I need would be the ability to override this variable from style.less
like so.
@FontAwesomePath: "/components/Font-Awesome/font" !important;
@import "./components/Font-Awesome/less/font-awesome.less";
I think this makes loads of since, especially with projects like bower on the rise, less is going to need to pick up some of the slack.
wrong repo - use