Coffeekraken.io 0.0.1

s-filter-map

Take a filter as parameter and parse it to return the {Map} corresponding The $filter parameter can be either a registered filter name or a filter formated like filterName(filterValue)

Name Type Description Status Default
$filter { List } The registered filter name or the filter string to transform into map required

Return { Map } The corresponding filter map properties

Example

    // register a filter
@include s-setup((
        filters : (
            myCoolFilter : box-shadow(#000 0 0 10px) blur(30px),
            // other filters...
        )
));

// registered filter
s-filter-map(myCoolFilter);
// {
//     box-shadow : #000 0 0 10px,
//     blur : 30px
// }

// custom filter
s-filter-map(blur(10px));
// {
//     blur : 10px
// }

Author : Olivier Bossel olivier.bossel@gmail.com