Skip to content

Instantly share code, notes, and snippets.

@sjungling
Created April 20, 2012 16:06
Show Gist options
  • Save sjungling/2429934 to your computer and use it in GitHub Desktop.
Save sjungling/2429934 to your computer and use it in GitHub Desktop.
Zurb Foundation Icon Fu
module ApplicationHelper
def glyph(letter, glyph_set = "", extra_classes = "")
glyph_set = "general" if glyph_set.blank?
html_options = {
:class => ["glyph", glyph_set, extra_classes].join(" ")
}
content_tag(:span, letter, html_options)
end
end
.glyph.green {color: #4A6B2D;}
.glyph.red {color: #C00000;}
.glyph.small {font-size: 14px;}
.glyph.tiny {font-size: 11px;}
.glyph.large {font-size: 18px;}
Survey says? <%= glyph("g", "general", "red small") %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment