scss fix for build

&.bg-#{$name} { -> #{if(&, '&.bg-#{$name}','.bg-#{$name}')} {
pull/5715/head
Mohammad Zaid Pathan 2024-09-28 00:22:25 +05:30
parent a6a1fd3341
commit 2003c99a97
1 changed files with 3 additions and 5 deletions

View File

@ -4,10 +4,9 @@
// Toast Variant // Toast Variant
@mixin toast-variant($name, $color) { @mixin toast-variant($name, $color) {
&.bg-#{$name} { #{if(&, '&.bg-#{$name}','.bg-#{$name}')} {
background-color: rgba($color, .9) !important; background-color: rgba($color, 0.9) !important;
@if (color-yiq($color) == $yiq-text-light) { @if (color-yiq($color) == $yiq-text-light) {
.close { .close {
color: color-yiq($color); color: color-yiq($color);
text-shadow: 0 1px 0 $black; text-shadow: 0 1px 0 $black;
@ -15,9 +14,8 @@
} }
.toast-header { .toast-header {
background-color: rgba($color, .85); background-color: rgba($color, 0.85);
color: color-yiq($color); color: color-yiq($color);
} }
} }
} }