2020-05-19 16:53:54 +00:00
|
|
|
.toast {
|
2021-07-07 11:12:38 +00:00
|
|
|
width: $toast-max-width;
|
|
|
|
max-width: 100%;
|
2020-05-19 16:53:54 +00:00
|
|
|
@include font-size($toast-font-size);
|
|
|
|
color: $toast-color;
|
2021-07-07 11:12:38 +00:00
|
|
|
pointer-events: auto;
|
2020-05-19 16:53:54 +00:00
|
|
|
background-color: $toast-background-color;
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: $toast-border-width solid $toast-border-color;
|
|
|
|
box-shadow: $toast-box-shadow;
|
|
|
|
@include border-radius($toast-border-radius);
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
&:not(.showing):not(.show) {
|
|
|
|
opacity: 0;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
&.hide {
|
|
|
|
display: none;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
2021-07-07 11:12:38 +00:00
|
|
|
}
|
2020-05-19 16:53:54 +00:00
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
.toast-container {
|
|
|
|
width: max-content;
|
|
|
|
max-width: 100%;
|
|
|
|
pointer-events: none;
|
2020-05-19 16:53:54 +00:00
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
> :not(:last-child) {
|
|
|
|
margin-bottom: $toast-spacing;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: $toast-padding-y $toast-padding-x;
|
|
|
|
color: $toast-header-color;
|
|
|
|
background-color: $toast-header-background-color;
|
|
|
|
background-clip: padding-box;
|
|
|
|
border-bottom: $toast-border-width solid $toast-header-border-color;
|
2020-11-06 13:16:40 +00:00
|
|
|
@include border-top-radius(subtract($toast-border-radius, $toast-border-width));
|
2021-07-07 11:12:38 +00:00
|
|
|
|
|
|
|
.btn-close {
|
|
|
|
margin-right: $toast-padding-x * -.5;
|
|
|
|
margin-left: $toast-padding-x;
|
|
|
|
}
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toast-body {
|
|
|
|
padding: $toast-padding-x; // apply to both vertical and horizontal
|
2021-07-07 11:12:38 +00:00
|
|
|
word-wrap: break-word;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|