UNPKG

6.42 kBCSSView Raw
1
2/* based on angular-toastr css https://github.com/Foxandxss/angular-toastr/blob/cb508fe6801d6b288d3afc525bb40fee1b101650/dist/angular-toastr.css */
3.toast-title {
4 font-weight: bold;
5}
6.toast-message {
7 word-wrap: break-word;
8}
9.toast-message a,
10.toast-message label {
11 color: #FFFFFF;
12}
13.toast-message a:hover {
14 color: #CCCCCC;
15 text-decoration: none;
16}
17.toast-close-button {
18 position: relative;
19 right: -0.3em;
20 top: -0.3em;
21 float: right;
22 font-size: 20px;
23 font-weight: bold;
24 color: #FFFFFF;
25 text-shadow: 0 1px 0 #ffffff;
26 /* opacity: 0.8; */
27}
28.toast-close-button:hover,
29.toast-close-button:focus {
30 color: #000000;
31 text-decoration: none;
32 cursor: pointer;
33 opacity: 0.4;
34}
35/*Additional properties for button version
36 iOS requires the button element instead of an anchor tag.
37 If you want the anchor version, it requires `href="#"`.*/
38button.toast-close-button {
39 padding: 0;
40 cursor: pointer;
41 background: transparent;
42 border: 0;
43}
44.toast-center-center {
45 top: 50%;
46 left: 50%;
47 transform: translate(-50%, -50%);
48}
49.toast-top-center {
50 top: 0;
51 right: 0;
52 width: 100%;
53}
54.toast-bottom-center {
55 bottom: 0;
56 right: 0;
57 width: 100%;
58}
59.toast-top-full-width {
60 top: 0;
61 right: 0;
62 width: 100%;
63}
64.toast-bottom-full-width {
65 bottom: 0;
66 right: 0;
67 width: 100%;
68}
69.toast-top-left {
70 top: 12px;
71 left: 12px;
72}
73.toast-top-right {
74 top: 12px;
75 right: 12px;
76}
77.toast-bottom-right {
78 right: 12px;
79 bottom: 12px;
80}
81.toast-bottom-left {
82 bottom: 12px;
83 left: 12px;
84}
85#toast-container {
86 pointer-events: none;
87 position: fixed;
88 z-index: 999999;
89}
90#toast-container * {
91 box-sizing: border-box;
92}
93#toast-container .ngx-toastr {
94 position: relative;
95 overflow: hidden;
96 margin: 0 0 6px;
97 padding: 15px 15px 15px 50px;
98 width: 300px;
99 border-radius: 3px 3px 3px 3px;
100 background-position: 15px center;
101 background-repeat: no-repeat;
102 box-shadow: 0 0 12px #999999;
103 color: #FFFFFF;
104}
105#toast-container .ngx-toastr:hover {
106 box-shadow: 0 0 12px #000000;
107 opacity: 1;
108 cursor: pointer;
109}
110#toast-container .ngx-toastr.toast-info {
111 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;
112}
113#toast-container .ngx-toastr.toast-error {
114 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;
115}
116#toast-container .ngx-toastr.toast-success {
117 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
118}
119#toast-container .ngx-toastr.toast-warning {
120 background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
121}
122#toast-container.toast-top-center .ngx-toastr,
123#toast-container.toast-bottom-center .ngx-toastr {
124 width: 300px;
125 margin-left: auto;
126 margin-right: auto;
127}
128#toast-container.toast-top-full-width .ngx-toastr,
129#toast-container.toast-bottom-full-width .ngx-toastr {
130 width: 96%;
131 margin-left: auto;
132 margin-right: auto;
133}
134.ngx-toastr {
135 background-color: #030303;
136 pointer-events: auto;
137}
138.toast-success {
139 background-color: #51A351;
140}
141.toast-error {
142 background-color: #BD362F;
143}
144.toast-info {
145 background-color: #2F96B4;
146}
147.toast-warning {
148 background-color: #F89406;
149}
150.toast-progress {
151 position: absolute;
152 left: 0;
153 bottom: 0;
154 height: 4px;
155 background-color: #000000;
156 opacity: 0.4;
157}
158/*Responsive Design*/
159@media all and (max-width: 240px) {
160 #toast-container .ngx-toastr.div {
161 padding: 8px 8px 8px 50px;
162 width: 11em;
163 }
164 #toast-container .toast-close-button {
165 right: -0.2em;
166 top: -0.2em;
167 }
168}
169@media all and (min-width: 241px) and (max-width: 480px) {
170 #toast-container .ngx-toastr.div {
171 padding: 8px 8px 8px 50px;
172 width: 18em;
173 }
174 #toast-container .toast-close-button {
175 right: -0.2em;
176 top: -0.2em;
177 }
178}
179@media all and (min-width: 481px) and (max-width: 768px) {
180 #toast-container .ngx-toastr.div {
181 padding: 15px 15px 15px 50px;
182 width: 25em;
183 }
184}