Skip to content

Instantly share code, notes, and snippets.

@mrakowski0
Last active December 15, 2015 13:59
Show Gist options
  • Select an option

  • Save mrakowski0/5271029 to your computer and use it in GitHub Desktop.

Select an option

Save mrakowski0/5271029 to your computer and use it in GitHub Desktop.
Browser specific css mixin
@mixin support($browser) {
@if $browser == mozilla {
@media only screen and (min--moz-device-pixel-ratio:0) { @content; }
}
@if $browser == webkit {
@media only screen and (min-webkit-device-pixel-ratio:0) { @content; }
}
}
.image {
margin: 2rem 0;
@include support(mozilla) {
margin: 3rem 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment