2015-03-27 20:08:58 +08:00
|
|
|
<%#
|
|
|
|
The fonts are loaded outside of the stylesheet so that we can dynamically change the path.
|
|
|
|
This is to get around CDN caching on the Origin:
|
2013-02-11 19:41:23 +08:00
|
|
|
|
2015-03-27 20:08:58 +08:00
|
|
|
https://forums.aws.amazon.com/thread.jspa?threadID=114646
|
2013-02-11 19:41:23 +08:00
|
|
|
|
2015-03-27 20:08:58 +08:00
|
|
|
Also added a cache breaker there in case we have breaking config changes
|
|
|
|
&1 was added last when the nginx sample config changed
|
|
|
|
%>
|
2013-02-11 19:41:23 +08:00
|
|
|
|
2015-03-27 23:33:15 +08:00
|
|
|
<% font_domain = "#{request.protocol}#{request.host_with_port}&2" %>
|
2013-02-11 19:41:23 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
@font-face {
|
|
|
|
font-family: 'FontAwesome';
|
2015-03-27 20:08:58 +08:00
|
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>&v=4.3.0');
|
|
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>&v=4.3.0#iefix') format('embedded-opentype'),
|
|
|
|
url('<%=asset_path "fontawesome-webfont.woff2" %>?<%= font_domain %>&v=4.3.0') format('woff2'),
|
|
|
|
url('<%=asset_path "fontawesome-webfont.woff" %>?<%= font_domain %>&v=4.3.0') format('woff'),
|
2015-03-27 20:42:30 +08:00
|
|
|
url('<%=asset_path "fontawesome-webfont.ttf" %>?<%= font_domain %>&v=4.3.0') format('truetype');
|
2013-02-11 19:41:23 +08:00
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
2015-03-27 20:08:58 +08:00
|
|
|
font-family: 'zocial';
|
|
|
|
src: url('<%=asset_path "zocial-regular-webfont.woff" %>?<%= font_domain %>') format('woff'),
|
2015-03-27 22:17:54 +08:00
|
|
|
url('<%=asset_path "zocial-regular-webfont.ttf" %>?<%= font_domain %>') format('truetype');
|
2015-03-27 20:08:58 +08:00
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
2013-02-26 00:42:20 +08:00
|
|
|
}
|
|
|
|
</style>
|