From 05af0130eb741b82829a1b5adf5b658c557371f9 Mon Sep 17 00:00:00 2001 From: Stefan Keim Date: Thu, 18 Jul 2024 08:42:53 +0200 Subject: [PATCH] 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 --- scss/themes/default/_styles.scss | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/scss/themes/default/_styles.scss b/scss/themes/default/_styles.scss index e2687e98..f7501faa 100644 --- a/scss/themes/default/_styles.scss +++ b/scss/themes/default/_styles.scss @@ -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") {