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
@mixin font-size($font-size,$lines:ceil($font-size / $base-line-height)){ font-size:$font-size; line-height:rhythm($lines,$font-size); }
Notice the use of $font-size in the arg list. This will fail, but works in normal scss.
$font-size
The text was updated successfully, but these errors were encountered:
This is a semantically weird thing for Sass to allow, but I'll duplicate it if it's standard and existing code depends on it.
Sorry, something went wrong.
Yes, any parameter can have a default value that depends on the value of the previous arguments. Python does this too and it's really quite nice.
Fixed!
No branches or pull requests
Notice the use of
$font-size
in the arg list. This will fail, but works in normal scss.The text was updated successfully, but these errors were encountered: