Igosuki / compass-mixins

A collection of compass' stylesheet for bower dependencies and libsass
Other
592 stars 197 forks source link

it throws a deprecation warning : Slash as Division #120

Closed hiratsuka-r closed 2 years ago

hiratsuka-r commented 2 years ago

It will be my first time participating. it throws a deprecation warning... it works for now.

see: https://sass-lang.com/d/slash-div

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($base-line-height, $base-font-size) or calc($base-line-height / $base-font-size)
More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
32 │ $base-rhythm-unit: $base-line-height / $base-font-size * $font-unit;
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules/compass-mixins/lib/compass/typography/_vertical_rhythm.scss 32:20  @import
    node_modules/compass-mixins/lib/compass/_typography.scss 4:9                    @import
    node_modules/compass-mixins/lib/_compass.scss 3:9                               @import

You can avoid it by doing this for the time being.

$base-rhythm-unit: calc($base-line-height / $base-font-size) * $font-unit

node version : v16.14.2