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; }
Written by Antonio Lettieri
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#