Skip to content

Instantly share code, notes, and snippets.

@jasonlemay
Last active November 16, 2015 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonlemay/ec52a0bd918ffbac5eb5 to your computer and use it in GitHub Desktop.
Save jasonlemay/ec52a0bd918ffbac5eb5 to your computer and use it in GitHub Desktop.
Getting started with CSS (GSS) in GWT
// src/main/java/com/company/project/client/resources/PageResources.java
package com.company.project.client.resources;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface PageResources extends ClientBundle {
interface Homepage extends CssResource {
String homepage();
String homepage_big_title();
[other cool classes related to homepage only]
}
interface Services extends CssResource {
String services();
[other cool classes related to services only]
}
interface Contact extends CssResource {
String contact();
String contact_form();
[other cool classes related to contact only]
}
@Source("com/company/project/client/resources/css/pages/homepage.gss")
Homepage homepage();
@Source("com/company/project/client/resources/css/pages/services.gss")
Services services();
@Source("com/company/project/client/resources/css/pages/contact.gss")
Contact contact();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment