I get a warning with the following:

@mixin alpha($nested: false) {
 @if not $nested {
   margin-left: side-gutter();
 } @else {
   @warn "The alpha mixin is not needed in a nested context";
 }
}
div { @include alpha(true); }

Please make sure you have sass 3.0.0.beta.2 or greater.

chris

On Mon, Apr 19, 2010 at 10:29 AM, Eric Meyer <[email protected]> wrote:

> I'm working on this bit of code for Susy:
>
> @mixin alpha($nested: false) {
>  @if $nested == false {
>    margin-left: side-gutter();
>  } @else {
>    @warn "The alpha mixin is not needed in a nested context";
>  }
> }
>
> And haven't yet been able to trigger the warning. Other code added in
> the @else block does trigger correctly. I don't see any ':quiet'
> setting turned on, but I'm not sure how to be certain it's off - or if
> there might be some other mistake I'm making. Ideas?
>
> Thanks,
> -e
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to