adminlte-generators icon indicating copy to clipboard operation
adminlte-generators copied to clipboard

add glyphicons font

Open gamesover opened this issue 7 years ago • 0 comments

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:

  1. add external font file source like this fix
  2. 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?

gamesover avatar Jun 08 '17 20:06 gamesover