Coffeekraken.io 0.0.1

s-margin

Parse and return the Map respresentation of a margin property The $margin argument will be parsed with the s-parse-properties function.

Name Type Description Status Default
$margin { List , Number } The margin property to parse required

Return { Map } The map representation

Example

    s-margin(10px); // => ( top:10px, right:10px, bottom:10px, left:10px )
s-margin(10px 20px); // => ( top:10px, right:20px, bottom:10px, left:20px )
s-margin(5px 10px 15px 20px); // => ( top:5px, right:10px, bottom:15px, left:20px )

Author : Olivier Bossel olivier.bossel@gmail.com