/* Allows a parent element to enclose the full height of the children * elements when all of the children are floated. * Normally the parent will have no height. * @see http://nicolasgallagher.com/micro-clearfix-hack/ */ @mixin clear-floats($legacy:false) { // IE6/7 support @if $legacy == true { &::before, &::after { content:""; display:block; } &::after { clear:both; } zoom:1; } @if $legacy == false { &::after { content:""; display:block; clear:both; } } }