Coffeekraken.io 0.0.1

s-render-round-odd

Return the passed values in the same unit but that has been odd rounded on the corresponding px value This ensure that your passed value will be a round px value for final rander in the viewport

Name Type Description Status Default
$value { Number } The value to process required

Return { Number } The rounded value in same input unit but px rounded

Example

    // if settings.typography.font-size == 16px
s-render-round-odd(5.2rem);
// 1. transform to px values : 5.2 * 16px = 83.2px
// 2. round odd the px value : 83px
// 3. transform to passed unit value : 84px / 16px = 5.1875rem

Author : Olivier Bossel olivier.bossel@gmail.com