Sweet responsive grids
- Only outputs the CSS you use
- Uses a combination of flex and calc to ensure accuracy
- Keeps output small by extending classes, even within media queries
- Uses
taffy-break
for syncing grids and breakpoints - Includes optional responsive product grid layout
- Includes optional work arounds for Internet Explorer 10
- Install with NPM
- Import dependencies
$ npm install --save taffy-grid
@import '../node_modules/taffy-util/main';
@import '../node_modules/taffy-break/main';
@import '../node_modules/taffy-adapt/main';
@import '../node_modules/taffy-grid/main';
Grid placeholder for items
.taffy-grid {
@extend %grid;
}
<div class='taffy-grid'> ... </div>
Extends item placeholders that are generated on import and qualified by %grid
$item
: width of the column 1$break
: point at which$item
is applied as the width of the column 1
1 between
1
and$break-amount
.taffy-item {
@include item(2 (6 4) (8 6));
}
<div class='taffy-grid'>
<div class='taffy-item'> ... </div>
<div class='taffy-item'> ... </div>
<div class='taffy-item'> ... </div>
</div>
Enables a consistent item width layout when set to true
$grid-fixed: true;
Enables IE10 work arounds when set to true
$grid-ie10: true;