Namespace: Breakpoints:attribute-for-breakpoints

Breakpoints:attribute-for-breakpoints

Methods

attribute-for-breakpoints($attribute, $value, $factoropt)

Renders attribute values for given attribute for defined breakpoints.

This is the single attribute version of attributes-for-breakpoints. Since this version does not optimize the usage of media queries, please make sure to only use this mixin, if you'll definitely only have one attribute to be defined in multiple breakpoints.

Parameters:
Name Type Attributes Default Description
$attribute String

the name of the attribute you want to set

$value *

the value to set the attribute to

$factor Number <optional>
null

if a float factor is provided the value will be multiplied with this factor

Source:
See:
Example
attribute-for-breakpoints(
  'line-height',
  {
    'small' : 1,
    'large' : 1.25
  },
  1.0
)