lib/fontcustom/templates/_fontcustom.scss in fontcustom-1.1.0.pre2 vs lib/fontcustom/templates/_fontcustom.scss in fontcustom-1.1.0

- old
+ new

@@ -2,18 +2,21 @@ // Icon Font: <%= @opts.font_name %> // @font-face { font-family: "<%= @opts.font_name %>"; - src: url("<%= @font_path_pre %>.eot"); - src: url("<%= @font_path_pre %>.eot?#iefix") format("embedded-opentype"), - url("<%= @font_path_pre %>.woff") format("woff"), - url("<%= @font_path_pre %>.ttf") format("truetype"), - url("<%= @font_path_pre %>.svg#<%= @opts.font_name %>") format("svg"); + src: url("<%= @font_path_alt %>.eot"); + src: url("<%= @font_path_alt %>.eot?#iefix") format("embedded-opentype"), + url("<%= @font_path_alt %>.woff") format("woff"), + url("<%= @font_path_alt %>.ttf") format("truetype"), + url("<%= @font_path_alt %>.svg#<%= @opts.font_name %>") format("svg"); font-weight: normal; font-style: normal; } +[data-icon]:before { content: attr(data-icon); } + +[data-icon]:before, <%= @glyphs.map {|name| ".#{@opts.css_prefix + name}:before"}.join(",\n") %> { font-family: "<%= @opts.font_name %>"; font-style: normal; font-weight: normal; font-variant: normal;