Sha256: 7f0f7ae56b5c9141a86a4714e440d5bc369c4b25227c5015c2cf3e4b06a494ce

Contents?: true

Size: 704 Bytes

Versions: 18

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_render(:browser_smooth) do |value|
  format_params = case value
                  when Array
                    properties = []
                    value.each do |param|
                      properties << "#{param}px"
                    end
                    properties.join(' ').to_s
                  when Integer
                    "#{value}px"
                  else
                    value
                  end
  @browser_object.style['border-radius'] = format_params
end

generator.build_render(:browser_blur) do |value|
  BrowserHelper.send("browser_blur_#{@browser_type}", @browser_object, value, @atome)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/renderers/browser/effect.rb
atome-0.5.4.1.7 lib/atome/renderers/browser/effect.rb
atome-0.5.4.1.3 lib/atome/renderers/browser/effect.rb
atome-0.5.4.1.2 lib/atome/renderers/browser/effect.rb
atome-0.5.4.1.1 lib/atome/renderers/browser/effect.rb
atome-0.5.4.1.0 lib/atome/renderers/browser/effect.rb
atome-0.5.4.0.9 lib/atome/renderers/browser/effect.rb
atome-0.5.3.8.8 lib/atome/renderers/browser/effect.rb
atome-0.5.3.8.1 lib/atome/renderers/browser/effect.rb
atome-0.5.3.8.0 lib/atome/renderers/browser/effect.rb
atome-0.5.3.7.8 lib/atome/renderers/browser/effect.rb
atome-0.5.3.7.3 lib/atome/renderers/browser/effect.rb
atome-0.5.3.7.2 lib/atome/renderers/browser/effect.rb
atome-0.5.3.4 lib/atome/renderers/browser/effect.rb
atome-0.5.3.2 lib/atome/renderers/browser/effect.rb
atome-0.5.2.8 lib/atome/renderers/browser/effect.rb
atome-0.5.2.7 lib/atome/renderers/browser/effect.rb
atome-0.5.2.5 lib/atome/renderers/browser/effect.rb