Code Monkey home page Code Monkey logo

Comments (7)

planetwork avatar planetwork commented on September 13, 2024

Just to let you know you're not the only one -- as soon as I upgraded from font-awesome-sass-rails 2.0.0.0 to font-awesome-sass-rails 3.0.0.1 I started having the same problem -- font-awesome icons show up as a generic character.
What's more, downgrading again to 2.0 doesn't seem to fix the problem.

from font-awesome-sass-rails.

caarlos0 avatar caarlos0 commented on September 13, 2024

hm, I'll try that.

BTW, I talk to a friend, and he's having this issue too.

Looks like general.

from font-awesome-sass-rails.

planetwork avatar planetwork commented on September 13, 2024

Removing the css "font-family" from the element that the icon-* class was set on resolved this for me (hadn't seemed to be a problem in 2.0). Set the icon-* class on an tag instead as recommended.

from font-awesome-sass-rails.

planetwork avatar planetwork commented on September 13, 2024

that should have been "an 'i' tag"

from font-awesome-sass-rails.

caarlos0 avatar caarlos0 commented on September 13, 2024

Sorry.. I don't understand what exactly you do to fix this, @planetwork... can you please explain a little more?

from font-awesome-sass-rails.

planetwork avatar planetwork commented on September 13, 2024

I had set the class on a P tag, as in <p class='icon-star'> and had also set a font-family rule on that p tag.
Removing the font-family css rule fixed the problem, but a better solution is to include the font-awesome selector inside an I tag, as in <p><i class='icon-star'></i>foobar</p>

Hope that helps

from font-awesome-sass-rails.

caarlos0 avatar caarlos0 commented on September 13, 2024

Hey @planetwork, try my fork without your hacks, it should work now. That was a small permission issue.

from font-awesome-sass-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.