You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
6.7 KiB

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