Skip to content

Commit db25251

Browse files
authored
Properly declare arguments for opacify et al. (#34)
Closes #32
1 parent bcd7f90 commit db25251

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/src/functions.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,11 @@ void defineCoreFunctions(Environment environment) {
273273
return new SassNumber(color.alpha);
274274
});
275275

276-
environment.defineFunction("opacify", r"$color", _opacify);
277-
environment.defineFunction("fade-in", r"$color", _opacify);
278-
environment.defineFunction("transparentize", r"$color", _transparentize);
279-
environment.defineFunction("fade-out", r"$color", _transparentize);
276+
environment.defineFunction("opacify", r"$color, $amount", _opacify);
277+
environment.defineFunction("fade-in", r"$color, $amount", _opacify);
278+
environment.defineFunction(
279+
"transparentize", r"$color, $amount", _transparentize);
280+
environment.defineFunction("fade-out", r"$color, $amount", _transparentize);
280281

281282
// ### Miscellaneous
282283

0 commit comments

Comments
 (0)