Reputation: 710
I have downloaded bootstrap less. I saw one mixin folder inside it containing files with same name. e.g alert.less. So what is the use of mixin files.
And what are the best practices to customize less file. a small example will be helpful.
Upvotes: 0
Views: 257
Reputation: 2622
Bootstrap also has a huge list of mixins that you can use in your own Less. These mixins allow you to quickly add common attributes to any styles you make. And with the way that Less lets you use parameters, you don’t have to do anything but specify how you want things to appear. For instance, one of the more common needs is a gradient. Bootstrap has a mixin already made, so all you need to do in your style is add this inside of the style you want it to mix into
Upvotes: 1