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

Added stacked_icon helper #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jtrost
Copy link

@jtrost jtrost commented Jan 31, 2015

This feature is from issue #59

Usage

<%= stacked_icon(
  icon("camera", "", class: "fa-stack-1x"), # The first icon to stack
  icon("ban", "", class: "fa-stack-2x text-danger"), # The second icon to stack
  class: "fa-lg" # Additional classes for fa-stack
) %>

Output

<span class="fa-stack fa-lg"><i class="fa fa-camera fa-stack-1x"></i><i class="fa fa-ban fa-stack-2x text-danger"></i></span>


def stacked_icon(icon1, icon2, html_options={})
content_class = "fa-stack"
content_class << " #{html_options[:class]}" if html_options.key?(:class)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [82/80]

@jtrost jtrost mentioned this pull request Jan 31, 2015
@jvanbaarsen
Copy link

@supercodepoet Is this something you would be interested in? If so what do you think need to be changed for this to be merged? I can take over this PR if needed.

@ignisf
Copy link

ignisf commented Jul 27, 2015

@supercodepoet, apart from the stylistic issues @houndci found in the PR, is there another reason you believe it should not be merged?

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

Successfully merging this pull request may close these issues.

None yet

4 participants