Properly declare arguments for opacify et al. (#34)

Closes #32
This commit is contained in:
Natalie Weizenbaum 2016-11-07 17:54:22 -08:00 committed by GitHub
parent bcd7f90ad8
commit db25251c49

View File

@ -273,10 +273,11 @@ void defineCoreFunctions(Environment environment) {
return new SassNumber(color.alpha);
});
environment.defineFunction("opacify", r"$color", _opacify);
environment.defineFunction("fade-in", r"$color", _opacify);
environment.defineFunction("transparentize", r"$color", _transparentize);
environment.defineFunction("fade-out", r"$color", _transparentize);
environment.defineFunction("opacify", r"$color, $amount", _opacify);
environment.defineFunction("fade-in", r"$color, $amount", _opacify);
environment.defineFunction(
"transparentize", r"$color, $amount", _transparentize);
environment.defineFunction("fade-out", r"$color, $amount", _transparentize);
// ### Miscellaneous