Created
March 27, 2014 18:01
-
-
Save TylerK/9814068 to your computer and use it in GitHub Desktop.
A quick SASS mixin for putting your IE specific hacks in-line with your other styles.
This file contains 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
// | |
// Note: For this to work you will need conditional classes on your html element. For more information: | |
// http://www.paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ | |
// | |
// | |
// Mixin | |
// | |
@mixin for-browser($browser) { | |
&.#{$browser} { | |
@content | |
} | |
} | |
// | |
// Usage | |
// | |
#divName { | |
display: block; | |
@include for-browser(ie8) { | |
display: none; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment