Skip to content
New issue

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

Color functions, amount argument handling improvement. #1668

Closed
wants to merge 2 commits into from
Closed

Color functions, amount argument handling improvement. #1668

wants to merge 2 commits into from

Conversation

seven-phases-max
Copy link
Member

This quick-fix is inspired by issue found in #1655:
Color functions with amount parameter now distinguish between % and non-% values.
The following functions are changed:

saturate
desaturate
lighten
darken
fadein
fadeout
fade
mix

Known issues: To keep things simple I reused existing functions.js:number goody. This function tests only for % and non-% values so for example fade(#111, 1px) gives same result as fade(#111, 1.0) with no error thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant