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

SASS Color addition and subtraction #77

Open
goltsov opened this issue Nov 19, 2019 · 0 comments
Open

SASS Color addition and subtraction #77

goltsov opened this issue Nov 19, 2019 · 0 comments

Comments

@goltsov
Copy link

goltsov commented Nov 19, 2019

There is a deprecation warning when compiling SASS:

The operation #A9A9A9 plus 55is deprecated and will be an error in future versions. Consider using Sass's color functions instead. http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions

There is a similar warning for the minus function.

Since the generated output is #e0e0e0, the addition function is adding 55 to each RGB value. This can be replaced with the sass function adjust-color(#A9A9A9, $red: 55, $green: 55, $blue: 55) source

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

No branches or pull requests

1 participant