fix SASS 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
This commit is contained in:
Stefan Keim 2024-07-18 08:42:53 +02:00 committed by GitHub
parent 6dc6489e69
commit 05af0130eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,16 +35,18 @@
}
}
// Borders
#{$css-var-prefix}border-radius: 0.25rem;
#{$css-var-prefix}border-width: 0.0625rem;
#{$css-var-prefix}outline-width: 0.125rem;
& {
// Borders
#{$css-var-prefix}border-radius: 0.25rem;
#{$css-var-prefix}border-width: 0.0625rem;
#{$css-var-prefix}outline-width: 0.125rem;
// Transitions
#{$css-var-prefix}transition: 0.2s ease-in-out;
// Transitions
#{$css-var-prefix}transition: 0.2s ease-in-out;
// Spacings
#{$css-var-prefix}spacing: 1rem;
// Spacings
#{$css-var-prefix}spacing: 1rem;
}
// Spacings for typography elements
@if map.get($modules, "content/typography") {