-
-
Save jasonlemay/c511e16955d8752adfdd to your computer and use it in GitHub Desktop.
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
@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"; | |
} |
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
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