Skip to content

Commit

Permalink
Properly declare arguments for opacify et al.
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
nex3 committed Nov 8, 2016
1 parent bcd7f90 commit 60aa439
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/src/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60aa439

Please sign in to comment.