
@function if($condition, $if-value, $else-value) {
  @if ($condition == true) {
    @return $if-value;
  } @else {
    @return $else-value;
  }
}

@function ends-with($string, $find) {
  @if (str-slice($string, (str-length($string) - str-length($find) + 1)) == $find) {
    @return true;
  } @else {
    @return false;
  }
}
