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.33.0.pre.alpha.PLAY14143318 lib/playbook/position_props_css.rb
playbook_ui-13.33.0.pre.alpha.PLAY14143312 lib/playbook/position_props_css.rb
playbook_ui-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 lib/playbook/position_props_css.rb
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 lib/playbook/position_props_css.rb
playbook_ui-13.33.0.pre.alpha.PLAY14143306 lib/playbook/position_props_css.rb
playbook_ui-13.33.0.pre.alpha.PLAY14143305 lib/playbook/position_props_css.rb
playbook_ui-13.33.0 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143297 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143288 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143272 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143271 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143267 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143264 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143260 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143255 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.PLAY14143251 lib/playbook/position_props_css.rb
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 lib/playbook/position_props_css.rb