Skip to content

Instantly share code, notes, and snippets.

@avwave
Created October 13, 2014 08:03
Show Gist options
  • Save avwave/674f2756b32fa4332d3f to your computer and use it in GitHub Desktop.
Save avwave/674f2756b32fa4332d3f to your computer and use it in GitHub Desktop.
@mixin invert($amt: 100%) {
-o-filter: invert($amt);
-ms-filter: invert($amt);
-moz-filter: invert($amt);
-webkit-filter: invert($amt);
@-moz-document url-prefix() {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'invert\'><feColorMatrix in='SourceGraphic' type='matrix' values='-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0'/></filter></svg>#invert");
background-color: #000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment