Last Updated: February 25, 2016
·
586
· alettieri

Sass IEFix mixin

A way to add ie (using html5 boilerplate method) specific fixes.

Came up with this solution:

@mixin oldie($v:ie8) {
  .#{$v} & { @content; }
}

Example:

.navbar {
    display: inline;
    @include oldie(ie8){
        float: left;
    }
}

Compiles to:

.navbar { display: inline; }
.ie8 .navbar { float: left; }