Equal Height Blocks
Flexbox Based Responsive Equal Height Blocks With JavaScript Fallback.
Based on http://osvaldas.info/flexbox-based-responsive-equal-height-blocks-with-javascript-fallback
Usage
With webpack:
if (!Modernizr.testAllProps('flexWrap')) {
require.ensure(['dotsunited-equal-height-blocks/lib/fallback'], function() {
var equalHeightBlocks = require('dotsunited-equal-height-blocks/lib/fallback');
equalHeightBlocks('.list', '.list__item');
});
}
@import "~dotsunited-equal-height-blocks/lib/mixins";
.list {
.dotsunited-equal-height-blocks-container();
}
.list__item {
background: #eee;
}
License
Copyright (c) 2015 Dots United GmbH.
Released under the MIT license.