Skip to content

Instantly share code, notes, and snippets.

@erikflowers
Created July 30, 2014 19:10
Show Gist options
  • Save erikflowers/9190aa93707b4447baca to your computer and use it in GitHub Desktop.
Save erikflowers/9190aa93707b4447baca to your computer and use it in GitHub Desktop.
Quick grayscale HTML/CSS pages Less Mixin
.grayscale(@amount: 100%) {
filter: grayscale(@amount);
-webkit-filter: grayscale(@amount);
-moz-filter: grayscale(@amount);
-o-filter: grayscale(@amount);
-ms-filter: grayscale(@amount);
}
// Usage
body {
// your styles
.grayscale(100%);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment