minima icon indicating copy to clipboard operation
minima copied to clipboard

_base.scss: $spacing-unit / 2 - deprecation warning

Open bjpcjp opened this issue 1 year ago • 3 comments

I spun up a new Jekyll instance and am seeing "using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.". I can edit my local copy at _base.scss.

bjpcjp avatar Jul 07 '24 14:07 bjpcjp

Hi, same for me. Previously working projects now are failing when I run bundle exec jekyll build. Please reply urgently if you have knowledge of this.

edspresso avatar Jul 19 '24 05:07 edspresso

I get these kinds of warnings every time I save a file locally.

       Regenerating: 1 file(s) changed at 2024-08-15 19:56:39
                    favicon.ico
       Jekyll Feed: Generating feed for posts
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

   ╷
40 │   margin-bottom: $spacing-unit / 2;
   │                  ^^^^^^^^^^^^^^^^^
   ╵
    ../../../../minima-2.5.1/_sass/minima/_base.scss 40:18            @import
    minima.scss 48:3                                                  @import
    /Users/michael/repos/MichaelRWolf.github.io/assets/main.scss 1: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


MichaelRWolf avatar Aug 16 '24 00:08 MichaelRWolf

I eh. found: https://talk.jekyllrb.com/t/trouble-configuring-minima-dark-theme/7048/3 actually trowing

gem "minima", git: "https://github.com/jekyll/minima"

instead of the oll gem "minima", "~> 2.5" seems to fix it?

CodeAsm avatar Aug 21 '24 15:08 CodeAsm

Minima 2.5.2 has been released to address these deprecations with Jekyll 4+

ashmaroli avatar Sep 06 '24 14:09 ashmaroli