Friday, June 3, 2011

@Import CssResource not working (as expected?)

Hi,

Given:

@ImportedWithPrefix("unordered")
interface UnorderedListStyles extends CssResource {
list();
}

@ImportedWithPrefix("list")
interface ListItemStyles extends CssResource {
item();
}

interface Resources extends ClientBundle {

@Import(value = {UnorderedListStyles.class, ListItemStyles.class})
@Source("project.css")
CssResource styles();

interface Styles extends CssResource {
widget();
}

}

/// project.css

.widget .unordered-list {
background:red;
}

.widget .unordered-list .list-item {
color:green;
}

/////////////////////////

The above styles don't get applied. What am I doing wrong?

Cheers,
Dave

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment