2015-11-18 71 views
1

首先我以推薦的方式使用bootswatch:readable主題 - 鏈接到<head>。但是然後Bootstrap在合併的自定義樣式表之後加載,並覆蓋了應該覆蓋Bootstrap的內容。在流星中有一個Glyphicons問題的Bootstrap主題

然後我試圖簡單地用meteor add bootswatch:readable安裝它,它會工作,我的覆蓋也將工作,但問題是Glyphicons - 我會得到

Failed to decode downloaded font: 
http://localhost:3000/packages/bootswatch_readable/bootswatch/fonts/glyphicons-halflings-regular.woff2 
OTS parsing error: invalid version tag 
http://localhost:3000/packages/bootswatch_readable/bootswatch/fonts/glyphicons-halflings-regular.woff 
OTS parsing error: invalid version tag 
http://localhost:3000/packages/bootswatch_readable/bootswatch/fonts/glyphicons-halflings-regular.ttf 
OTS parsing error: invalid version tag 

我看到的圖標路徑可能是錯誤的,但不知道在哪裏或如何解決它。

回答

2

找到this issue on GitHub指出我臨時解決方案。

我安裝了主題,meteor add bootswatch:readable,並將此我自己的樣式表:

@font-face { 
    font-family: 'Glyphicons Halflings'; 
    src: url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.eot'); 
    src: url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.eot?') format('embedded-opentype'), 
    url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2') format('woff2'), 
    url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.woff') format('woff'), 
    url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf') format('truetype'), 
    url('packages/bootswatch_readable/bootstrap/dist/fonts/glyphicons-halflings-regular.svg') format('svg'); 
} 

瞧,圖標的工作!