Sha256: 00ac827168bfd9e3ba9f1149bbc617371ea9333b7cd3ccf9ed752d3a92e4b5e2

Contents?: true

Size: 557 Bytes

Versions: 20

Compression:

Stored size: 557 Bytes

Contents

require 'sass'

module Sass
  module Script
    module 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
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rails_admin-1.4.3 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.4.2 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.4.1 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.4.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.3.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.2.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.1.1 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.1.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.0.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-1.0.0.rc lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.8.1 lib/rails_admin/bootstrap-sass/sass_functions.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.7.0 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.8 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.7 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.6 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.5 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.4 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.3 lib/rails_admin/bootstrap-sass/sass_functions.rb
rails_admin-0.6.2 lib/rails_admin/bootstrap-sass/sass_functions.rb