Skip to content

Instantly share code, notes, and snippets.

@superfine
Created August 18, 2016 10:01
Show Gist options
  • Save superfine/dfd9e96f194f3783a01c945945c35833 to your computer and use it in GitHub Desktop.
Save superfine/dfd9e96f194f3783a01c945945c35833 to your computer and use it in GitHub Desktop.
CSS Hacks Targeting Firefox
// 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