Tuesday, December 22, 2015

Re: How to register custom function with GSS

That's a shame. Though, I may be able to do what I need with a mixin, but the conditionals don't seem to support '='??

Is this valid? :

@defmixin shadow(SHOW)
{
    @if (SHOW = 1)
    {
        box-shadow: 0 1px 1px rgba(0, 0, 0, .24), 0px 1px 1.5px rgba(0, 0, 0, .12);
    }
    @else if (SHOW = 2)
    {
        box-shadow: 0 10px 5px rgba(0, 0, 0, .22), 0px 14px 14px rgba(0, 0, 0, .25);
    }
    @else
    {
        box-shadow: none;
    }
}

I also tried @if (is("SHOW = 1")), but that didn't work.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment