We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm trying to create a mixin for grayscaling an html element.
In CSS way, it should be :
filter: grayscale(50%);
My mixin :
@mixin grayscale_element($value) { -webkit-filter: grayscale($value); -moz-filter: grayscale($value); filter: grayscale($value); }
My error :
Fatal error: Uncaught exception 'SassScriptFunctionException' with message 'SassNumber must be a SassColour Source: -webkit-filter: grayscale($value)'
Problem is, in sass grayscale is already a function, and paramter should be a color. Module: Sass::Script::Functions - Sass Documentation http://sass-lang.com/documentation/Sass/Script/Functions.html#grayscale-instance_method
How can I use these filter in a mixin ?
The text was updated successfully, but these errors were encountered:
duplicate of #107
Sorry, something went wrong.
Hey guys, please try this
filter: unquote("grayscale(100%)")
I have made a pull request to fix this. Hope it helps.
No branches or pull requests
Hello,
I'm trying to create a mixin for grayscaling an html element.
In CSS way, it should be :
My mixin :
My error :
Problem is, in sass grayscale is already a function, and paramter should be a color.
Module: Sass::Script::Functions - Sass Documentation
http://sass-lang.com/documentation/Sass/Script/Functions.html#grayscale-instance_method
How can I use these filter in a mixin ?
The text was updated successfully, but these errors were encountered: