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 need to do something like this:
.GetColorByLightness (@color) when (lightness(@color) < 50%) { return #FFFFFF; } .GetColorByLightness (@color) when (lightness(@color) >= 50%) { return #000000; }
body{ color: .GetColorByLightness(#CCC); }
So I need to create a function that I can use to return a value and not an attibute and its value.
Thanks, Mariana Silva
The text was updated successfully, but these errors were encountered:
I've just proposed similar functionality in issue 637.
Sorry, something went wrong.
going to move discussion over custom functions over to #637 - more comments there.
No branches or pull requests
Hello!
I need to do something like this:
.GetColorByLightness (@color) when (lightness(@color) < 50%) {
return #FFFFFF;
}
.GetColorByLightness (@color) when (lightness(@color) >= 50%) {
return #000000;
}
body{
color: .GetColorByLightness(#CCC);
}
So I need to create a function that I can use to return a value and not an attibute and its value.
Thanks,
Mariana Silva
The text was updated successfully, but these errors were encountered: