I wonder if the following syntax is correct for Sass:
@function foo($param)
{
@return $param;
}
@mixin bar($paramOne, $paramTwo: foo($paramOne))
{
test: $paramTwo;
}
#test { @include bar(foobar); }
With expected return:
#test { test: foobar; }
Doesn't seems to work (as $paramOne looses it's value) when using the following PHPSASS compiler for SASS/SCSS.
This is the correct syntax? Or I'm missing something?
It's very similar how it's in _vertical_rhythm.scss:
@mixin adjust-font-size-to($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size) {