Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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