Sha256: 3f3a75859852dcf5b92b37f6de436f765faf4236a2ac478275c98340db7176e7

Contents?: true

Size: 362 Bytes

Versions: 37

Compression:

Stored size: 362 Bytes

Contents

module Compass::SassExtensions::Functions::FontFiles
  def font_files(*args)
    raise Sass::SyntaxError, "An even number of arguments must be passed to font_files()" unless args.size % 2 == 0
    files = []
    while args.size > 0
      files << "#{font_url(args.shift)} format('#{args.shift}')"
    end
    Sass::Script::String.new(files.join(", "))
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.7 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.6 lib/compass/sass_extensions/functions/font_files.rb
compass-0.12.alpha.0 lib/compass/sass_extensions/functions/font_files.rb
compass-rails31-0.12.0.alpha.0.91a748a lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.5 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.4 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.3 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.2 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.1 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.0 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.7 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.6 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.5 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.4 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.3 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.2 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.1 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.beta.0 lib/compass/sass_extensions/functions/font_files.rb
compass-0.11.alpha.4 lib/compass/sass_extensions/functions/font_files.rb