-
-
Save jasonlemay/ec52a0bd918ffbac5eb5 to your computer and use it in GitHub Desktop.
Getting started with CSS (GSS) in GWT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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