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-14.10.0.pre.rc.23 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.22 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.21 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.20 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.19 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.18 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.17 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.16 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.play17004992 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.15 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PLAY16264952 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.14 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.13 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 lib/playbook/position_props_css.rb