Skip to content

Sass >= 1.77.7 warnings #123

@tagliala

Description

@tagliala

⚠️ ArcticAdmin is a simple gem, if you found a bug, you can easily fix it and make a pull-request. 🙏 Thanks !

Describe the bug

There are warnings when compiling against Sass >= 1.77.7

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Install Sass npm install -g sass@1.77.7 (# Or .8)
  3. npx sass src/scss/_main.scss
  4. See error

Expected behavior
No warnings

Actual behavior

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

   ┌──> src/scss/_buttons.scss
3  │     padding: 5px 8px;
   │     ^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> src/scss/mixins/_buttons_mixins.scss
34 │ ┌   &:disabled {
35 │ │     background-color: $background-color;
36 │ │   }
   │ └─── nested rule
   ╵
    src/scss/_buttons.scss 3:3  @import
    src/scss/_main.scss 8:9     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

   ┌──> src/scss/_buttons.scss
4  │     font-size: 16px;
   │     ^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> src/scss/mixins/_buttons_mixins.scss
34 │ ┌   &:disabled {
35 │ │     background-color: $background-color;
36 │ │   }
   │ └─── nested rule
   ╵
    src/scss/_buttons.scss 4:3  @import
    src/scss/_main.scss 8:9     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

   ┌──> src/scss/components/_comments.scss
35 │           padding: 2px 9px;
   │           ^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> src/scss/mixins/_buttons_mixins.scss
34 │ ┌   &:disabled {
35 │ │     background-color: $background-color;
36 │ │   }
   │ └─── nested rule
   ╵
    src/scss/components/_comments.scss 35:9  @import
    src/scss/_main.scss 12:9                 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

   ┌──> src/scss/components/_comments.scss
36 │           font-size: 12px;
   │           ^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> src/scss/mixins/_buttons_mixins.scss
34 │ ┌   &:disabled {
35 │ │     background-color: $background-color;
36 │ │   }
   │ └─── nested rule
   ╵
    src/scss/components/_comments.scss 36:9  @import
    src/scss/_main.scss 12:9                 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

   ┌──> src/scss/components/_comments.scss
37 │           float: right;
   │           ^^^^^^^^^^^^ declaration
   ╵
   ┌──> src/scss/mixins/_buttons_mixins.scss
34 │ ┌   &:disabled {
35 │ │     background-color: $background-color;
36 │ │   }
   │ └─── nested rule
   ╵
    src/scss/components/_comments.scss 37:9  @import
    src/scss/_main.scss 12:9                 root stylesheet

Warning: 31 repetitive deprecation warnings omitted.
Run in verbose mode to see all warnings.

Screenshots
n/a

Desktop (please complete the following information):
n/a

Smartphone (please complete the following information):
n/a

Gemfile
n/a

Additional context
Ref: twbs/bootstrap#40621

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions