sass/script/functions

Sass Functions

abs($number)

Returns the absolute value of a number.

Examples:

abs(10px) => 10px
abs(-10px) => 10px

Parameters:

  • $number (Number)

Returns:

  • (Number)

Raises:

  • (ArgumentError) if $number isn’t a number

adjust_color($color, [$red], [$green], [$blue],