Sha256: 9c1101c27cf4fa0fec2f100d8afd3bc8e27ecaf2cddc1c7399190c2decb01cac

Contents?: true

Size: 373 Bytes

Versions: 21

Compression:

Stored size: 373 Bytes

Contents

# This contains functions for use with a project *only* using Compass.

module Sass::Script::Functions
  # Define asset_url for Compass to allow use of sprites.
  def asset_url(asset, type)
    asset_sans_quotes = asset.value.gsub('"', '')
    path = Sass::Script::String.new("/#{type}s/#{asset_sans_quotes}", :string)
    Sass::Script::String.new("url(#{path})")
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
querobolsa-bootstrap-sass-0.2.4 lib/querobolsa-bootstrap-sass/compass_functions.rb
querobolsa-bootstrap-sass-0.2.3 lib/querobolsa-bootstrap-sass/compass_functions.rb
querobolsa-bootstrap-sass-0.2.2 lib/querobolsa-bootstrap-sass/compass_functions.rb
querobolsa-bootstrap-sass-0.2.1 lib/querobolsa-bootstrap-sass/compass_functions.rb
querobolsa-bootstrap-sass-0.2 lib/querobolsa-bootstrap-sass/compass_functions.rb
querobolsa-bootstrap-sass-0.1.0 lib/querobolsa-bootstrap-sass/compass_functions.rb
bootstrap-sass-2.1.1.0 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.1.0.1 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.1.0.0 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.4.2 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.4.1 lib/bootstrap-sass/compass_functions.rb
google-buttons-sass-0.1.2 lib/google-buttons-sass/compass_functions.rb
google-buttons-sass-0.1.1 lib/google-buttons-sass/compass_functions.rb
google-buttons-sass-0.1.0 lib/google-buttons-sass/compass_functions.rb
bootstrap-sass-keppy-0.0.0 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.4.0 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.3.1 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.3 lib/bootstrap-sass/compass_functions.rb
bootstrap-sass-2.0.2 lib/bootstrap-sass/compass_extensions.rb
bootstrap-sass-2.0.1 lib/bootstrap-sass/compass_extensions.rb