Last active
August 29, 2015 14:08
-
-
Save stevenadams/a7ef0dfab30cda81e0bb to your computer and use it in GitHub Desktop.
Mixin for targeting Firefox
This file contains hidden or 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
body { | |
height: 20px; | |
} | |
@-moz-document url-prefix() { | |
body { | |
height: 10px; | |
} | |
} |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.7) | |
// ---- | |
@mixin firefox() { | |
@-moz-document url-prefix() { | |
@content; | |
} | |
} | |
body{ | |
height: 20px; | |
@include firefox(){ | |
height: 10px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment