Generates all required css for the given css attribute based on the grid rules provided.

getAttributeStyle(
  attribute,
  grid_id,
  grid_areas,
  css_target,
  css_base_value,
  css_base_rule
)

Arguments

attribute

The attribute details to create rules for.

grid_id

The id of the grid the rules will affect.

grid_areas

The target grid area details.

css_target

The equivalent css attribute name.

css_base_value

The default css value for the size of one element

css_base_rule

Callback that returns a valid css value based on the css_base_value and the area details

Value

A string of value css rules.