Wednesday, February 8, 2017

Porting Sass/Less to GssResource

It is nice that GWT supports GssResources, but I am a bit underwhelmed by the functionality that it provides compared to sass and less.

But maybe it is because the documentation is very limited.

I'm trying to port a mixin like this clearfix mixin:
.clearfix() {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
}
&:after {
clear: both;
}
}

As far as I can find information on the closure stylesheets, I cannot do this with GssResources ?

I did find some feature requests on the closure stylesheet compiler project to add support for parent selectors, but most of the externally defined bugs/feature requests are never responded too or never fixed. It gives me the impression that this new feature in GWT is already unsupported by google - so I better stay away from it and use some external tool to generate my stylesheets (and lose the ability to optimize and obfuscate the styles properly).

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment