GN.
GN.

Reputation: 9819

how do you create a custom function in Sass (not SCSS)

Lots of documentation on doing this in SCSS..

@function _em($wanted, $inherited) {
  @return ($wanted / $inherited) + 'em';
}

How would you go about this in Sass?

Upvotes: 2

Views: 228

Answers (1)

bookcasey
bookcasey

Reputation: 40433

@function _em()
  @return ($wanted / $inherited) + 'em'

Just remove the brackets and semicolons.

Upvotes: 2

Related Questions