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-amount
sets the amount of breaks$break-max
sets 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-amount
and$break-max
variables - 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) {
// ...
}
}