Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /* |
| 2 | * Toastr |
||
| 3 | * Copyright 2012-2014 John Papa and Hans Fjällemark. |
||
| 4 | * All Rights Reserved. |
||
| 5 | * Use, reproduction, distribution, and modification of this code is subject to the terms and |
||
| 6 | * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php |
||
| 7 | * |
||
| 8 | * Author: John Papa and Hans Fjällemark |
||
| 9 | * Project: https://github.com/CodeSeven/toastr |
||
| 10 | */ |
||
| 11 | .toast-title { |
||
| 12 | font-weight: bold; |
||
| 13 | } |
||
| 14 | .toast-message { |
||
| 15 | -ms-word-wrap: break-word; |
||
| 16 | word-wrap: break-word; |
||
| 17 | } |
||
| 18 | .toast-message a, |
||
| 19 | .toast-message label { |
||
| 20 | color: #ffffff; |
||
| 21 | } |
||
| 22 | .toast-message a:hover { |
||
| 23 | color: #cccccc; |
||
| 24 | text-decoration: none; |
||
| 25 | } |
||
| 26 | .toast-close-button { |
||
| 27 | position: relative; |
||
| 28 | right: -0.3em; |
||
| 29 | top: -0.3em; |
||
| 30 | float: right; |
||
| 31 | font-size: 20px; |
||
| 32 | font-weight: bold; |
||
| 33 | color: #ffffff; |
||
| 34 | -webkit-text-shadow: 0 1px 0 #ffffff; |
||
| 35 | text-shadow: 0 1px 0 #ffffff; |
||
| 36 | opacity: 0.8; |
||
| 37 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); |
||
| 38 | filter: alpha(opacity=80); |
||
| 39 | } |
||
| 40 | .toast-close-button:hover, |
||
| 41 | .toast-close-button:focus { |
||
| 42 | color: #000000; |
||
| 43 | text-decoration: none; |
||
| 44 | cursor: pointer; |
||
| 45 | opacity: 0.4; |
||
| 46 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40); |
||
| 47 | filter: alpha(opacity=40); |
||
| 48 | } |
||
| 49 | /*Additional properties for button version |
||
| 50 | iOS requires the button element instead of an anchor tag. |
||
| 51 | If you want the anchor version, it requires `href="#"`.*/ |
||
| 52 | button.toast-close-button { |
||
| 53 | padding: 0; |
||
| 54 | cursor: pointer; |
||
| 55 | background: transparent; |
||
| 56 | border: 0; |
||
| 57 | -webkit-appearance: none; |
||
| 58 | } |
||
| 59 | .toast-top-center { |
||
| 60 | top: 0; |
||
| 61 | right: 0; |
||
| 62 | width: 100%; |
||
| 63 | } |
||
| 64 | .toast-bottom-center { |
||
| 65 | bottom: 0; |
||
| 66 | right: 0; |
||
| 67 | width: 100%; |
||
| 68 | } |
||
| 69 | .toast-top-full-width { |
||
| 70 | top: 0; |
||
| 71 | right: 0; |
||
| 72 | width: 100%; |
||
| 73 | } |
||
| 74 | .toast-bottom-full-width { |
||
| 75 | bottom: 0; |
||
| 76 | right: 0; |
||
| 77 | width: 100%; |
||
| 78 | } |
||
| 79 | .toast-top-left { |
||
| 80 | top: 12px; |
||
| 81 | left: 12px; |
||
| 82 | } |
||
| 83 | .toast-top-right { |
||
| 84 | top: 12px; |
||
| 85 | right: 12px; |
||
| 86 | } |
||
| 87 | .toast-bottom-right { |
||
| 88 | right: 12px; |
||
| 89 | bottom: 12px; |
||
| 90 | } |
||
| 91 | .toast-bottom-left { |
||
| 92 | bottom: 12px; |
||
| 93 | left: 12px; |
||
| 94 | } |
||
| 95 | #toast-container { |
||
| 96 | position: fixed; |
||
| 97 | z-index: 999999; |
||
| 98 | /*overrides*/ |
||
| 99 | |||
| 100 | } |
||
| 101 | #toast-container * { |
||
| 102 | -moz-box-sizing: border-box; |
||
| 103 | -webkit-box-sizing: border-box; |
||
| 104 | box-sizing: border-box; |
||
| 105 | } |
||
| 106 | #toast-container > div { |
||
| 107 | margin: 0 0 6px; |
||
| 108 | padding: 15px 15px 15px 50px; |
||
| 109 | width: 300px; |
||
| 110 | -moz-border-radius: 3px 3px 3px 3px; |
||
| 111 | -webkit-border-radius: 3px 3px 3px 3px; |
||
| 112 | border-radius: 3px 3px 3px 3px; |
||
| 113 | background-position: 15px center; |
||
| 114 | background-repeat: no-repeat; |
||
| 115 | -moz-box-shadow: 0 0 12px #999999; |
||
| 116 | -webkit-box-shadow: 0 0 12px #999999; |
||
| 117 | box-shadow: 0 0 12px #999999; |
||
| 118 | color: #ffffff; |
||
| 119 | opacity: 0.8; |
||
| 120 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); |
||
| 121 | filter: alpha(opacity=80); |
||
| 122 | } |
||
| 123 | #toast-container > :hover { |
||
| 124 | -moz-box-shadow: 0 0 12px #000000; |
||
| 125 | -webkit-box-shadow: 0 0 12px #000000; |
||
| 126 | box-shadow: 0 0 12px #000000; |
||
| 127 | opacity: 1; |
||
| 128 | -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); |
||
| 129 | filter: alpha(opacity=100); |
||
| 130 | cursor: pointer; |
||
| 131 | } |
||
| 132 | #toast-container > .toast-info { |
||
| 133 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important; |
||
| 134 | } |
||
| 135 | #toast-container > .toast-error { |
||
| 136 | 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; |
||
| 137 | } |
||
| 138 | #toast-container > .toast-success { |
||
| 139 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important; |
||
| 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 | #toast-container.toast-top-center > div, |
||
| 145 | #toast-container.toast-bottom-center > div { |
||
| 146 | width: 300px; |
||
| 147 | margin: auto; |
||
| 148 | } |
||
| 149 | #toast-container.toast-top-full-width > div, |
||
| 150 | #toast-container.toast-bottom-full-width > div { |
||
| 151 | width: 96%; |
||
| 152 | margin: auto; |
||
| 153 | } |
||
| 154 | .toast { |
||
| 155 | background-color: #030303; |
||
| 156 | } |
||
| 157 | .toast-success { |
||
| 158 | background-color: #51a351; |
||
| 159 | } |
||
| 160 | .toast-error { |
||
| 161 | background-color: #bd362f; |
||
| 162 | } |
||
| 163 | .toast-info { |
||
| 164 | background-color: #2f96b4; |
||
| 165 | } |
||
| 166 | .toast-warning { |
||
| 167 | background-color: #f89406; |
||
| 168 | } |
||
| 169 | /*Responsive Design*/ |
||
| 170 | @media all and (max-width: 240px) { |
||
| 171 | #toast-container > div { |
||
| 172 | padding: 8px 8px 8px 50px; |
||
| 173 | width: 11em; |
||
| 174 | } |
||
| 175 | #toast-container .toast-close-button { |
||
| 176 | right: -0.2em; |
||
| 177 | top: -0.2em; |
||
| 178 | } |
||
| 179 | } |
||
| 180 | @media all and (min-width: 241px) and (max-width: 480px) { |
||
| 181 | #toast-container > div { |
||
| 182 | padding: 8px 8px 8px 50px; |
||
| 183 | width: 18em; |
||
| 184 | } |
||
| 185 | #toast-container .toast-close-button { |
||
| 186 | right: -0.2em; |
||
| 187 | top: -0.2em; |
||
| 188 | } |
||
| 189 | } |
||
| 190 | @media all and (min-width: 481px) and (max-width: 768px) { |
||
| 191 | #toast-container > div { |
||
| 192 | padding: 15px 15px 15px 50px; |
||
| 193 | width: 25em; |
||
| 194 | } |
||
| 195 | } |