jekyll / minima

Minima is a one-size-fits-all Jekyll theme for writers.
https://jekyll.github.io/minima/
MIT License
3.4k stars 3.62k forks source link

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

Closed bjpcjp closed 3 weeks ago

bjpcjp commented 2 months ago

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.

edspresso commented 2 months ago

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.

MichaelRWolf commented 1 month ago

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
CodeAsm commented 1 month ago

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?

ashmaroli commented 3 weeks ago

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