Module: Playbook::BorderRadius
- Included in:
- KitBase
- Defined in:
- lib/playbook/border_radius.rb
Constant Summary collapse
- BORDER_RADIUS_VALUES =
%w[none xs sm md lg xl rounded].freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/playbook/border_radius.rb', line 5 def self.included(base) base.prop :border_radius end |
Instance Method Details
#border_radius_options ⇒ Object
18 19 20 |
# File 'lib/playbook/border_radius.rb', line 18 def { border_radius: "border_radius" } end |
#border_radius_props ⇒ Object
11 12 13 14 15 16 |
# File 'lib/playbook/border_radius.rb', line 11 def border_radius_props value = border_radius return nil unless value "border_radius_#{value}" if BORDER_RADIUS_VALUES.include?(value) end |
#border_radius_values ⇒ Object
22 23 24 |
# File 'lib/playbook/border_radius.rb', line 22 def border_radius_values BORDER_RADIUS_VALUES end |