-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
Describe the bug
There are warnings when compiling against Sass >= 1.77.7
To Reproduce
Steps to reproduce the behavior:
- Clone the repo
- Install Sass
npm install -g sass@1.77.7(# Or.8) npx sass src/scss/_main.scss- 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
Reactions are currently unavailable