]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use Sass variable instead of RGB components (#35017)
authorGeremia Taglialatela <tagliala@users.noreply.github.com>
Tue, 28 Sep 2021 15:18:02 +0000 (17:18 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Sep 2021 15:18:02 +0000 (18:18 +0300)
All other `rgba()` calls use a Sass variable, except for the ones fixed in this commit

scss/_variables.scss

index 3994f189751f69042694c1a653d2ae9e9d46092b..f33b804a173b6296c4b690b0cea2bf36ad5c9bd4 100644 (file)
@@ -924,7 +924,7 @@ $form-check-inline-margin-end:    1rem !default;
 // scss-docs-end form-check-variables
 
 // scss-docs-start form-switch-variables
-$form-switch-color:               rgba(0, 0, 0, .25) !default;
+$form-switch-color:               rgba($black, .25) !default;
 $form-switch-width:               2em !default;
 $form-switch-padding-start:       $form-switch-width + .5em !default;
 $form-switch-bg-image:            url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color}'/></svg>") !default;
@@ -1374,14 +1374,14 @@ $toast-font-size:                   .875rem !default;
 $toast-color:                       null !default;
 $toast-background-color:            rgba($white, .85) !default;
 $toast-border-width:                1px !default;
-$toast-border-color:                rgba(0, 0, 0, .1) !default;
+$toast-border-color:                rgba($black, .1) !default;
 $toast-border-radius:               $border-radius !default;
 $toast-box-shadow:                  $box-shadow !default;
 $toast-spacing:                     $container-padding-x !default;
 
 $toast-header-color:                $gray-600 !default;
 $toast-header-background-color:     rgba($white, .85) !default;
-$toast-header-border-color:         rgba(0, 0, 0, .05) !default;
+$toast-header-border-color:         rgba($black, .05) !default;
 // scss-docs-end toast-variables