Namespace: Breakpoints:overwrite-breakpoint-for-attributes

Breakpoints:overwrite-breakpoint-for-attributes

Methods

overwrite-breakpoint-for-attributes($attributes, $factoropt)

Use this, if you need to overwrite attribute values previously defined in (a) breakpoint(s).

A use case might be, for example, to set a font-size to a static value in an element with a responsive, breakpoint-based font-size definition.

Parameters:
Name Type Attributes Default Description
$attributes Hash

keys are attribute names, while values are either plain values or hashes with breakpoint name keys, providing different values per breakpoint

$factor Number <optional>
null

if a float factor is provided all values will be multiplied with this factor

Source:
See:
Example
overwrite-breakpoint-for-attributes(
  {
    'font-size' : 12px,
    'line-height' : 1.25
    'margin-top' : 20px
  },
  2.0
)