Module: BulmaX::Shared::FlexOptions::ClassMethods
- Defined in:
- lib/bulma_x/shared/flex_options.rb
Instance Method Summary collapse
-
#flex_options ⇒ Object
rubocop:disable Metrics/MethodLength, Metrics/AbcSize.
Instance Method Details
#flex_options ⇒ Object
rubocop:disable Metrics/MethodLength, Metrics/AbcSize
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/bulma_x/shared/flex_options.rb', line 8 def option :flex, values: self::BOOLEAN, default: false option :flex_direction, values: [nil, :row, :row_reverse, :column, :column_reverse] option :flex_wrap, values: [nil, :wrap, :nowrap, :wrap_reverse] option :flex_justify_content, values: [nil, :flex_start, :flex_end, :center, :space_between, :space_around, :space_evenly, :start, :end, :left, :right] option :flex_align_content, values: [ nil, :flex_start, :flex_end, :center, :space_between, :space_around, :space_evenly, :stretch, :start, :end, :baseline ] option :flex_align_items, values: [ nil, :stretch, :flex_start, :flex_end, :center, :baseline, :start, :end, :self_start, :self_end ] option :flex_align_self, values: [nil, :auto, :stretch, :flex_start, :flex_end, :center, :baseline] option :flex_grow, values: (0..5).to_a.push(nil).freeze option :flex_shrink, values: (0..5).to_a.push(nil).freeze option :flex_gap, values: (1..8).to_a.push(nil).freeze end |