Sha256: 8b7de88708d4c0dc7df6517044652d1842296efa3052f0c767a3193e1f09bb01

Contents?: true

Size: 444 Bytes

Versions: 551

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PositionPropsCss
    POSITION_VALUES = %w[0 xxs xs sm md lg xl auto initial inherit].freeze

    def positioning_css(property, value)
      if value.is_a?(String)
        "#{property}_#{value}"
      elsif value.is_a?(Hash) && value.key?(:inset)
        "#{property}_#{value[:value]}_inset"
      elsif value.is_a?(Hash)
        "#{property}_#{value[:value]}"
      end
    end
  end
end

Version data entries

551 entries across 551 versions & 1 rubygems

Version Path
playbook_ui-13.34.1.pre.alpha.powerfontsexternal3403 lib/playbook/position_props_css.rb
playbook_ui-14.0.0 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.PLAY14633399 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.PLAY14703378 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PLAY14143373 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PLAY14143372 lib/playbook/position_props_css.rb
playbook_ui-13.34.1 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PLAY14143358 lib/playbook/position_props_css.rb
playbook_ui-13.34.0.pre.alpha.PLAY14143357 lib/playbook/position_props_css.rb
playbook_ui-13.34.0 lib/playbook/position_props_css.rb
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 lib/playbook/position_props_css.rb
playbook_ui-13.33.1.pre.alpha.PLAY14143340 lib/playbook/position_props_css.rb
playbook_ui-13.33.1.pre.alpha.PLAY14143336 lib/playbook/position_props_css.rb
playbook_ui-13.33.1.pre.alpha.PLAY14063320 lib/playbook/position_props_css.rb
playbook_ui-13.33.1 lib/playbook/position_props_css.rb