Using variables in CSS via GWT
<ui:style>
@def corporateTextColor #426;
@eval corporateBackgroundColor my.company.Resource.INSTANCE.constant().red();
@def corporateTextColor #426;
@eval corporateBackgroundColor my.company.Resource.INSTANCE.constant().red();
.aCSSclass {
color: corporateTextColor;
background: corporateBackgroundColor;
/* certain CSS property definitions */
}
.anotherCSSclass {
color: corporateTextColor;
background: corporateBackgroundColor;
/* certain CSS property definitions */
}
</ui:style>
Comments
Post a Comment