npmgraph / npmgraph

A tool for exploring NPM modules and dependencies
https://npmgraph.js.org
MIT License
518 stars 34 forks source link

Sass deprecation warnings #255

Closed fregante closed 2 months ago

fregante commented 3 months ago

npm start produces:

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

    ╷
3   │ ┌   @media (prefers-color-scheme: dark) {
4   │ │     --selectable: #fc9;
5   │ │   }
    │ └─── nested rule
... │
7   │     cursor: default;
    │     ^^^^^^^^^^^^^^^ declaration
    ╵
    components/Selectable.module.scss 7: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

    ╷
3   │ ┌   @media (prefers-color-scheme: dark) {
4   │ │     --selectable: #fc9;
5   │ │   }
    │ └─── nested rule
... │
8   │     color: var(--selectable);
    │     ^^^^^^^^^^^^^^^^^^^^^^^^ declaration
    ╵
    components/Selectable.module.scss 8: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

    ╷
3   │ ┌   @media (prefers-color-scheme: dark) {
4   │ │     --selectable: #fc9;
5   │ │   }
    │ └─── nested rule
... │
9   │     text-wrap: nowrap;
    │     ^^^^^^^^^^^^^^^^^ declaration
    ╵
    components/Selectable.module.scss 9:3  root stylesheet