Namespace: Breakpoints:set-auto-breakpoint

Breakpoints:set-auto-breakpoint

Methods

set-auto-breakpoint($breakpoint)

Sets the auto breakpoint to a named breakpoint value. Hint: in Stylus we have to do this manually, if we want to use auto breakpoint values, since blocks are always evaluated before the block mixin around the block, which results in the block only knowing the breakpoint before the mixin.

Parameters:
Name Type Description
$breakpoint String

a named breakpoint defined in the jig config

Source:
See:
Throws:

error if breakpoint is unknown

Example
set-auto-breakpoint(medium)
+breakpoint(medium)
  ...