I'm working on a project where we are leaving the Bootstrap less files untouched. We also do not want to use Bootstrap classes in the HTML, since we may not use it in the future. I'm experimenting with using the "extend" feature to group our class names with the BS version in the style sheet. This has worked well except with the grid columns. Since the column class names are built with the ".make-grid" mixin, I can't extend them. Any thoughts on how to not use BS classnames for the grid AND not bloat the CSS?
If you are unfamiliar with the extend option, you can view the documentation here: http://www.lesscss.org/#-extend
//Not ideal because it duplicates declarations.
.mytable {
.table;
}
//Good because it groups the selectors instead of duplicating declarations.
.mytable {
&:extend(.table all);
}
//This does not work, but I wish it did.
.search {
&:extend(.col-sm-6);
}
//This is not ideal because it duplicates declarations.
.search {
.make-sm-column(6);
}