source: Application/ocrent/wwwroot/lib/bootstrap/scss/_toasts.scss@ f5f7c24

Last change on this file since f5f7c24 was f5f7c24, checked in by 192011 <mk.snicker@…>, 17 months ago

Initial commit

  • Property mode set to 100644
File size: 2.4 KB
Line 
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 --#{$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);
51 }
52}
53
54.toast-header {
55 display: flex;
56 align-items: center;
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);
60 background-clip: padding-box;
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 }
68}
69
70.toast-body {
71 padding: var(--#{$prefix}toast-padding-x);
72 word-wrap: break-word;
73}
Note: See TracBrowser for help on using the repository browser.