We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@include boxShadow(inset 0 -$depth 0 0 rgba(0, 0, 0, 0.15));
It seems Sass drops the first zero. Here's the minimal reproducible example:
$ sass --scss src.scss test.css $ cat src.scss @mixin boxShadow($statement){ -webkit-box-shadow: $statement; -moz-box-shadow: $statement; box-shadow: $statement; } @mixin buttonSize($depth){ @include boxShadow(inset 0 -$depth 0 0 rgba(0, 0, 0, 0.15)); } .test { @include buttonSize(3px); } $ cat test.css .test { -webkit-box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.15); box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.15); } /*# sourceMappingURL=test.css.map */
Please notice that: @include boxShadow(inset 0 -$depth 0 0 rgba(0, 0, 0, 0.15)); in src.scss is compiled to inset -3px 0 0 rgba(0, 0, 0, 0.15); in test.css.
src.scss
inset -3px 0 0 rgba(0, 0, 0, 0.15);
test.css
The root cause is definitely the - in -$depth. Once I remove that minus sign and use @include buttonSize(-3px) instead, it works properly.
-
-$depth
@include buttonSize(-3px)
The text was updated successfully, but these errors were encountered:
Duplicate of #1912.
Sorry, something went wrong.
No branches or pull requests
It seems Sass drops the first zero. Here's the minimal reproducible example:
Please notice that:
@include boxShadow(inset 0 -$depth 0 0 rgba(0, 0, 0, 0.15));
insrc.scss
is compiled toinset -3px 0 0 rgba(0, 0, 0, 0.15);
intest.css
.The root cause is definitely the
-
in-$depth
. Once I remove that minus sign and use@include buttonSize(-3px)
instead, it works properly.The text was updated successfully, but these errors were encountered: