Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0 [duplicate]

Using / to make divisions outside of calc function won’t be supported anymore. Here is an overview of the reason why form the documentation:

Sass currently treats / as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given / will mean, and makes it hard to work with new CSS features that use / as a separator.

You should either use math.div from sass:math, as an example like so:

@use "sass:math";

body {
  font-size: math.div(50, 16) * 1px;
}

Or use / inside calc, as an example like so:

body {
  font-size: calc(50 / 16) * 1px;
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)