2 Deprecation warning in `minima/_layout.scss` file about "mixed-decls" issue.
KarlHeitmann opened this issue · 1 comments
KarlHeitmann commented
Description
I've started a brand new Jekyl project using minima
theme, and changed my Gemfile
to target the current minima master branch version (3.0.0.dev) and got a Deprecation warning.
I've investigated a little bit the issue on my project and found out the problem is in this repo.
Below I'll write the ruby version I'm using and the gem versions:
Deprecation message:
Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.
More info: https://sass-lang.com/d/mixed-decls
╷
83 │ ┌ &:not(:last-child) {
84 │ │ margin-right: 0;
85 │ │ }
│ └─── nested rule
86 │ margin-left: 20px;
│ ^^^^^^^^^^^^^^^^^ declaration
╵
minima/_layout.scss 86:5 @import
minima/initialize.scss 48:3 @import
/assets/css/style.scss 3:3 root stylesheet
Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.
More info: https://sass-lang.com/d/mixed-decls
╷
111 │ ┌ &:not(:last-child) {
112 │ │ margin-right: 20px;
113 │ │ }
│ └─── nested rule
114 │ margin-left: auto;
│ ^^^^^^^^^^^^^^^^^ declaration
╵
minima/_layout.scss 114:7 @import
minima/initialize.scss 48:3 @import
/assets/css/style.scss 3:3 root stylesheet
done in 0.338 seconds.
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
jekyll (4.3.3)
minima
: currentmaster
branch, HEAD pointing to commit1d5286cf9a1aae34078420d183d560dd673d98b5
Proposal
I've discovered the problem, I'll propose a PR to fix it.