SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
50 stars 8 forks source link

Custom functions in Sass functions #35

Closed sandrojohanides closed 5 years ago

sandrojohanides commented 5 years ago

See strip(), only seems to happen in native Sass functions (if()).

screen shot 2018-11-26 at 10 34 58

@function size($size, $base: $base-font-size, $unit: null) {
    @return if(
        $unit == 'px',
        strip($size) * strip($base),
        strip($size) / strip($base) + 0.00001
    );
}