[7304c7f] | 1 | .toast-title {
|
---|
| 2 | font-weight: bold;
|
---|
| 3 | }
|
---|
| 4 |
|
---|
| 5 | .toast-message {
|
---|
| 6 | -ms-word-wrap: break-word;
|
---|
| 7 | word-wrap: break-word;
|
---|
| 8 | }
|
---|
| 9 |
|
---|
| 10 | .toast-message a,
|
---|
| 11 | .toast-message label {
|
---|
| 12 | color: #ffffff;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | .toast-message a:hover {
|
---|
| 16 | color: #cccccc;
|
---|
| 17 | text-decoration: none;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | .toast-close-button {
|
---|
| 21 | position: relative;
|
---|
| 22 | right: -0.3em;
|
---|
| 23 | top: -0.3em;
|
---|
| 24 | float: right;
|
---|
| 25 | font-size: 20px;
|
---|
| 26 | font-weight: bold;
|
---|
| 27 | color: #ffffff;
|
---|
| 28 | opacity: 0.8;
|
---|
| 29 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
|
---|
| 30 | filter: alpha(opacity=80);
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | .toast-close-button:hover,
|
---|
| 34 | .toast-close-button:focus {
|
---|
| 35 | color: #000000;
|
---|
| 36 | text-decoration: none;
|
---|
| 37 | cursor: pointer;
|
---|
| 38 | opacity: 0.4;
|
---|
| 39 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
|
---|
| 40 | filter: alpha(opacity=40);
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | /*Additional properties for button version
|
---|
| 44 | iOS requires the button element instead of an anchor tag.
|
---|
| 45 | If you want the anchor version, it requires `href="#"`.*/
|
---|
| 46 | button.toast-close-button {
|
---|
| 47 | padding: 0;
|
---|
| 48 | cursor: pointer;
|
---|
| 49 | background: transparent;
|
---|
| 50 | border: 0;
|
---|
| 51 | -webkit-appearance: none;
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | .toast-top-center {
|
---|
| 55 | top: 30px;
|
---|
| 56 | right: 0;
|
---|
| 57 | width: 100%;
|
---|
| 58 | }
|
---|
| 59 |
|
---|
| 60 | .toast-bottom-center {
|
---|
| 61 | bottom: 0;
|
---|
| 62 | right: 0;
|
---|
| 63 | width: 100%;
|
---|
| 64 | }
|
---|
| 65 |
|
---|
| 66 | .toast-top-full-width {
|
---|
| 67 | top: 30px;
|
---|
| 68 | right: 0;
|
---|
| 69 | width: 100%;
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | .toast-bottom-full-width {
|
---|
| 73 | bottom: 0;
|
---|
| 74 | right: 0;
|
---|
| 75 | width: 100%;
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | .toast-top-left {
|
---|
| 79 | top: 30px;
|
---|
| 80 | left: 33px;
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | .toast-top-right {
|
---|
| 84 | top: 33px;
|
---|
| 85 | right: 33px;
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | .toast-bottom-right {
|
---|
| 89 | right: 33px;
|
---|
| 90 | bottom: 33px;
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | .toast-bottom-left {
|
---|
| 94 | bottom: 33px;
|
---|
| 95 | left: 33px;
|
---|
| 96 | }
|
---|
| 97 |
|
---|
| 98 | #toast-container {
|
---|
| 99 | position: fixed;
|
---|
| 100 | z-index: 999999;
|
---|
| 101 | pointer-events: none;
|
---|
| 102 | /*overrides*/
|
---|
| 103 |
|
---|
| 104 | }
|
---|
| 105 |
|
---|
| 106 | #toast-container * {
|
---|
| 107 | -moz-box-sizing: border-box;
|
---|
| 108 | -webkit-box-sizing: border-box;
|
---|
| 109 | box-sizing: border-box;
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 | #toast-container > div {
|
---|
| 113 | position: relative;
|
---|
| 114 | overflow: hidden;
|
---|
| 115 | margin: 0 0 6px;
|
---|
| 116 | padding: 15px 15px 15px 50px;
|
---|
| 117 | width: 300px;
|
---|
| 118 | border-radius: .25rem;
|
---|
| 119 | background-position: 15px center;
|
---|
| 120 | background-repeat: no-repeat;
|
---|
| 121 | color: #ffffff;
|
---|
| 122 | opacity: 1;
|
---|
| 123 |
|
---|
| 124 | &:hover {
|
---|
| 125 | cursor: pointer;
|
---|
| 126 | }
|
---|
| 127 | }
|
---|
| 128 |
|
---|
| 129 | #toast-container > .toast-info {
|
---|
| 130 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | #toast-container > .toast-error {
|
---|
| 134 | 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;
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | #toast-container > .toast-success {
|
---|
| 138 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
|
---|
| 139 | }
|
---|
| 140 |
|
---|
| 141 | #toast-container > .toast-warning {
|
---|
| 142 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
|
---|
| 143 | }
|
---|
| 144 |
|
---|
| 145 | #toast-container.toast-top-center > div,
|
---|
| 146 | #toast-container.toast-bottom-center > div {
|
---|
| 147 | width: 300px;
|
---|
| 148 | margin-left: auto;
|
---|
| 149 | margin-right: auto;
|
---|
| 150 | }
|
---|
| 151 |
|
---|
| 152 | #toast-container.toast-top-full-width > div,
|
---|
| 153 | #toast-container.toast-bottom-full-width > div {
|
---|
| 154 | width: 96%;
|
---|
| 155 | margin-left: auto;
|
---|
| 156 | margin-right: auto;
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | .toast {
|
---|
| 160 | background-color: $color-dark;
|
---|
| 161 | border: none;
|
---|
| 162 | box-shadow: none;
|
---|
| 163 | }
|
---|
| 164 |
|
---|
| 165 | .toast-success {
|
---|
| 166 | background-color: $color-success;
|
---|
| 167 | }
|
---|
| 168 |
|
---|
| 169 | .toast-error {
|
---|
| 170 | background-color: $color-danger;
|
---|
| 171 | }
|
---|
| 172 |
|
---|
| 173 | .toast-info {
|
---|
| 174 | background-color: $color-info;
|
---|
| 175 | }
|
---|
| 176 |
|
---|
| 177 | .toast-warning {
|
---|
| 178 | background-color: $color-warning;
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | .toast-progress {
|
---|
| 182 | position: absolute;
|
---|
| 183 | left: 0;
|
---|
| 184 | bottom: 0;
|
---|
| 185 | height: 2px;
|
---|
| 186 | background-color: #000000;
|
---|
| 187 | opacity: 0.2;
|
---|
| 188 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=20);
|
---|
| 189 | filter: alpha(opacity=20);
|
---|
| 190 | }
|
---|
| 191 |
|
---|
| 192 | /*Responsive Design*/
|
---|
| 193 | @media all and (max-width: 240px) {
|
---|
| 194 | #toast-container > div {
|
---|
| 195 | padding: 8px 8px 8px 50px;
|
---|
| 196 | width: 11em;
|
---|
| 197 | }
|
---|
| 198 | #toast-container .toast-close-button {
|
---|
| 199 | right: -0.2em;
|
---|
| 200 | top: -0.2em;
|
---|
| 201 | }
|
---|
| 202 | }
|
---|
| 203 |
|
---|
| 204 | @media all and (min-width: 241px) and (max-width: 480px) {
|
---|
| 205 | #toast-container > div {
|
---|
| 206 | padding: 8px 8px 8px 50px;
|
---|
| 207 | width: 18em;
|
---|
| 208 | }
|
---|
| 209 | #toast-container .toast-close-button {
|
---|
| 210 | right: -0.2em;
|
---|
| 211 | top: -0.2em;
|
---|
| 212 | }
|
---|
| 213 | }
|
---|
| 214 |
|
---|
| 215 | @media all and (min-width: 481px) and (max-width: 768px) {
|
---|
| 216 | #toast-container > div {
|
---|
| 217 | padding: 15px 15px 15px 50px;
|
---|
| 218 | width: 25em;
|
---|
| 219 | }
|
---|
| 220 | }
|
---|