I'm using an specific mixin trying to make my code more clear. So instead of using:
<div class="col-lg-3 col-md-5 col-sm-6 col-xs-12">
I'm using:
<div class="stackOverflowRocksIt">
and in my mixins.less:
.stackOverflowRocksIt{
.make-lg-column(3);
.make-md-column(4);
.make-sm-column(6);
.make-xs-column(12);
}
It works properly with XS and SM viewports, but not when I resize to MD or LG (then is taking the SM size). Is this the proper way to create columns for different viewports sizes? Any idea?
xs
tolg
), otherwisesm
styles overridemd
andlg
since they all are set with just amin-width
query (w/omax-width
). Btw., same is applicable for HTML classes order - i.e. the smaller should go first. – seven-phases-max