Re: Using CssResource @def inside some css property with parenthesis not working

2012-03-13 Thread Joseph Lust
Shaun, I had issues with these @def's last fall. Here is what I learned: 1) Make sure the @def's are placed at the very top of the CSS file, anywhere else and they'll be trouble (this face is not documented ). 2) Use the @lite

Re: Using CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Shaun Tarves
. See http://code.google.com/p/google-web-toolkit/issues/detail?id=5771 On Thursday, March 8, 2012 4:43:52 PM UTC+1, Shaun Tarves wrote: > > Hi - > > I'm having trouble using a defined constant inside of a css property that > has its own parenthetical refer

Re: Using CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Thomas Broyer
ing trouble using a defined constant inside of a css property that > has its own parenthetical reference. What I mean is: > > @def HEADER_ROW_BACKGROUND_COLOR #b2bbc9; > This works: > > background: HEADER_ROW_BACKGROUND_COLOR; > > This does not work. > background-image: linear-gr

Using CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Shaun Tarves
Hi - I'm having trouble using a defined constant inside of a css property that has its own parenthetical reference. What I mean is: @def HEADER_ROW_BACKGROUND_COLOR #b2bbc9; This works: background: HEADER_ROW_BACKGROUND_COLOR; This does not work. background-image: linear-gradien

Re: CssResource @def in UiBinder

2012-02-15 Thread Riley
It's good to know the output JS is good for this. Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bEnAsLa_FmAJ. To post to this group,

Re: CssResource @def in UiBinder

2012-02-15 Thread Riley
Ok, this is what we've been doing too. Thanks for the response! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_d4AhxaTDbMJ. To post to this g

Re: CssResource @def in UiBinder

2012-02-15 Thread Thomas Broyer
We're simply using: .outerLabel { color: COLOR_THREE; } Just like you'd do, without UiBinder: interface MyClientBundle extends ClientBundle { @Source("path/to/definitions.css", "foo.css") FooStyles foo(); interface FooStyles extends CssResource { ... } } -- You received

Re: CssResource @def in UiBinder

2012-02-14 Thread Paul Stockley
A somewhat convoluted way of doing this is as follows. The resulting javascript code is actually very good and 99% of the time just the string literal for the def will be included. @def COLOR_ONE #3B5998; @def COLOR_TWO #DFE4EE; @def COLOR_THREE #FF; @def COLOR_FOUR #6792AB; @def

Re: CssResource @def in UiBinder

2012-02-14 Thread Riley
Did you ever figure this out? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ekpjuyU3x_IJ. To post to this group, send email to google-web-tool

@def in @if for Conditional CSS

2011-02-23 Thread Andreas
Is there a way to get @def statments to get work in @if statments. Whenever I try this, the @def last @if statment wins.For example: @def backgroundColor #e00; @if platform p1{ @def backgroundColor #F1C1BD; } @if platform p2{ @def backgroundColor #FDDCC5; } @if platform p3{ @def

Extending Ginjector multiple times: No @Inject or def constructor for Place Controller.

2011-01-25 Thread rvns-pats
Hi All, I have created a base library which has the BaseGinjector and BaseGinModule as listed below: BaseGinjector.java [CODE] public interface BaseGinjector extends Ginjector{ ActivityMapper getActivityMapper(); PlaceController getPlaceController(); EventBus

Re: CssResource @def in UiBinder

2010-12-15 Thread John
Not really what I'm going for. You get that same functionality with I want to be able to do: common.css ----- @def COLOR_THREE #aaeeaa; *.ui.xml - .myViewSpecificCss { border: 1px solid COLOR_THREE; } I know you can do .myViewSpecificCss { border: 1px solid COLOR_

Re: CssResource @def in UiBinder

2010-12-15 Thread Myles Bostwick
I'm not sure if this is exactly what you're talking about or not, but I've got a common ResourceBundle that I use in my uibinder that I use like so: Included in ui.xml Included in view @UiFactory /* this method allows ui.xml to access an instance of a resource */ public IResources getI

CssResource @def in UiBinder

2010-12-15 Thread John
I'm trying to use a set of common @def statements across multiple child projects. I cannot directly reference the css file in the uiBinder - its in another project. I need a way to set the tag to import / use / set source the css with @def statements from a CssResource inside of a c

Re: @def

2010-12-02 Thread Hilco Wijbenga
On 2 December 2010 16:11, Hilco Wijbenga wrote: > my.css: > @def BORDER-WIDTH 1px; > > MyCss.java: > interface MyCss extends CssResource { > �...@defname("BORDER-WIDTH") >  int getBorderWidth(); // Returns 1. > } > > Is there a way to achieve something lik

@def

2010-12-02 Thread Hilco Wijbenga
Hi all, I've been playing with @def and it's really nice. But it gets even better because you can access the corresponding value in your Java code. my.css: @def BORDER_WIDTH 1px; MyCss.java: interface MyCss extends CssResource { int BORDER_WIDTH(); // Returns 1. } The only issue I

Re: Is it possible to pass the value @def to the literal function in CssResource

2010-12-01 Thread Marcin Misiewicz
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("))")

Is it possible to pass the value @def to the literal function in CssResource

2010-11-30 Thread Marcin Misiewicz
uot;); 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 { backgroun