Module: BulmaX::Shared::TextOptions

Included in:
BaseComponent
Defined in:
lib/bulma_x/shared/text_options.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
# File 'lib/bulma_x/shared/text_options.rb', line 17

def self.included(base) = base.extend(ClassMethods)

Instance Method Details

#text_classesObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/bulma_x/shared/text_options.rb', line 19

def text_classes
  [
    @text_modifier && "has-text-#{@text_modifier}",
    @text_alignment && "has-text-#{@text_alignment}",
    @text_transform && "is-#{@text_transform}",
    @text_weight && "has-text-weight-#{@text_weight}",
    @text_family && "is-family-#{@text_family}",
    @text_size && "is-size-#{@text_size}"
  ]
end