mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Manage OFN's font through the asset pipeline
This commit is contained in:
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
@@ -1,10 +1,10 @@
|
||||
@font-face {
|
||||
font-family: 'OFN';
|
||||
src:url('/OFN-v2.eot?eslsji');
|
||||
src:url('/OFN-v2.eot?#iefixeslsji') format('embedded-opentype'),
|
||||
url('/OFN-v2.woff?eslsji') format('woff'),
|
||||
url('/OFN-v2.ttf?eslsji') format('truetype'),
|
||||
url('/OFN-v2.svg?eslsji#OFN') format('svg');
|
||||
src: font-url('OFN-v2.eot');
|
||||
src: font-url('OFN-v2.eot') format('embedded-opentype'),
|
||||
font-url('OFN-v2.woff') format('woff'),
|
||||
font-url('OFN-v2.ttf') format('truetype'),
|
||||
font-url('OFN-v2.svg') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- else
|
||||
= favicon_link_tag "/favicon-staging.ico"
|
||||
%link{href: "https://fonts.googleapis.com/css?family=Roboto:400,300italic,400italic,300,700,700italic|Oswald:300,400,700", rel: "stylesheet", type: "text/css"}
|
||||
%link{href: "/OFN-v2.woff?eslsji", rel: "preload", as: "font", crossorigin: "anonymous"}
|
||||
%link{href: font_path("OFN-v2.woff"), rel: "preload", as: "font", crossorigin: "anonymous"}
|
||||
|
||||
= stylesheet_link_tag "darkswarm/all"
|
||||
= csrf_meta_tags
|
||||
|
||||
Reference in New Issue
Block a user