Sweet responsive breakpoints
- Built for synchronizing grids and breakpoints
- Easily extend content across at-rules
- Install with Bower
- Import dependencies
$ bower install --save taffy-break
@import 'bower_components/taffy-break/scss/main';$break-amountsets the amount of breaks$break-maxsets the max break width
The default $break-amount is set to 12 and the default $break-max is set to 80em. To override these defaults set the variables before importing the dependencies.
$break-amount: 6;
$break-max: 40em;
@import '../bower_components/taffy-break/scss/main';- Generates media queries that represent breaks or columns
- Calculated with
$break-amountand$break-maxvariables - Accepts one argument that defines which break to use
In this example the code inside this break will activate after the browser width exceeds the 2nd break.
.break {
@include break(2) {
// ...
}
}