Reputation: 313
I just start learning css less and I'm using Less v1.5.0 and WinLess to compile the less file. I have a bunch of code as below:
@import "bootstrap.css";
@import "bootstrap-responsive.css";
.test{
.well;
}
but WinLess give me an error says .well is not defined. I was expecting it to pull out the content of well class from bootstrap.css. So where did I do wrong? Thanks!!
Upvotes: 1
Views: 591
Reputation: 8706
CSS files are not processed by LESS when you import them, therefore you cannot use their classes as mixing.
Import them as LESS files:
@import (less) "bootstrap.css";
@import (less) "bootstrap-responsive.css";
.test{
.well;
}
Read more here (enter Language -> Importing).
Upvotes: 3