You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
@mixin toast-icon($content) {
|
|
@include fa-icon();
|
|
margin: 2px 5px 0 0;
|
|
content: $content;
|
|
}
|
|
|
|
@mixin toast-variant($color) {
|
|
background-color: rgba(theme-color-level($color, $alert-bg-level), .95);
|
|
color: theme-color-level($color, $alert-color-level);
|
|
.toast-header {
|
|
color: theme-color-level($color, $alert-color-level);
|
|
}
|
|
}
|
|
|
|
.toast {
|
|
border-radius: $toast-border-radius;
|
|
|
|
&.toast-success {
|
|
@include toast-variant('success');
|
|
.toast-body:before {
|
|
@include toast-icon($fa-var-check-circle);
|
|
}
|
|
}
|
|
|
|
&.toast-danger {
|
|
@include toast-variant('danger');
|
|
.toast-body:before {
|
|
@include toast-icon($fa-var-times-circle);
|
|
}
|
|
}
|
|
|
|
&.toast-info {
|
|
@include toast-variant('info');
|
|
.toast-body:before {
|
|
@include toast-icon($fa-var-info-circle);
|
|
}
|
|
}
|
|
|
|
&.toast-warning {
|
|
@include toast-variant('warning');
|
|
.toast-body:before {
|
|
@include toast-icon($fa-var-exclamation-circle);
|
|
}
|
|
}
|
|
|
|
.close {
|
|
color: inherit;
|
|
}
|
|
}
|
|
|