Sass Mixins - . , , - Mobile First, Sass, -, :
// Mobile Grid
@media only screen and (max-width: 768px) { ... }
// Desktop & Tablet Grid
@media
, . , , Sass, - @media #{$small} {}, . - , .., , , , , , .
Here is a longer example. In the case, #dashboardit is folded and centered on the mobile and 3 columns on the desktop / tablet. This will be class="small-10 small-centered large-4 columns"for using presentation classes.
@media only screen and (max-width: 768px) {
#dashboard { @include grid-row;
& > #stats { @include grid-column(10, false, true); }
& > #records { @include grid-column(10, false, true); }
& > #results { @include grid-column(10, false, true); }
}
}
@media #{$small} {
#dashboard { @include grid-row;
& > #stats { @include grid-column(4, false, false); }
& > #records { @include grid-column(4, false, false); }
& > #results { @include grid-column(4, false, false); }
}
}
NOTE. You can extend this and have more breakpoints using mixins, but this seems to mimic the behavior of the default presentation class Zurb F4.