You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
color: red; // ❌ Cannot mix declarations and nested rules. Group them together or wrap declarations in a nested "& { }" block. See https://sass-lang.com/documentation/breaking-changes/mixed-decls/
170
+
}
171
+
```
172
+
147
173
## Why this matters
148
174
149
175
This plugin ensures your Sass code adheres to modern CSS nesting behavior,
@@ -172,6 +198,12 @@ or colocate them with the code that uses them.
172
198
Alternatively, wrap declarations following `@include` statements
173
199
in a nested `& { }` block as a safe default when unsure of the mixin's contents.
174
200
201
+
**Use `contain-nested` option:**
202
+
203
+
This option can be used to list mixins that are known to contain nested rules,
204
+
so that the plugin can treat them accordingly,
205
+
even if their definition is not present in the file they are used.
206
+
175
207
## Please contribute!
176
208
177
209
We welcome contributions! If you find a bug or something missing,
mixed: 'Cannot mix declarations and nested rules. Group them together or wrap declarations in a nested "& { }" block. See https://sass-lang.com/documentation/breaking-changes/mixed-decls/'
0 commit comments