Skip to content

[Bug]: deprecation of slash character as division #191

@DonVito1982

Description

@DonVito1982

Summary

Sass deprecated the use of the slash character / as division sign in 1.3.3 and such use of the character will be removed in Sass 2.0.0. See Breaking changes announcement. Therefore *.scss files should be updated accordingly

To Reproduce

Steps to reproduce the behaviour:

  1. Serve a jekyll blog that uses alembic as remote theme
  2. Confirm that deprecation warnings appear while building the site

Expected behaviour

The site should be built without warnings.

Sample warning

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

Recommendation: math.div($get-size, nth($sizes, 1)) or calc($get-size / nth($sizes, 1))

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

    ╷
197 │       font-size: #{$get-size / nth($sizes, 1)}rem;
    │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    /tmp/jekyll-remote-theme-20231114-921773-fxtmqz/_sass/sassline-base/_mixins.scss 197:20       fontsize()
    /tmp/jekyll-remote-theme-20231114-921773-fxtmqz/_sass/sassline-base/_typography.scss 14:3     @import
    /tmp/jekyll-remote-theme-20231114-921773-fxtmqz/_sass/_sassline-base.scss 6:9                 @import
    alembic.scss 7:3                                                                              @import

Environment

  • Ruby version: [e.g. 3.1.2]
  • Jekyll version: [e.g. 4.1.0]
  • Theme version: [e.g. 4.1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions