How to add “Awesome Font” to my application using twitter-bootstrap?

Possible duplicate:
Rails: using the awesome font

I have a Rails application in which I use many twitter-bootstrap icons.

To do this, I put "boostrap.css.erb" in / assets / stylesheets / folder directly
also "glyphicons-halflings-white.png" and "glyphicons-halflings.png" in the / assets / images / folder folder.

Now I just downloaded Font awesome and extracted.
I guess I have to do something with these files. Can someone tell me how to set up?

/ css / folder

  • font-awesome-ie7.min.css
  • font-awesome.css
  • font-awesome.min.css

/ font / folder

  • fontawesome-webfont.eot
  • fontawesome-webfont.svg
  • fontawesome-webfont.ttf
  • fontawesome-webfont.woff
  • FontAwesome.otf
+1
1

, html

    <link href="css/font-awesome.css" rel="stylesheet">
    <!--[if IE 7]>
    <link href="css/font-awesome-ie7.css" rel="stylesheet">
    <![endif]-->

, ( /css ). , ,

<span class='icon-star'></span> 

( css font-awesome.css. . , , ..)

+1

Source: https://habr.com/ru/post/1524761/


All Articles