I found the solution. It is possible to mix literal and @def in the same ccs property so this working fine : background: literal("-webkit-gradient(linear, left top, left bottom, from(") buttonGradientStartColor literal("), to(") buttonGradientEndColor literal("))");
On Nov 30, 5:32 pm, Marcin Misiewicz <misq...@gmail.com> wrote: > Hi > > In my theme I want to use css3 gradients. > Since gradients are not the part of the standard yet I have to use > wrap them in the literal function like in the example (for webkit > browsers) below : > background: literal("-webkit-gradient(linear, left top, left bottom, > from(#FFF), to(#EDEDED))"); > > It works fine but I would like define in my CssResource variables > gradientColorStart, gradientColorEnd which can be used later in the > other styles definitions. Unfortunately code like below does not > work : > > @def gradientColorStart #FFF; > @def gradientColorEnd #EDEDED; > > .someClass { > background: literal("-webkit-gradient(linear, left top, left bottom, > from(gradientColorStart), to(gradientColorEnd))"); > > } > > Is there any possibility to use @def inside literal function ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.