Sha256: a57b266a59de8e15120574e1ac5dbc7aa0c3aef5b6b2b2d367b3120ec6924ca3
Contents?: true
Size: 954 Bytes
Versions: 3
Compression:
Stored size: 954 Bytes
Contents
/* * Font Custom: bare CSS */ @font-face { font-family: "<%= @opts[:font_name] %>"; src: url("<%= @data[:file_name] %>.eot"); src: url("<%= @data[:file_name] %>.eot?#iefix") format("embedded-opentype"), url("<%= @data[:file_name] %>.woff") format("woff"), url("<%= @data[:file_name] %>.ttf") format("truetype"), url("<%= @data[:file_name] %>.svg#<%= @opts[:font_name] %>") format("svg"); font-weight: normal; font-style: normal; } <%= @data[: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; } <% @data[: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.0.1 | lib/fontcustom/templates/fontcustom.css |
fontcustom-1.0.0 | lib/fontcustom/templates/fontcustom.css |
fontcustom-1.0.0.pre2 | lib/fontcustom/templates/fontcustom.css |