Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Ed Bras
​There are several options to fly to the moon. There is no silver bullet. .. Just pick the best of all worlds for your situation... If your Css needs to be very flexible, I don't think that CssResource is the correct choice... I would then use Errai with a good html parser, that is able to create b

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Arnaud TOURNIER
Cool, but sometimes CSS is not about just colors ! You may want to change the structure of the CSS between themes. For example one theme would have the checkboxes styled so they look as iOS ones (through some known CSS tricks with ::content and so on) and other times you might want them to appear

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Ed Bras
Concerning the Theming part: I did a gwt project like @Jens explained and works well. Details: like @Jens mention, retrieve values (often: colors, logos, etc.. and not layout like height/width) from static java files. The static java (preference bridge) class will then forward the call to a contai

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Arnaud TOURNIER
Thanks Ed, i will have a look at Errai again, last time i did i focused on other parts and missed the theming parts... Arnaud Le ven. 24 avr. 2015 à 21:53, Ed Bras a écrit : > Have a look at the RedHat Errai templating mechanism. > Errai is setup in modules (jar's), so you can use only the parts

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Arnaud TOURNIER
Thanks Jens for your advice, i will definitely change the text on the website in the way you said it. Obvisouly i lack skills in communicating ! Thanks again ! Arnaud Le ven. 24 avr. 2015 à 21:46, Jens a écrit : > > I am not sure i am really clear in my explanation, but i hope you get the >>

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Jens
I would probably just serve the CSS using a servlet that fetches the CSS from database based on the current customer. The app would then have a small UI to update the CSS in the database. If you don't need to give customers full control but just want to allow them to change logo / colors then I

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Ed Bras
Have a look at the RedHat Errai templating mechanism. Errai is setup in modules (jar's), so you can use only the parts you need. And easy to extend/fork parts you need. The idea is that you load the css/html dynamically when needed in the app (through annotations). These html/css snippets/pages ca

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Jens
> I am not sure i am really clear in my explanation, but i hope you get the > idea... > Yeah I got the idea. Although I don't need it now it seems quite handy for theming and I like the fact that the external CSS file can still be pruned with the help of the generated mapping file. I think

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread mmcrober
Well, the idea is that you have a product used by multiple customers that's deployed as a WAR file, but the customers want to be able to do their own customizations on the style for branding, style consistency, etc. They may not have Java developers or Java developer tools, but understand styl

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Arnaud TOURNIER
Hi Jens, True that HexaCss allows for theme switching, but it is only a side effect of what it really allows : to have multiple css files bound to the same gwt application, without needing to recompile the application. For example, you might want to rebrand your application for another customer,

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Jens
> With HexaCss for GWT, you can use > Sass, Less, Susy, Foundation, Bootstrap and so on. For the programmer you > use it the same kind of way as CssResource/ClientBundle, but then you bind > your application to external CSS files, and thus can use any CSS Fra

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread Arnaud TOURNIER
Not exactly because the css files are typically served from the war file. You could of course host them on a CDN so that you don't have to redeploy your war (but then you need an internet connection and your application will depend on it to have the CSS, which i find OK only if your application is

Re: LESS/ SASS/... style usage in GWT ?

2015-04-24 Thread mmcrober
Does that include the ability to modify styles without redeploying the WAR file? -- 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-toolkit+unsubs

Re: LESS/ SASS/... style usage in GWT ?

2015-04-20 Thread Ltearno
With HexaCss for GWT, you can use Sass, Less, Susy, Foundation, Bootstrap and so on. For the programmer you use it the same kind of way as CssResource/ClientBundle, but then you bind your application to external CSS files, and thus can use any CSS Framework. Yo

Re: LESS/ SASS/... style usage in GWT ?

2013-06-20 Thread Juan Pablo Gardella
I do agree, CSS in GWT are complex. This is a good improvement "Simplifies the use of CSS in GWT". 2013/6/20 Daniel Kurka > So we need a better way of doing CSS in GWT, this is what the complete > collection of issues stands for. > We are talking about how to add this to GWT in a proper way and

Re: LESS/ SASS/... style usage in GWT ?

2013-06-20 Thread Daniel Kurka
So we need a better way of doing CSS in GWT, this is what the complete collection of issues stands for. We are talking about how to add this to GWT in a proper way and I am very much interested in this. For example the mgwt css looks very messy and it could very much benefit from something like

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread Ryan Chazen
It's been (erroneously) merged into issue 8162, which is just a generic CSS3 issue. So I wouldn't get your hopes up too quickly. https://code.google.com/p/google-web-toolkit/issues/detail?can=2&q=8162&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars&id=8162 On Fri, Jun 14, 2013

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread Ryan Chazen
According to that article it will work without Vaadin, and just requires that you replace 'widgetset' with 'module'. How exactly you'd go about doing that is unclear and I haven't tried, but the article definitely seems to be saying that it should work without issue. I've had plans to give it a tr

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread Ed Bras
I think the gwt dev team is "thinking about" CSS SASS support, from the looks of issue 7624: https://code.google.com/p/google-web-toolkit/issues/detail?id=7624 It hasn't become stale yet ... ;) On Fri, Jun 14, 2013 at 4:19 PM, Ed wrote: > Vaadin has a special linker that should let you use SASS

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread Ed
> > Vaadin has a special linker that should let you use SASS. I haven't tried > it though. https://vaadin.com/blog/-/blogs/link-to-the-client-side-from-sass > Thanks for reminding, I almost forgot it :(. I am currious when this will also be available in the core gwt? As Vaadin is now now an GW

Re: LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread RyanZA
Vaadin has a special linker that should let you use SASS. I haven't tried it though. https://vaadin.com/blog/-/blogs/link-to-the-client-side-from-sass On Friday, June 14, 2013 3:23:43 PM UTC+2, Ed wrote: > > Hi, > I am curious how people use LESS/SASS/... etc.. in GWT i.c.m. GWT > Clientbundle

LESS/ SASS/... style usage in GWT ?

2013-06-14 Thread Ed
Hi, I am curious how people use LESS/SASS/... etc.. in GWT i.c.m. GWT Clientbundle mechanism? I looking into using this (never did before). Please share your experience? (setup, css parsing, experience, ) -- You received this message because you are subscribed to the Google Groups "Google W