Clearfix Sass Mixin

@mixin clearfix() {
    &:before,
    &:after {
        content: "";
        display: table;
    }
    &:after {
        clear: both;
    }
}

Usage

.article {
     @include clearfix();
}

Source