Generates a list of rules for a single grid attribute based on the given grid areas.

areaBasedRules(attribute, areas, default_value, rule_callback)

Arguments

attribute

The grid attribute to generate rules for

areas

The grid areas to generate rules based on

default_value

The default css value for the size of one element

rule_callback

Function that returns a valid css value based on the default_value and the area details

Value

A list of attribute rules.