toastr.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. @charset "UTF-8";
  2. .toast-title {
  3. font-weight: 700; }
  4. .toast-message {
  5. -ms-word-wrap: break-word;
  6. word-wrap: break-word; }
  7. .toast-message a, .toast-message label {
  8. color: #fff; }
  9. .toast-message a:hover {
  10. color: #ccd5db;
  11. text-decoration: none; }
  12. .toast-close-button {
  13. position: relative;
  14. top: -0.3em;
  15. right: -0.3em;
  16. float: right;
  17. margin-bottom: -.5em;
  18. font-size: 20px;
  19. font-weight: 400;
  20. color: #fff;
  21. -webkit-text-shadow: 0 1px 0 white;
  22. text-shadow: 0 1px 0 white;
  23. opacity: .8; }
  24. .toast-close-button:hover, .toast-close-button:focus {
  25. color: #000;
  26. text-decoration: none;
  27. cursor: pointer;
  28. opacity: .4;
  29. outline: none; }
  30. /*Additional properties for button version
  31. iOS requires the button element instead of an anchor tag.
  32. If you want the anchor version, it requires `href="#"`.*/
  33. button.toast-close-button {
  34. padding: 0;
  35. cursor: pointer;
  36. background: transparent;
  37. border: 0;
  38. -webkit-appearance: none; }
  39. .toast-top-center {
  40. top: 12px;
  41. right: 0;
  42. width: 100%; }
  43. .toast-bottom-center {
  44. right: 0;
  45. bottom: 12px;
  46. width: 100%; }
  47. .toast-top-full-width {
  48. top: 0;
  49. right: 0;
  50. width: 100%; }
  51. .toast-top-full-width .toast {
  52. margin-bottom: 0; }
  53. .toast-bottom-full-width {
  54. right: 0;
  55. bottom: 0;
  56. width: 100%; }
  57. .toast-bottom-full-width .toast {
  58. margin-bottom: 0; }
  59. .toast-top-left {
  60. top: 12px;
  61. left: 12px; }
  62. .toast-top-right {
  63. top: 12px;
  64. right: 12px; }
  65. .toast-bottom-right {
  66. right: 12px;
  67. bottom: 12px; }
  68. .toast-bottom-left {
  69. bottom: 12px;
  70. left: 12px; }
  71. .toast-example,
  72. #toast-container {
  73. position: fixed;
  74. z-index: 1700;
  75. pointer-events: none;
  76. /*overrides*/ }
  77. .toast-example *,
  78. #toast-container * {
  79. box-sizing: border-box; }
  80. .toast-example > div,
  81. #toast-container > div {
  82. position: relative;
  83. width: 300px;
  84. padding: 15px 20px;
  85. margin: 0 0 6px;
  86. overflow: hidden;
  87. color: #a3afb7;
  88. pointer-events: auto;
  89. background-repeat: no-repeat;
  90. background-position: 15px center;
  91. border: 1px solid rgba(0, 0, 0, 0.1);
  92. border-radius: 0.215rem;
  93. opacity: 0.95; }
  94. .toast-example > .toast-shadow,
  95. #toast-container > .toast-shadow {
  96. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.23); }
  97. .toast-example > .toast-shadow:hover,
  98. #toast-container > .toast-shadow:hover {
  99. box-shadow: 0 1px 6px rgba(0, 0, 0, 0.23); }
  100. .toast-example > :hover,
  101. #toast-container > :hover {
  102. cursor: pointer;
  103. opacity: 1; }
  104. .toast-example > .toast-success:not(.toast-just-text), .toast-example > .toast-info:not(.toast-just-text), .toast-example > .toast-warning:not(.toast-just-text), .toast-example > .toast-error:not(.toast-just-text),
  105. #toast-container > .toast-success:not(.toast-just-text),
  106. #toast-container > .toast-info:not(.toast-just-text),
  107. #toast-container > .toast-warning:not(.toast-just-text),
  108. #toast-container > .toast-error:not(.toast-just-text) {
  109. padding-left: 50px; }
  110. .toast-example > .toast-success:not(.toast-just-text):before, .toast-example > .toast-info:not(.toast-just-text):before, .toast-example > .toast-warning:not(.toast-just-text):before, .toast-example > .toast-error:not(.toast-just-text):before,
  111. #toast-container > .toast-success:not(.toast-just-text):before,
  112. #toast-container > .toast-info:not(.toast-just-text):before,
  113. #toast-container > .toast-warning:not(.toast-just-text):before,
  114. #toast-container > .toast-error:not(.toast-just-text):before {
  115. position: absolute;
  116. top: 50%;
  117. left: 12px;
  118. font-family: "Web Icons";
  119. font-size: 30px;
  120. font-style: normal;
  121. font-weight: 400;
  122. -webkit-transform: translate(0, -50%);
  123. transform: translate(0, -50%);
  124. text-rendering: auto;
  125. speak: none;
  126. -webkit-font-smoothing: antialiased;
  127. -moz-osx-font-smoothing: grayscale; }
  128. .toast-example > .toast-success,
  129. #toast-container > .toast-success {
  130. color: #fff; }
  131. .toast-example > .toast-success:not(.toast-just-text):before,
  132. #toast-container > .toast-success:not(.toast-just-text):before {
  133. content: ""; }
  134. .toast-example > .toast-info,
  135. #toast-container > .toast-info {
  136. color: #fff; }
  137. .toast-example > .toast-info:not(.toast-just-text):before,
  138. #toast-container > .toast-info:not(.toast-just-text):before {
  139. content: ""; }
  140. .toast-example > .toast-warning,
  141. #toast-container > .toast-warning {
  142. color: #fff; }
  143. .toast-example > .toast-warning:not(.toast-just-text):before,
  144. #toast-container > .toast-warning:not(.toast-just-text):before {
  145. content: ""; }
  146. .toast-example > .toast-error,
  147. #toast-container > .toast-error {
  148. color: #fff; }
  149. .toast-example > .toast-error:not(.toast-just-text):before,
  150. #toast-container > .toast-error:not(.toast-just-text):before {
  151. content: ""; }
  152. .toast-example.toast-top-center > div, .toast-example.toast-bottom-center > div,
  153. #toast-container.toast-top-center > div,
  154. #toast-container.toast-bottom-center > div {
  155. width: 300px;
  156. margin-right: auto;
  157. margin-left: auto; }
  158. .toast-example.toast-top-full-width > div, .toast-example.toast-bottom-full-width > div,
  159. #toast-container.toast-top-full-width > div,
  160. #toast-container.toast-bottom-full-width > div {
  161. width: 100%;
  162. margin-right: auto;
  163. margin-left: auto;
  164. border-radius: 0; }
  165. .toast {
  166. background-color: #e4eaee; }
  167. .toast-success {
  168. background-color: #28d17c; }
  169. .toast-error {
  170. background-color: #ff666b; }
  171. .toast-info {
  172. background-color: #28c0de; }
  173. .toast-warning {
  174. background-color: #f57d1b; }
  175. .toast-progress {
  176. position: absolute;
  177. bottom: 0;
  178. left: 0;
  179. height: 4px;
  180. background-color: #000;
  181. opacity: .1; }
  182. /*Responsive Design*/
  183. @media all and (max-width: 240px) {
  184. .toast-example > div,
  185. #toast-container > div {
  186. width: 11em; }
  187. .toast-example .toast-close-button,
  188. #toast-container .toast-close-button {
  189. top: -0.2em;
  190. right: -0.2em; } }
  191. @media all and (min-width: 241px) and (max-width: 480px) {
  192. .toast-example > div,
  193. #toast-container > div {
  194. width: 18em; }
  195. .toast-example .toast-close-button,
  196. #toast-container .toast-close-button {
  197. top: -0.2em;
  198. right: -0.2em; } }
  199. @media (min-width: 480px) and (max-width: 767.98px) {
  200. .toast-example > div,
  201. #toast-container > div {
  202. width: 25em; } }