Sweet responsive extends
- Content that is easily extendable across at-rules
- Programmatically extend content without interpolation
- Install with Bower
- Import dependencies
$ bower install --save taffy-adapt
@import 'bower_components/fizz-sass/scss/main';
@import 'bower_components/taffy-adapt/scss/main';
- Helps extending your placeholders
Simplify the adapt mixin by wrapping it with your own.
@mixin foobar($variants) {
@include adapt('foobar', $variants);
}
Now you can use your mixin.
.foobar {
@include foobar((1 baz) (2 baz));
}
- Helps generate your placeholders
- Uses
$adapt-loop
global variable to set the scope for each placeholder
The loop mixin accepts one argument that sets how many times it loops.
@include adapt-loop(2) {
%foobar-#{$adapt-loop}-baz {
// ...
}
%foobar-#{$adapt-loop}-qux {
// ...
}
}