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

Tiny subset icons via fa-sub (fa-sup) overlay #3640

Closed
gandalfx opened this issue Jun 5, 2014 · 8 comments
Closed

Tiny subset icons via fa-sub (fa-sup) overlay #3640

gandalfx opened this issue Jun 5, 2014 · 8 comments

Comments

@gandalfx
Copy link

gandalfx commented Jun 5, 2014

There are a lot of bitmap Icons out there that have some sort of mini-icons attached to them to indicate a dropdown menu etc. So far I have not found anything similar for FontAwesome even though it should be feasible.

Here are a few examples I am currently using in a project:
example image
Another likely candidate would of course be fa-caret-down to indicate some kind of context menu.

I don't have a pull request for this but here is an example implementation that has worked for me so far:

<span>
    <i class="fa fa-lg fa-fw fa-picture-o"></i>
    <i class="fa fa-sub fa-upload"></i>
</span>
// use with .fa-fw.fa-lg on main icon
.fa-sub {
    position: relative;
    left: -.8em;
    width: .2em;
    vertical-align: -.25em;
    text-shadow: 0 0 1px black; // optional contrast
}

So as you can see it's a similar principle to fa-stack

For completeness sake you might also want to add a fa-sup class for mini icons oriented at the top, e.g. for use as quirky footnote indicators.

Again I appologize if this has been suggested before, there are a lot of issues and afaik no search function for them.
In any case great work so far, really appreciate it. Cheers!

@tagliala
Copy link
Member

tagliala commented Jun 5, 2014

oh, very nice!

refers to #1181

@PayBas
Copy link

PayBas commented Jun 8, 2014

+1

1 similar comment
@hanakin
Copy link

hanakin commented Jun 9, 2014

+1

@tagliala tagliala changed the title Tiny subset icons via fa-sub (fa-sup) Tiny subset icons via fa-sub (fa-sup) overlay Jun 13, 2014
@matthew-hull
Copy link

+1

@fschaeffer
Copy link

+1

@pnacelli
Copy link

reviving this with a +1 since it's been mentioned on the FA Kickstarter (https://www.kickstarter.com/projects/232193852/font-awesome-5/comments)

@warlycologne
Copy link

+1 it should be the responsibility of the designer to separate both icons visually (probably the same as with stacking) but the possibility should be in the core framework imho

@sensibleworld
Copy link
Member

We've built a feature similar to this with our new Icon Wizard: https://blog.fontawesome.com/behold-the-font-awesome-icon-wizard/

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

No branches or pull requests

9 participants