Created
January 1, 2014 23:05
-
-
Save ryanburgess/8212543 to your computer and use it in GitHub Desktop.
SASS Mixin for IE 7 Fix for using :before or :after pseudo elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ----------------------------------------- | |
| // IE 7 Fix for using :before or :after pseudo elements | |
| // ------------------------------------------- | |
| // example: @include pseudo-fix(before) | |
| // example: @include pseudo-fix(after) | |
| @mixin pseudo-fix($pseudo){ | |
| *zoom: expression( | |
| this.runtimeStyle.zoom="1", | |
| this.appendChild( document.createElement("small") ).className=$pseudo | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment