Created
July 30, 2014 19:10
-
-
Save erikflowers/9190aa93707b4447baca to your computer and use it in GitHub Desktop.
Quick grayscale HTML/CSS pages Less Mixin
This file contains 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
.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