Sha256: 3fabecb45ad8fb2c066dd6918d3b8063cb7cc75bae6a1e873ae4ff7ac73ed68a
Contents?: true
Size: 523 Bytes
Versions: 49
Compression:
Stored size: 523 Bytes
Contents
module Bootstrap::Sass::Extensions::Functions # Snatched from compass 0.11 - 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 end module Sass::Script::Functions include Bootstrap::Sass::Extensions::Functions end
Version data entries
49 entries across 49 versions & 2 rubygems