Sha256: 30e56a3b2ed3d11c8f962d560ed5237ce121414f61603d8d063b28484cb11cdf

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

require 'compass'
Compass::Frameworks.register('susy',
                             :stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'sass'),
                             :templates_directory => File.join(File.dirname(__FILE__), '..', 'templates'))

module Sass::Script::Functions

  # Convert a grid piece from strings to numbers
  def grid_to_numbers(piece)
    items = piece.to_s.split(' ')
    Sass::Script::List.new(items.map{|i| Sass::Script::Number.new(i.to_f)}, :comma)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.2 lib/susy.rb