feat(uti): Compiled CSS
[csit.git] / resources / tools / dash / app / pal / static / sass / bootstrap / _toasts.scss
1 .toast {
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);
26   background-clip: padding-box;
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));
30
31   &.showing {
32     opacity: 0;
33   }
34
35   &:not(.show) {
36     display: none;
37   }
38 }
39
40 .toast-container {
41   position: absolute;
42   z-index: var(--#{$prefix}toast-zindex);
43   width: max-content;
44   max-width: 100%;
45   pointer-events: none;
46
47   > :not(:last-child) {
48     margin-bottom: var(--#{$prefix}toast-spacing);
49   }
50 }
51
52 .toast-header {
53   display: flex;
54   align-items: center;
55   padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
56   color: var(--#{$prefix}toast-header-color);
57   background-color: var(--#{$prefix}toast-header-bg);
58   background-clip: padding-box;
59   border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
60   @include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
61
62   .btn-close {
63     margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
64     margin-left: var(--#{$prefix}toast-padding-x);
65   }
66 }
67
68 .toast-body {
69   padding: var(--#{$prefix}toast-padding-x);
70   word-wrap: break-word;
71 }