1 |
|
2 |
|
3 | $toaster-default: #030303 !default;
|
4 | $toaster-success: #51a351 !default;
|
5 | $toaster-error: #bd362f !default;
|
6 | $toaster-info: #2f96b4 !default;
|
7 | $toaster-wait: #2f96b4 !default;
|
8 | $toaster-warning: #f89406 !default;
|
9 |
|
10 | $toaster-text-color: #ffffff !default;
|
11 |
|
12 | $toaster-colors: () !default;
|
13 | $toaster-colors: map-merge((
|
14 | "success": $toaster-success,
|
15 | "error": $toaster-error,
|
16 | "info": $toaster-info,
|
17 | "wait": $toaster-wait,
|
18 | "warning": $toaster-warning
|
19 | ), $toaster-colors);
|
20 |
|
21 | $toaster-icon-success: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==" !default;
|
22 | $toaster-icon-error: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr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QPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=" !default;
|
26 |
|
27 | $toaster-icons: () !default;
|
28 | $toaster-icons: map-merge((
|
29 | "success": $toaster-icon-success,
|
30 | "error": $toaster-icon-error,
|
31 | "info": $toaster-icon-info,
|
32 | "wait": $toaster-icon-wait,
|
33 | "warning": $toaster-icon-warning
|
34 | ), $toaster-icons);
|
35 |
|
36 | $toaster-margin: 12px !default;
|
37 |
|
38 |
|
39 | .toast {
|
40 | display: flex;
|
41 | flex-direction: row;
|
42 | align-content: center;
|
43 | justify-content: center;
|
44 | position: relative;
|
45 | background-color: $toaster-default;
|
46 | }
|
47 |
|
48 | @each $color, $value in $toaster-colors {
|
49 | .toast-#{$color} {
|
50 | background-color: $value;
|
51 | }
|
52 | }
|
53 |
|
54 | @each $color, $value in $toaster-icons {
|
55 | .icon-#{$color} {
|
56 | background-repeat: no-repeat;
|
57 | background-image: url($value) !important;
|
58 | }
|
59 | }
|
60 |
|
61 | .toaster-icon {
|
62 | font-weight: normal;
|
63 | color: $toaster-text-color;
|
64 | }
|
65 |
|
66 | .toast-content {
|
67 | flex-grow: 1;
|
68 | padding: 15px 15px 15px 50px;
|
69 | }
|
70 |
|
71 | .toast-title {
|
72 | font-weight: bold;
|
73 | }
|
74 |
|
75 | .toast-message {
|
76 | word-wrap: break-word;
|
77 |
|
78 | & a,
|
79 | & label {
|
80 | color: $toaster-text-color;
|
81 | }
|
82 |
|
83 | & a:hover {
|
84 | color: #cccccc;
|
85 | text-decoration: none;
|
86 | }
|
87 | }
|
88 |
|
89 | .toast-close-button {
|
90 | align-self: flex-start;
|
91 | padding: 3px;
|
92 | font-size: 23px;
|
93 | line-height: 90%;
|
94 | font-weight: bold;
|
95 | color: $toaster-text-color;
|
96 | text-shadow: 0 1px 0 $toaster-text-color;
|
97 | opacity: 0.7;
|
98 | z-index: 999;
|
99 | cursor: pointer;
|
100 | background: transparent;
|
101 | border: 0;
|
102 |
|
103 | &:hover,
|
104 | &:focus {
|
105 | color: #000000;
|
106 | text-decoration: none;
|
107 | cursor: pointer;
|
108 | opacity: 0.4;
|
109 | border: none;
|
110 | }
|
111 |
|
112 | span {
|
113 | display: flex;
|
114 | flex-direction: column;
|
115 | align-items: flex-start;
|
116 | }
|
117 | }
|
118 |
|
119 | .toast-progress-bar {
|
120 | position: absolute;
|
121 | left: 0;
|
122 | bottom: 0;
|
123 | height: 4px;
|
124 | background-color: #000000;
|
125 | opacity: 0.4;
|
126 | }
|
127 |
|
128 |
|
129 |
|
130 |
|
131 | button.toast-close-button {
|
132 | @extend .toast-close-button;
|
133 | }
|
134 |
|
135 |
|
136 | .toast-container {
|
137 | position: fixed;
|
138 | z-index: 999999;
|
139 |
|
140 | pointer-events: auto;
|
141 | }
|
142 | .toast-container.toast-center,
|
143 | .toast-container.toast-top-center,
|
144 | .toast-container.toast-bottom-center{
|
145 | width: 100%;
|
146 | pointer-events: none;
|
147 | left: 0;
|
148 | right: 0;
|
149 | }
|
150 | .toast-container.toast-center > div,
|
151 | .toast-container.toast-top-center > div,
|
152 | .toast-container.toast-bottom-center > div{
|
153 | margin: 6px auto;
|
154 | pointer-events: auto;
|
155 | }
|
156 | .toast-container.toast-center > button,
|
157 | .toast-container.toast-top-center > button,
|
158 | .toast-container.toast-bottom-center > button{
|
159 | pointer-events: auto;
|
160 | }
|
161 | .toast-container * {
|
162 | -moz-box-sizing: border-box;
|
163 | -webkit-box-sizing: border-box;
|
164 | box-sizing: border-box;
|
165 | }
|
166 | .toast-container > div {
|
167 | margin: 0 0 6px;
|
168 | width: 300px;
|
169 | border-radius: 3px 3px 3px 3px;
|
170 | background-position: 15px center;
|
171 | background-repeat: no-repeat;
|
172 | box-shadow: 0 0 12px #999999;
|
173 | color: $toaster-text-color;
|
174 | opacity: 0.8;
|
175 | }
|
176 | .toast-container > :hover {
|
177 | box-shadow: 0 0 12px #000000;
|
178 | opacity: 1;
|
179 | cursor: pointer;
|
180 | }
|
181 |
|
182 | .toast-container.toast-top-full-width > div,
|
183 | .toast-container.toast-bottom-full-width > div {
|
184 | width: 96%;
|
185 | margin: auto;
|
186 | }
|
187 |
|
188 |
|
189 | .toast-top-full-width {
|
190 | top: 0;
|
191 | right: 0;
|
192 | width: 100%;
|
193 | }
|
194 | .toast-bottom-full-width {
|
195 | bottom: 0;
|
196 | right: 0;
|
197 | width: 100%;
|
198 | }
|
199 | .toast-top-left {
|
200 | top: $toaster-margin;
|
201 | left: $toaster-margin;
|
202 | }
|
203 | .toast-top-center {
|
204 | top: $toaster-margin;
|
205 | }
|
206 | .toast-top-right {
|
207 | top: $toaster-margin;
|
208 | right: $toaster-margin;
|
209 | }
|
210 | .toast-bottom-right {
|
211 | right: $toaster-margin;
|
212 | bottom: $toaster-margin;
|
213 | }
|
214 | .toast-bottom-center {
|
215 | bottom: $toaster-margin;
|
216 | }
|
217 | .toast-bottom-left {
|
218 | bottom: $toaster-margin;
|
219 | left: $toaster-margin;
|
220 | }
|
221 | .toast-center {
|
222 | top: 45%;
|
223 | }
|