adminlte-generators
adminlte-generators copied to clipboard
add glyphicons font
add glyphicons font since we don't want to change bootstrap sourcefile to correct font path
Kindly refer to https://stackoverflow.com/questions/18369036/bootstrap-3-glyphicons-are-not-working. There are two ways to fix the bootstrap fonts missing issue:
- add external font file source like this fix
- change
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
to
@font-face {
font-family: 'Glyphicons Halflings';
src: url('glyphicons-halflings-regular.eot');
src: url('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('glyphicons-halflings-regular.woff') format('woff'), url('glyphicons-halflings-regular.ttf') format('truetype'), url('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
Because rails will auto go to fonts
folder to find the fonts files.
However, generally speaking, change directly to bootstrap sourcefile is not desired, do we?