FortAwesome / font-awesome-sass

Font-Awesome Sass gem for use in Ruby/Rails projects
MIT License
906 stars 265 forks source link

Layout Issue w/ Duotone #182

Open johnvilsack opened 4 years ago

johnvilsack commented 4 years ago

Trying to use duotone icons:

@mixin globe {
    @extend %fa-icon;
    @extend .fas;

    &:before {
        content: fa-content($fa-var-globe); 
    }
}

@mixin globe-duo {
    @extend %fa-icon;
    @extend .fad;

    &:before {
        content: fa-content($fa-var-globe); 
    }
}

generates a failed duotone icon that isn't formatting properly:

capture 5
st3phhays commented 4 years ago

I'm currently trying to convert to the duotone icons as well. I'm finding this helpful: https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements#with-duotone