Sha256: ac2e7adee47e0bb8c790107abcfa8951d07471c9be154b96df5fc36f5b2eac91
Contents?: true
Size: 974 Bytes
Versions: 3
Compression:
Stored size: 974 Bytes
Contents
/* Icon Font: <%= @opts.font_name %> */ @font-face { font-family: "<%= @opts.font_name %>"; src: url("<%= @font_path %>.eot"); src: url("<%= @font_path %>.eot?#iefix") format("embedded-opentype"), url("<%= @font_path %>.woff") format("woff"), url("<%= @font_path %>.ttf") format("truetype"), url("<%= @font_path %>.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; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; display: inline-block; text-decoration: inherit; } <% @glyphs.each_with_index do |name, index| %> .<%= @opts.css_prefix + name %>:before { content: "\<%= (61696+index).to_s(16) %>"; }<% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fontcustom-1.2.0 | lib/fontcustom/templates/fontcustom.css |
fontcustom-1.1.1 | lib/fontcustom/templates/fontcustom.css |
fontcustom-1.1.0 | lib/fontcustom/templates/fontcustom.css |