2017-07-03 19:09:28 -04:00
|
|
|
.toast {
|
2022-03-17 17:48:36 -04:00
|
|
|
// scss-docs-start toast-css-vars
|
|
|
|
--#{$prefix}toast-padding-x: #{$toast-padding-x};
|
|
|
|
--#{$prefix}toast-padding-y: #{$toast-padding-y};
|
|
|
|
--#{$prefix}toast-max-width: #{$toast-max-width};
|
|
|
|
@include rfs($toast-font-size, --#{$prefix}toast-font-size);
|
|
|
|
--#{$prefix}toast-color: #{$toast-color}; // stylelint-disable-line custom-property-empty-line-before
|
|
|
|
--#{$prefix}toast-bg: #{$toast-background-color};
|
|
|
|
--#{$prefix}toast-border-width: #{$toast-border-width};
|
|
|
|
--#{$prefix}toast-border-color: #{$toast-border-color};
|
|
|
|
--#{$prefix}toast-border-radius: #{$toast-border-radius};
|
|
|
|
--#{$prefix}toast-box-shadow: #{$toast-box-shadow};
|
|
|
|
--#{$prefix}toast-header-color: #{$toast-header-color};
|
|
|
|
--#{$prefix}toast-header-bg: #{$toast-header-background-color};
|
|
|
|
--#{$prefix}toast-header-border-color: #{$toast-header-border-color};
|
|
|
|
// scss-docs-end toast-css-vars
|
|
|
|
|
|
|
|
width: var(--#{$prefix}toast-max-width);
|
2020-11-29 09:22:15 -05:00
|
|
|
max-width: 100%;
|
2019-02-07 17:32:05 -05:00
|
|
|
@include font-size($toast-font-size);
|
2022-03-17 17:48:36 -04:00
|
|
|
color: var(--#{$prefix}toast-color);
|
2020-11-29 09:22:15 -05:00
|
|
|
pointer-events: auto;
|
2022-03-17 17:48:36 -04:00
|
|
|
background-color: var(--#{$prefix}toast-bg);
|
2017-07-03 19:09:28 -04:00
|
|
|
background-clip: padding-box;
|
2022-03-17 17:48:36 -04:00
|
|
|
border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
|
|
|
|
box-shadow: var(--#{$prefix}toast-box-shadow);
|
|
|
|
@include border-radius(var(--#{$prefix}toast-border-radius));
|
2017-07-03 19:09:28 -04:00
|
|
|
|
2021-07-22 11:13:13 -04:00
|
|
|
&.showing {
|
2020-11-29 09:22:15 -05:00
|
|
|
opacity: 0;
|
2017-07-03 19:09:28 -04:00
|
|
|
}
|
|
|
|
|
2021-07-22 11:13:13 -04:00
|
|
|
&:not(.show) {
|
2020-11-29 09:22:15 -05:00
|
|
|
display: none;
|
2018-12-06 07:53:01 -05:00
|
|
|
}
|
2020-11-29 09:22:15 -05:00
|
|
|
}
|
2018-12-06 07:53:01 -05:00
|
|
|
|
2020-11-29 09:22:15 -05:00
|
|
|
.toast-container {
|
2022-02-25 11:49:02 -05:00
|
|
|
position: absolute;
|
|
|
|
z-index: $zindex-toast;
|
2020-11-29 09:22:15 -05:00
|
|
|
width: max-content;
|
|
|
|
max-width: 100%;
|
|
|
|
pointer-events: none;
|
2018-12-06 07:53:01 -05:00
|
|
|
|
2020-11-29 09:22:15 -05:00
|
|
|
> :not(:last-child) {
|
|
|
|
margin-bottom: $toast-spacing;
|
2018-09-19 01:00:22 -04:00
|
|
|
}
|
2018-08-23 12:31:25 -04:00
|
|
|
}
|
|
|
|
|
2017-07-03 19:09:28 -04:00
|
|
|
.toast-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-03-17 17:48:36 -04:00
|
|
|
padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
|
|
|
|
color: var(--#{$prefix}toast-header-color);
|
|
|
|
background-color: var(--#{$prefix}toast-header-bg);
|
2017-07-03 19:09:28 -04:00
|
|
|
background-clip: padding-box;
|
2022-03-17 17:48:36 -04:00
|
|
|
border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
|
|
|
|
@include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
|
2020-09-13 22:47:05 -04:00
|
|
|
|
|
|
|
.btn-close {
|
2022-03-17 17:48:36 -04:00
|
|
|
margin-right: calc(var(--#{$prefix}toast-padding-x) * -.5); // stylelint-disable-line function-disallowed-list
|
|
|
|
margin-left: var(--#{$prefix}toast-padding-x);
|
2020-09-13 22:47:05 -04:00
|
|
|
}
|
2017-07-03 19:09:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.toast-body {
|
2022-03-17 17:48:36 -04:00
|
|
|
padding: var(--#{$prefix}toast-padding-x);
|
2021-01-13 12:21:57 -05:00
|
|
|
word-wrap: break-word;
|
2017-07-03 19:09:28 -04:00
|
|
|
}
|