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: GSS mixin restricted ?

2015-04-24 Thread Ed Bras
Thanks @Jens for your feedback. It's true, also thought about just removing these @if's such that I only use the "correct" browser css rule. It's simple getting a bit too much, the advantage isn't that big, and it's not improving maintainability. So reasons enough to keep it "simple" like you expla

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: GSS mixin restricted ?

2015-04-24 Thread Jens
You should also add the standard CSS rule to each if statement. If you don't do so your CSS is brittle as you never know when vendor prefixed CSS rules are removed from the corresponding browser. So always do @if is("browser.engine", "webkit") { -webkit-transform: translate(-40%, 0); -webki

Re: GSS mixin restricted ?

2015-04-24 Thread Ed Bras
@Julien: thanks for the quick answer. Stupid of mine not to think about your approach, so simple ;) Anyway: I tried it, but the GWT/GSS compiler doesn't seem to like the @if conditions inside the @defmixin {}. I get an error :( My tryout code: @defmixin slideInToRight() { @if is("browser.engine",

Re: GSS mixin restricted ?

2015-04-24 Thread Julien Dramaix
If you rewrite a bit your gss by defining conditionals inside the selector, you will be able to extract them in mixins: @defmixin successSelect() { @if is("browser.engine", "webkit") { -webkit-transform: translate(-40%, 0); -webkit-transition: transform 1s, opacity 2s; } @elseif is("browser.engi

Re: JsInterop code seems to compile out @JsExport code in GWT 2.8.0

2015-04-24 Thread Christian Bauer
I'm working on a JsInterop-enabled project with 2.8.0 SNAPSHOT and don't have that problem. Mind you, I had a lot of issues getting this to work in the first place. Have a look at this simple test project and try to build it: https://github.com/christianbauer/gwt-polymer-jsinterop-test On Frid

GSS mixin restricted ?

2015-04-24 Thread Ed
I don't like repeating myself, but I do with a certain slide-in effect that I use a lot for different css class selector. Below the css snippet for the effect. How to use this in a kind of mixin method with the class name as parameter ? Or is there some other way to not repeat myself too much..

Re: GWT 2.7.0 is here

2015-04-24 Thread Ed
| how to i convert my application which is in 2.3 version to 2.7 ? plz provide me some steps to convert the version to 2.7. As far as I know: there is no migration "guide". Just switch to 2.7 and start resolving the compiler errors. It will probably cost you more time in this forum then solving

Re: Chrome prompts me to install GWT Developer Plugin even though the plugin is already installed

2015-04-24 Thread Nana Kwame Amagyei
Thanks Stefan. I was having that issue too. I re-enabled NPAPI and voila! I back on track! Kudos! On Monday, April 20, 2015 at 10:25:52 AM UTC, Stefan Bylund wrote: > > I also noticed this yesterday. > > The GWT Developer Plugin requires NPAPI, which was disabled in Chrome > version 42. > > It i