]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix deprecation warning with sass 1.56.0 (#37425)
authorSebastian Blank <sebastian.bl@gmx.de>
Fri, 4 Nov 2022 13:44:11 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2022 13:44:11 +0000 (14:44 +0100)
Deprecation Warning: $weight: Passing a number without unit % (100) is deprecated.
To preserve current behavior: $weight * 1%
More info: https://sass-lang.com/d/function-units

scss/_functions.scss

index 969a4b08bf1414bccd154a78d17f70b28fe836b2..26c953bae21003c2f4f4f7b396635d40abebbd55 100644 (file)
@@ -198,7 +198,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
 // Return opaque color
 // opaque(#fff, rgba(0, 0, 0, .5)) => #808080
 @function opaque($background, $foreground) {
-  @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
+  @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
 }
 
 // scss-docs-start color-functions