Skip to content

Instantly share code, notes, and snippets.

@kkoziarski
Last active February 8, 2016 16:14
Show Gist options
  • Save kkoziarski/7f42a67392ac59f405ed to your computer and use it in GitHub Desktop.
Save kkoziarski/7f42a67392ac59f405ed to your computer and use it in GitHub Desktop.
Generate boostrap grid columns
@import "../Scripts/lib/bootstrap/less/mixins/grid-framework.less";
/*col-sm-w-* is for setting with only without other properties. It uses bootstrap internal mixin*/
.loop-grid-columns(@grid-columns, xs-w, width);
@media (min-width: @screen-sm-min) {
.loop-grid-columns(@grid-columns, sm-w, width);
}
@media (min-width: @screen-md-min) {
.loop-grid-columns(@grid-columns, md-w, width);
}
@media (min-width: @screen-lg-min) {
.loop-grid-columns(@grid-columns, lg-w, width);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment