css()
Creates a CSS stylesheet from an JSON representation of a stylesheet.
This function is valid in v2.1.0 to v2.18.1. This function has been downloaded 27 times."@media "
. Property names will be used as rule selectors if the value is an object. If a property name is to be used as a selector, if any selectors don't contain &
, "& "
will be prepended to it. For all selectors, &
will be replaced recursively with the selectors found in the parent. CSS property names will be uncamelcased by inserting dashes before each uppercased character and lower casing all characters. If a value is null
or undefined
, it will be turned into "none"
. If a value is a number other than 0
, "px"
will be appended to it. If a value is an array all of the items will be concatenated together, using ","
to delimit the values. If a value ends with !
it will be replaced with "!important"
.This function directly requires the following functions which are included automatically:
has()
typeOf()