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

using font-awesome icons side-by-side with bootstrap icons #333

Closed
ph0b0s opened this issue Jul 9, 2012 · 1 comment
Closed

using font-awesome icons side-by-side with bootstrap icons #333

ph0b0s opened this issue Jul 9, 2012 · 1 comment

Comments

@ph0b0s
Copy link

ph0b0s commented Jul 9, 2012

How can I use font-awesome icons side-by-side with bootstrap icons?

When I include font-awesome css after default bootstrap css it doesn't look nice.

My idea for possible solution:
I could modify font-awesome CSS and prepend every declaration with my own class ((.parent > .child) or (.selector.selector)).
That way I can use bootstrap icons by default and font-awesome icons only when my class is present.

Using bootstrap icon: <button class="btn"><i class="icon-search"></i></button>
Using font-awesome icon: <button class="btn use-font-awesome"><i class="icon-search"></i></button>
Using my custom icon: <button class="btn"><i class="icon-mysearchicon"></i></button>

Is this idea for possible solution OK?
Is someone using font-awesome icons in this way?

@davegandy
Copy link
Member

I won't be supporting this as a part of the release. Another way to change it would be to change from icon-search to fa-icon-search. Just do a lot of string replacements on the Font Awesome LESS files.

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

2 participants