Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

toastr.css 7.4KB

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