/* * strip-unit - Unit stripper [10px = 10] * param - $num : the value with a unit suffix, E.g: 10px * return - $result : the value without any suffix, E.g: 10 * E.g. strip-unit(100px) = 100 */ /* * pxToEM - Convert PX value to EM value [100px = 6.25em] * param - $target : the value in px without 'px' suffix, E.g: 100 * return - $result : the value in em with 'em' suffix, E.g: 6.25em * E.g. pxToEM(100) = 6.25em */ /* * u - PX and REM constrictor * param - $property : css property, E.g: padding * param - $values... : list of values for the property, note values are multiplied by $pixelBase, E.g.: 10, 20, 30, 40 * return - $result : the css property with values applied in pixels * E.g. @include u(padding, 10, 20, 30, 40) = padding: 100px, 200px, 300px, 400px; */ body { background-color: black; }