Skip to content

Instantly share code, notes, and snippets.

@jasonlemay
Last active August 29, 2015 14:22
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/c511e16955d8752adfdd to your computer and use it in GitHub Desktop.
Save jasonlemay/c511e16955d8752adfdd to your computer and use it in GitHub Desktop.
@def ICONS_TTF resourceUrl("iconsTtf");
@def ICONS_EOT resourceUrl("iconsEot");
@def ICONS_WOFF resourceUrl("iconsWoff");
@def ICONS_SVG resourceUrl("iconsSvg");
@font-face {
font-family: 'icons';
src: ICONS_EOT;
src: ICONS_WOFF format('woff'),
ICONS_TTF format('truetype'),
ICONS_SVG format('svg');
}
@external 'icon*';
[class^="icon_"], [class*="icon_"] {
font-family: 'icons';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon_github:before {
content: "\e600";
}
.icon_heart:before {
content: "\e601";
}
package com.arcbees.gwttheo.example.client.resources.theme;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.DataResource;
public interface ThemeResources extends ClientBundle {
interface Icons extends CssResource {
String icon_github();
String icon_heart();
}
@Source("fonts/icons/icons.ttf")
DataResource iconsTtf();
@Source("fonts/icons/icons.eot")
DataResource iconsEot();
@Source("fonts/icons/icons.svg")
DataResource iconsSvg();
@Source("fonts/icons/icons.woff")
DataResource iconsWoff();
@Source("fonts/icons/icons.gss")
Icons icons();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment