ilios / iliosproject.org

Ilios Project Website
http://www.iliosproject.org
MIT License
2 stars 7 forks source link

fix style-related deprecation warnings #219

Closed stopfstedt closed 6 months ago

stopfstedt commented 6 months ago

i'm seeing these after the Ruby v3.3.0 upgrade:

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

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
35 │     margin-bottom: $spacing-unit / 2;
   │                    ^^^^^^^^^^^^^^^^^
   ╵
    _base.scss 35:20             @import
    /srv/app/css/main.scss 47:9  root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
114 │     padding-left: $spacing-unit / 2;
    │                   ^^^^^^^^^^^^^^^^^
    ╵
    _base.scss 114:19            @import
    /srv/app/css/main.scss 47:9  root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
169 │         padding-right: $spacing-unit / 2;
    │                        ^^^^^^^^^^^^^^^^^
    ╵
    _base.scss 169:24            @content
    /srv/app/css/main.scss 38:9  media-query()
    _base.scss 166:5             @import
    /srv/app/css/main.scss 47:9  root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
170 │         padding-left: $spacing-unit / 2;
    │                       ^^^^^^^^^^^^^^^^^
    ╵
    _base.scss 170:23            @content
    /srv/app/css/main.scss 38:9  media-query()
    _base.scss 166:5             @import
    /srv/app/css/main.scss 47:9  root stylesheet
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacing-unit, 2) or calc($spacing-unit / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
132 │     margin-bottom: $spacing-unit / 2;
    │                    ^^^^^^^^^^^^^^^^^
    ╵
    _layout.scss 132:20          @import
    /srv/app/css/main.scss 48:9  root stylesheet
Warning: 3 repetitive deprecation warnings omitted.