Sha256: 49e3115e466788d0b4bc7f0b63e97bb44c15c5a8ca3fce44f54d5f22d8a703bc

Contents?: true

Size: 1.95 KB

Versions: 769

Compression:

Stored size: 1.95 KB

Contents

# frozen_string_literal: true

module Playbook
  module PbCard
    class CardBody < Playbook::KitBase
      def classname
        generate_classname("pb_card_body_kit", flex_direction, justify_content, flex_wrap, justify_self, align_items, align_content, align_self, flex, flex_grow, flex_shrink, order, separator: " ")
      end

      def body_padding
        "" if padding.present?
      end

      def body_flex_direction
        if flex_direction.present?
          "flex_direction_#{flex_direction}"
        else
          ""
        end
      end

      def body_flex_wrap
        if flex_wrap.present?
          "flex_wrap_#{flex_wrap}"
        else
          ""
        end
      end

      def body_justify_content
        if justify_content.present?
          "justify_content_#{justify_content}"
        else
          ""
        end
      end

      def body_justify_self
        if justify_self.present?
          "justify_self_#{justify_self}"
        else
          ""
        end
      end

      def body_align_items
        if align_items.present?
          "align_items_#{align_items}"
        else
          ""
        end
      end

      def body_align_content
        if align_content.present?
          "align_content_#{align_content}"
        else
          ""
        end
      end

      def body_align_self
        if align_self.present?
          "align_self_#{align_self}"
        else
          ""
        end
      end

      def body_flex
        if flex.present?
          "flex_#{flex}"
        else
          ""
        end
      end

      def body_flex_grow
        if flex_grow.present?
          "flex_grow_#{flex_grow}"
        else
          ""
        end
      end

      def body_flex_shrink
        if flex_shrink.present?
          "flex_shrink_#{flex_shrink}"
        else
          ""
        end
      end

      def body_order
        if order.present?
          "order_#{order}"
        else
          ""
        end
      end
    end
  end
end

Version data entries

769 entries across 769 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.rc.23 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.22 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.21 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.20 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.19 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.18 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.17 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.16 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/pb_card/card_body.rb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/pb_card/card_body.rb