Global

Methods


evaluateBp(bp, activeBps)

Check if a string is a representation of an active breakpoint.

Parameters:
Name Type Description
bp String

A string representing a breakpoint in the format generated by JigSass MQ and extracted from CSS.

activeBps Object

A JSON-like object extracted from CSS, declaring if a given breakpoint is currently active or inactive.

Returns:
  • Indicates if the breakpoint is currently active.
Type
Bollean

parseBpsState(selector)

Convert a JSON-like string of breakpoint state generated by JigSass MQ into an object.

Parameters:
Name Type Description
selector String

A selector for the element to which the string is attached.

Returns:
  • A JSON-like object with data about currently active breakpoints.
Type
Object

removeQuotes(string)

Function by Les James to intelligently remove quotes from strings coming from CSS. from https://css-tricks.com/making-sass-talk-to-javascript-with-json

Parameters:
Name Type Description
string String

The string to unquote.

Returns:
  • The unquoted string.
Type
String