Sha256: d5b851d610ee8617f896ef4ac605f7e3375841af50f3da5ceaac8834d3da7e58

Contents?: true

Size: 484 Bytes

Versions: 45

Compression:

Stored size: 484 Bytes

Contents

require 'sass'

module Sass::Script::Functions
  # LARS: Snatched from compass - 2011-11-29 - used for gradients in IE6-9
  # returns an IE hex string for a color with an alpha channel
  # suitable for passing to IE filters.
  def ie_hex_str(color)
    assert_type color, :Color
    alpha = (color.alpha * 255).round
    alphastr = alpha.to_s(16).rjust(2, '0')
    Sass::Script::String.new("##{alphastr}#{color.send(:hex_str)[1..-1]}".upcase)
  end
  declare :ie_hex_str, [:color]
end

Version data entries

45 entries across 43 versions & 6 rubygems

Version Path
querobolsa-bootstrap-sass-0.2.2 lib/querobolsa-bootstrap-sass/rails_functions.rb
querobolsa-bootstrap-sass-0.2.1 lib/querobolsa-bootstrap-sass/rails_functions.rb
querobolsa-bootstrap-sass-0.2 lib/querobolsa-bootstrap-sass/rails_functions.rb
querobolsa-bootstrap-sass-0.1.0 lib/querobolsa-bootstrap-sass/rails_functions.rb
bootstrap-sass-2.2.2.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.2.1.1 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.2.1.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.1.1.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.1.0.1 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.1.0.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.4.2 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.4.1 lib/bootstrap-sass/rails_functions.rb
google-buttons-sass-0.1.2 lib/google-buttons-sass/rails_functions.rb
google-buttons-sass-0.1.1 lib/google-buttons-sass/rails_functions.rb
google-buttons-sass-0.1.0 lib/google-buttons-sass/rails_functions.rb
bootstrap-sass-keppy-0.0.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.4.0 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.3.1 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.3 lib/bootstrap-sass/rails_functions.rb
bootstrap-sass-2.0.2 lib/bootstrap-sass/config/sass_extentions.rb