var-adjust()

@function var-adjust($var, $adjust: null, $operator: '+') {
  @if $adjust != null {
    @if strip-unit($adjust) != 0 {
      @return calc(#{$var} #{$operator} #{$adjust});
    }
  }
  @return $var;
}

Last updated