Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@extend support? #9

Open
msisto opened this issue Jun 20, 2012 · 3 comments
Open

@extend support? #9

msisto opened this issue Jun 20, 2012 · 3 comments

Comments

@msisto
Copy link

msisto commented Jun 20, 2012

I posted this in the Font Awesome GH project as well...

Maybe I am missing something, but it appears that you can't extend an icon into an element?

For example:

a.edit-thingie {
  @extend .icon-edit;
  color: blue;
}

But <a href="" class="icon-edit"></a> on its own, works as expected.

@iredmedia
Copy link

Honestly, not a single response from anyone?

@ejholmes
Copy link

ejholmes commented Oct 8, 2012

I use the following mixin, which works quite well unless you're using media queries.:

=icon($name)
  &:before
    font-family: FontAwesome
    font-weight: normal
    font-style: normal
    display: inline-block
    text-decoration: inherit
    margin-right: 0.4em
  @extend .icon-#{$name}

So then you could do:

a.edit-thingie {
  @include icon('edit');
}

@rmm5t
Copy link
Contributor

rmm5t commented Jan 13, 2013

I think font-awesome-sass-rails should just remain as a light wrapper around Font-Awesome core. If you'd like an icon mixin, I think that should only be addressed in the FortAwesome/Font-Awesome repo.

I vote for closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants