Hi,
we are using CSS Resources and ClientBundles for some months now. And
- summing up - it's a really nice experience so far!
However, as our CSS Resources are growing bigger and bigger we would
like to have the ability to reuse some css code.
One example is the definition of gradients. There is a lot of boiler
plate code involved to make that happen for all browsers. And we have
to copy and paste that code for all elements that should use
gradients.
==Example:
background-color: #CE0000; /* fallback color for retro browsers */
background-image: -moz-linear-gradient(top, #ee0000, #ce0000); /* FF3.6 */
background-image: -ms-linear-gradient(top, #ee0000, #ce0000); /* IE10 */
background-image: -o-linear-gradient(top, #ee0000, #ce0000); /*
Opera 11.10+ */
background-image: -webkit-gradient(linear, literal('0 0'),
literal("0 100%"), from(#ee0000), to(#ce0000)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #ee0000, #ce0000);
/* Chrome 10+, Saf5.1+ */
background-image: linear-gradient(top, #ee0000, #ce0000); /*
standard compliant */
==end
That's only one example. But generally speaking, is there a way to
simply define that css at the beginning of a css file and reuse it all
the time? Our dream would be something like SASS
(http://sass-lang.com/) that uses mixins to accomplish that in an
(imho) nice manner.
Thanks a lot,
Raphael
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.