Parametrized Css class

125 views
Skip to first unread message

Thomas Lefort

unread,
Jan 9, 2013, 7:21:56 AM1/9/13
to google-we...@googlegroups.com
Hi,

Is it possible to define a parametrizable css class? Something like this:

.paramClass(value) {
   width: value;
   height: value;
}

and the in uiBinder have:

<div class="paramClass(60)"></div>

Thanks,

Thomas

Thomas Broyer

unread,
Jan 9, 2013, 8:43:23 AM1/9/13
to google-we...@googlegroups.com
No.

All the additions of CssResource to CSS are listed in the documentation: https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#CssResource

There's been some discussion about integrating Closure Stylesheets with ClientBundle but I don't think anyone started working on it. Closure Stylesheets adds mixins to CSS: https://code.google.com/p/closure-stylesheets/#Mixins

Thomas Lefort

unread,
Jan 9, 2013, 8:57:13 AM1/9/13
to google-we...@googlegroups.com
That's indeed what I would need ;-) Thanks.

Goktug Gokdogan

unread,
Jan 9, 2013, 3:59:13 PM1/9/13
to google-web-toolkit
FYI, I will start working on closure CSS integration this quarter.


--
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/-/iZCsiQ95xmQJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Ed

unread,
Jan 10, 2013, 2:36:25 PM1/10/13
to google-we...@googlegroups.com
+1 Coktug....
Good to see someone works on CSS integration :)
I wanted it, tried it... but still... nothing ... sorry :(...
- Ed

Op woensdag 9 januari 2013 21:59:13 UTC+1 schreef Goktug Gokdogan het volgende:
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.

Joseph Lust

unread,
Jan 28, 2013, 3:11:42 PM1/28/13
to google-we...@googlegroups.com
Thanks Goktug! CSS3 and GWT have been the biggest issue for me in the last year. I can't wait! And, as TBroyer pointed out in a post last year, once this is ready, it should be possible to use as a custom ResourceGenerator, so hopefully some of us could use it before GWT 2.5+1


Sincerely,
Joseph

Rob

unread,
Jan 29, 2013, 3:56:03 PM1/29/13
to google-we...@googlegroups.com
Hi,

What about using SASS (Syntactically Awesome Stylesheets)?

Goktug Gokdogan

unread,
Apr 27, 2013, 1:14:09 AM4/27/13
to google-web-toolkit
For anyone waiting for this; 
Sorry guys, priorities are changed and it doesn't look like I will be able to work on it anytime soon :(

Feel free to give it a try yourself & send a patch; I'll try to help you out along the way.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages