Conditionals are based on constants being defined or not (à la #ifdef of
the C
preprocessor):
https://github.com/google/closure-stylesheets/blob/master/README.md#conditionals
On Tuesday, December 22, 2015 at 3:21:41 PM UTC+1, N Troncoso wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.