Created
May 10, 2021 16:05
-
-
Save gvinson/fdc7e335578b2e0b1444632dac1c232f to your computer and use it in GitHub Desktop.
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
// IE 10+ | |
@mixin ie-only() { | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
@content; | |
} | |
} | |
// IE Edge 10+ { | |
@mixin ie-edge-only { | |
@supports (-ms-accelerator:true) or (-ms-ime-align:auto) { | |
@content; | |
} | |
} | |
// Safari 10.1+ | |
@mixin safari-only { | |
@media not all and (min-resolution: 0.001dpcm) { | |
@supports (-webkit-appearance: none) { | |
@content; | |
} | |
} | |
} | |
// Firefox 29+ | |
@mixin firefox-only { | |
@media all and (min--moz-device-pixel-ratio: 0) and (min-resolution: 3e1dpcm) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment