toastr.min.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /*
  2. * Note that this is toastr v2.1.3, the "latest" version in url has no more maintenance,
  3. * please go to https://cdnjs.com/libraries/toastr.js and pick a certain version you want to use,
  4. * make sure you copy the url from the website since the url may change between versions.
  5. * */
  6. .toast-title {
  7. font-weight: bold;
  8. }
  9. .toast-message {
  10. -ms-word-wrap: break-word;
  11. word-wrap: break-word;
  12. }
  13. .toast-message a,
  14. .toast-message label {
  15. color: #FFFFFF;
  16. }
  17. .toast-message a:hover {
  18. color: #CCCCCC;
  19. text-decoration: none;
  20. }
  21. .toast-close-button {
  22. position: relative;
  23. right: -0.3em;
  24. top: -0.3em;
  25. float: right;
  26. font-size: 20px;
  27. font-weight: bold;
  28. color: #FFFFFF;
  29. -webkit-text-shadow: 0 1px 0 #ffffff;
  30. text-shadow: 0 1px 0 #ffffff;
  31. opacity: 0.8;
  32. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  33. filter: alpha(opacity=80);
  34. line-height: 1;
  35. }
  36. .toast-close-button:hover,
  37. .toast-close-button:focus {
  38. color: #000000;
  39. text-decoration: none;
  40. cursor: pointer;
  41. opacity: 0.4;
  42. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  43. filter: alpha(opacity=40);
  44. }
  45. .rtl .toast-close-button {
  46. left: -0.3em;
  47. float: left;
  48. right: 0.3em;
  49. }
  50. /*Additional properties for button version
  51. iOS requires the button element instead of an anchor tag.
  52. If you want the anchor version, it requires `href="#"`.*/
  53. button.toast-close-button {
  54. padding: 0;
  55. cursor: pointer;
  56. background: transparent;
  57. border: 0;
  58. -webkit-appearance: none;
  59. }
  60. .toast-top-center {
  61. top: 0;
  62. right: 0;
  63. width: 100%;
  64. }
  65. .toast-bottom-center {
  66. bottom: 0;
  67. right: 0;
  68. width: 100%;
  69. }
  70. .toast-top-full-width {
  71. top: 0;
  72. right: 0;
  73. width: 100%;
  74. }
  75. .toast-bottom-full-width {
  76. bottom: 0;
  77. right: 0;
  78. width: 100%;
  79. }
  80. .toast-top-left {
  81. top: 12px;
  82. left: 12px;
  83. }
  84. .toast-top-right {
  85. top: 12px;
  86. right: 12px;
  87. }
  88. .toast-bottom-right {
  89. right: 12px;
  90. bottom: 12px;
  91. }
  92. .toast-bottom-left {
  93. bottom: 12px;
  94. left: 12px;
  95. }
  96. #toast-container {
  97. position: fixed;
  98. z-index: 999999;
  99. pointer-events: none;
  100. /*overrides*/
  101. }
  102. #toast-container * {
  103. -moz-box-sizing: border-box;
  104. -webkit-box-sizing: border-box;
  105. box-sizing: border-box;
  106. }
  107. #toast-container>div {
  108. position: relative;
  109. pointer-events: auto;
  110. overflow: hidden;
  111. margin: 0 0 6px;
  112. padding: 8px 15px 8px 40px;
  113. width: 300px;
  114. -moz-border-radius: 4px;
  115. -webkit-border-radius: 4px;
  116. border-radius: 4px;
  117. background-position: 15px center;
  118. background-repeat: no-repeat;
  119. top: 10px;
  120. }
  121. #toast-container>div.rtl {
  122. direction: rtl;
  123. padding: 15px 50px 15px 15px;
  124. background-position: right 15px center;
  125. }
  126. #toast-container.toast-top-center>div,
  127. #toast-container.toast-bottom-center>div {
  128. width: 300px;
  129. margin-left: auto;
  130. margin-right: auto;
  131. }
  132. #toast-container.toast-top-full-width>div,
  133. #toast-container.toast-bottom-full-width>div {
  134. width: 96%;
  135. margin-left: auto;
  136. margin-right: auto;
  137. }
  138. .toast {
  139. background-color: #030303;
  140. }
  141. .toast-success {
  142. background: url('./../icons/success.png') #f0f9eb no-repeat;
  143. border: 1px solid #e1f3d8;
  144. color: #67c23a !important;
  145. }
  146. .toast-error {
  147. background: url('./../icons/error.png') #fef0f0 no-repeat;
  148. border: 1px solid #fde2e2;
  149. color: #f56c6c !important;
  150. }
  151. .toast-info {
  152. background-color: #e6f7ff;
  153. border: 1px solid #ebeef5;
  154. color: #909399 !important;
  155. }
  156. .toast-warning {
  157. background-color: #fffbe6;
  158. border: 1px solid #faecd8;
  159. color: #e6a23c !important;
  160. }
  161. .toast-progress {
  162. position: absolute;
  163. left: 0;
  164. bottom: 0;
  165. height: 4px;
  166. background-color: #000000;
  167. opacity: 0.4;
  168. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  169. filter: alpha(opacity=40);
  170. }
  171. /*Responsive Design*/
  172. @media all and (max-width: 240px) {
  173. #toast-container>div {
  174. padding: 8px 8px 8px 50px;
  175. width: 11em;
  176. }
  177. #toast-container>div.rtl {
  178. padding: 8px 50px 8px 8px;
  179. }
  180. #toast-container .toast-close-button {
  181. right: -0.2em;
  182. top: -0.2em;
  183. }
  184. #toast-container .rtl .toast-close-button {
  185. left: -0.2em;
  186. right: 0.2em;
  187. }
  188. }
  189. @media all and (min-width: 241px) and (max-width: 480px) {
  190. #toast-container>div {
  191. padding: 8px 8px 8px 50px;
  192. width: 18em;
  193. }
  194. #toast-container>div.rtl {
  195. padding: 8px 50px 8px 8px;
  196. }
  197. #toast-container .toast-close-button {
  198. right: -0.2em;
  199. top: -0.2em;
  200. }
  201. #toast-container .rtl .toast-close-button {
  202. left: -0.2em;
  203. right: 0.2em;
  204. }
  205. }
  206. @media all and (min-width: 481px) and (max-width: 768px) {
  207. #toast-container>div {
  208. padding: 15px 15px 15px 50px;
  209. width: 25em;
  210. }
  211. #toast-container>div.rtl {
  212. padding: 15px 50px 15px 15px;
  213. }
  214. }