I want to create an additional breakpoint with a different behavior for columns for mobile, tablet and dektop.
This is what I'm looking to realize:
Desktop:
<----ELEMENT 1----><----ELEMENT 2----><-----SIDEBAR----->
Tablet:
<----ELEMENT 1----><-----SIDEBAR----->
<----ELEMENT 2---->
Mobile:
<----ELEMENT 1---->
<----ELEMENT 2---->
<-----SIDEBAR----->
I've tried to use the scss function used to add the mobile-n style and switch from 12 columns to 9 columns in the tablet version, but I think I miss something.
$tabletTotalColumns: 9;
/* Tablet 4-column Grid */
@for $i from 1 through $tabletTotalColumns {
.row {
.tablet-#{convert-number-to-word($i)} { width: gridCalc($i, $tabletTotalColumns) !important; float: $defaultFloat; padding: 0 ($columnGutter/2);
&:last-child { float: $defaultOpposite; }
&.end { float: $defaultFloat; }
}
&.collapse {
.tablet-#{convert-number-to-word($i)} { padding: 0; }
}
}
}