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
$color-01: red;
@mixin box-shadow($shadow...) { -webkit-box-shadow:$shadow; -moz-box-shadow:$shadow; box-shadow:$shadow; }
.test { @include box-shadow(0 0 4px rgba($color-01,0.2), inset 0 0 10px rgba(0,0,0,0.05)); }
is compiled to: .test { -webkit-box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05); box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05); }
The color of the first box-shadow is missing.
It works if you don't use a variable for the color:
.test { @include box-shadow(0 0 4px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.05)); }
is compiled to: .test { -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05); box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$color-01: red;
@mixin box-shadow($shadow...) {
-webkit-box-shadow:$shadow;
-moz-box-shadow:$shadow;
box-shadow:$shadow;
}
.test {
@include box-shadow(0 0 4px rgba($color-01,0.2), inset 0 0 10px rgba(0,0,0,0.05));
}
is compiled to:
.test {
-webkit-box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05);
box-shadow: 0 0 4px, inset 0 0 10px rgba(0, 0, 0, 0.05);
}
The color of the first box-shadow is missing.
It works if you don't use a variable for the color:
.test {
@include box-shadow(0 0 4px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.05));
}
is compiled to:
.test {
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05);
}
The text was updated successfully, but these errors were encountered: