Created
March 26, 2018 02:14
-
-
Save stowball/4d9d164060fcee77c8eda184dad81b70 to your computer and use it in GitHub Desktop.
Detect IE 11 and Edge in (S)CSS
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
@mixin browser-ie11 { | |
@media (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
@content; | |
} | |
} | |
@mixin browser-edge { | |
@supports (-ms-user-select: none) { | |
@content; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment