Created
August 18, 2016 10:01
-
-
Save superfine/dfd9e96f194f3783a01c945945c35833 to your computer and use it in GitHub Desktop.
CSS Hacks 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
// FF+ Scss styles go here | |
@-moz-document url-prefix() { | |
body::before { | |
@include border-radius(3px); | |
content: 'According to the media query hack this is FF+'; | |
display: block; | |
padding: 10px; | |
position: absolute; | |
top: 10px; | |
left: 15px; | |
font-size: em(26, 16); | |
line-height: 1.4; | |
color: $white; | |
background-color: $flush-mahogany; | |
z-index: 9999; | |
} | |
} | |
// https://css-tricks.com/snippets/css/css-hacks-targeting-firefox/ | |
// ========================================================================= */ | |
// Firefox All | |
@-moz-document url-prefix() { | |
.selector { | |
color:lime; | |
} | |
} | |
// Firefox 3 | |
html>/**/body .selector, x:-moz-any-link, x:default { | |
color:lime; | |
} | |
// Firefox 2 | |
html>/**/body .selector, x:-moz-any-link { | |
color:lime; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment