| 1 |
efrain |
1 |
.toast {
|
| 1441 |
ariadna |
2 |
// scss-docs-start toast-css-vars
|
|
|
3 |
--#{$prefix}toast-zindex: #{$zindex-toast};
|
|
|
4 |
--#{$prefix}toast-padding-x: #{$toast-padding-x};
|
|
|
5 |
--#{$prefix}toast-padding-y: #{$toast-padding-y};
|
|
|
6 |
--#{$prefix}toast-spacing: #{$toast-spacing};
|
|
|
7 |
--#{$prefix}toast-max-width: #{$toast-max-width};
|
|
|
8 |
@include rfs($toast-font-size, --#{$prefix}toast-font-size);
|
|
|
9 |
--#{$prefix}toast-color: #{$toast-color};
|
|
|
10 |
--#{$prefix}toast-bg: #{$toast-background-color};
|
|
|
11 |
--#{$prefix}toast-border-width: #{$toast-border-width};
|
|
|
12 |
--#{$prefix}toast-border-color: #{$toast-border-color};
|
|
|
13 |
--#{$prefix}toast-border-radius: #{$toast-border-radius};
|
|
|
14 |
--#{$prefix}toast-box-shadow: #{$toast-box-shadow};
|
|
|
15 |
--#{$prefix}toast-header-color: #{$toast-header-color};
|
|
|
16 |
--#{$prefix}toast-header-bg: #{$toast-header-background-color};
|
|
|
17 |
--#{$prefix}toast-header-border-color: #{$toast-header-border-color};
|
|
|
18 |
// scss-docs-end toast-css-vars
|
|
|
19 |
|
|
|
20 |
width: var(--#{$prefix}toast-max-width);
|
|
|
21 |
max-width: 100%;
|
|
|
22 |
@include font-size(var(--#{$prefix}toast-font-size));
|
|
|
23 |
color: var(--#{$prefix}toast-color);
|
|
|
24 |
pointer-events: auto;
|
|
|
25 |
background-color: var(--#{$prefix}toast-bg);
|
| 1 |
efrain |
26 |
background-clip: padding-box;
|
| 1441 |
ariadna |
27 |
border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
|
|
|
28 |
box-shadow: var(--#{$prefix}toast-box-shadow);
|
|
|
29 |
@include border-radius(var(--#{$prefix}toast-border-radius));
|
| 1 |
efrain |
30 |
|
|
|
31 |
&.showing {
|
| 1441 |
ariadna |
32 |
opacity: 0;
|
| 1 |
efrain |
33 |
}
|
|
|
34 |
|
| 1441 |
ariadna |
35 |
&:not(.show) {
|
|
|
36 |
display: none;
|
| 1 |
efrain |
37 |
}
|
| 1441 |
ariadna |
38 |
}
|
| 1 |
efrain |
39 |
|
| 1441 |
ariadna |
40 |
.toast-container {
|
|
|
41 |
--#{$prefix}toast-zindex: #{$zindex-toast};
|
|
|
42 |
|
|
|
43 |
position: absolute;
|
|
|
44 |
z-index: var(--#{$prefix}toast-zindex);
|
|
|
45 |
width: max-content;
|
|
|
46 |
max-width: 100%;
|
|
|
47 |
pointer-events: none;
|
|
|
48 |
|
|
|
49 |
> :not(:last-child) {
|
|
|
50 |
margin-bottom: var(--#{$prefix}toast-spacing);
|
| 1 |
efrain |
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
.toast-header {
|
|
|
55 |
display: flex;
|
|
|
56 |
align-items: center;
|
| 1441 |
ariadna |
57 |
padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
|
|
|
58 |
color: var(--#{$prefix}toast-header-color);
|
|
|
59 |
background-color: var(--#{$prefix}toast-header-bg);
|
| 1 |
efrain |
60 |
background-clip: padding-box;
|
| 1441 |
ariadna |
61 |
border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
|
|
|
62 |
@include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
|
|
|
63 |
|
|
|
64 |
.btn-close {
|
|
|
65 |
margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
|
|
|
66 |
margin-left: var(--#{$prefix}toast-padding-x);
|
|
|
67 |
}
|
| 1 |
efrain |
68 |
}
|
|
|
69 |
|
|
|
70 |
.toast-body {
|
| 1441 |
ariadna |
71 |
padding: var(--#{$prefix}toast-padding-x);
|
|
|
72 |
word-wrap: break-word;
|
| 1 |
efrain |
73 |
}
|