-
-
Save snarf1974/7deb0240970ac9a8c459f3e8127869ca to your computer and use it in GitHub Desktop.
A sass mixin to write css that targets only IE 10 and IE 11
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
// Thanks http://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/ | |
/* | |
Usage: | |
@include target-metro { | |
color: cyan; | |
} | |
*/ | |
@mixin target-metro { | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
@content; | |
} | |
} | |
// Example used in m-card module: | |
@include target-metro { | |
display: flex; | |
flex-wrap: wrap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment