mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
|
|
<%#
|
|
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:
|
|
|
|
https://forums.aws.amazon.com/thread.jspa?threadID=114646
|
|
%>
|
|
|
|
<% font_domain = "#{request.protocol}#{request.host_with_port}" %>
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: 'FontAwesome';
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>');
|
|
src: url('<%=asset_path "fontawesome-webfont.eot" %>?<%= font_domain %>#iefix') format('embedded-opentype'),
|
|
url('<%=asset_path "fontawesome-webfont.woff" %>?<%= font_domain %>') format('woff'),
|
|
url('<%=asset_path "fontawesome-webfont.ttf" %>?<%= font_domain %>') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'zocial';
|
|
src: url('/assets/zocial-regular-webfont.woff?<%= font_domain %>') format('woff'),
|
|
url('/assets/zocial-regular-webfont.ttf?<%= font_domain %>') format('truetype'),
|
|
url('/assets/zocial-regular-webfont.svg?<%= font_domain %>#zocialregular') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
|
|
}
|
|
</style>
|