Coffeekraken.io 0.0.1

s-position

Return the representation of a position styling like position:absolute; top:0; left:100%; etc... This function gives you some shortcuts to align your element top, bottom, middle, center, etc...

Name Type Description Status Default
$position { String } The position css property optional absolute
$vertical-align { String } The vertical alignement wanted (top,middle,bottom) optional top
$align { String } The horizontal alignement wanted (left,center,right) optional left
$top { Number } The top property wanted optional null
$right { Number } The right property wanted optional null
$bottom { Number } The bottom property wanted optional null
$left { Number } The left property wanted optional null

Return { Map } The map representation of the position wanted

Example

    s-position(absolute, top, right);
s-position(absolute, middle, center);
s-position(relative, bottom, right);
s-position(absolute, bottom, center);
// etc...

Author : Olivier Bossel olivier.bossel@gmail.com