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.

_toastr.scss 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 .nickname {
  23. font-weight: bold;
  24. }
  25. .toast-message a:hover {
  26. color: #cccccc;
  27. text-decoration: none;
  28. }
  29. .toast-close-button {
  30. position: relative;
  31. right: -0.3em;
  32. top: -0.3em;
  33. float: right;
  34. font-size: 15px;
  35. height: 15px;
  36. width: 15px;
  37. font-weight: bold;
  38. color: #ffffff;
  39. background: transparent !important;
  40. -webkit-text-shadow: 0 1px 0 #ffffff;
  41. text-shadow: 0 1px 0 #ffffff;
  42. opacity: 0.8;
  43. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  44. filter: alpha(opacity=80);
  45. }
  46. .toast-close-button:hover,
  47. .toast-close-button:focus {
  48. color: #ffffff;
  49. text-decoration: none;
  50. cursor: pointer;
  51. opacity: 1;
  52. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  53. filter: alpha(opacity=100);
  54. }
  55. /*Additional properties for button version
  56. iOS requires the button element instead of an anchor tag.
  57. If you want the anchor version, it requires `href="#"`.*/
  58. button.toast-close-button {
  59. padding: 0;
  60. cursor: pointer;
  61. background: transparent;
  62. border: 0;
  63. -webkit-appearance: none;
  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: 1012;
  94. /*overrides*/
  95. }
  96. #toast-container * {
  97. -moz-box-sizing: border-box;
  98. -webkit-box-sizing: border-box;
  99. box-sizing: border-box;
  100. }
  101. #toast-container > div {
  102. margin: 0 0 6px;
  103. padding: 15px 15px 15px 15px;
  104. width: 300px;
  105. -moz-border-radius: 3px 3px 3px 3px;
  106. -webkit-border-radius: 3px 3px 3px 3px;
  107. border-radius: 3px 3px 3px 3px;
  108. background-position: 15px center;
  109. background-repeat: no-repeat;
  110. -moz-box-shadow: 0 0 12px #999999;
  111. -webkit-box-shadow: 0 0 12px #999999;
  112. box-shadow: 0 0 12px #999999;
  113. color: #ffffff;
  114. opacity: 0.8;
  115. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  116. filter: alpha(opacity=80);
  117. }
  118. #toast-container > :hover {
  119. -moz-box-shadow: 0 0 12px #000000;
  120. -webkit-box-shadow: 0 0 12px #000000;
  121. box-shadow: 0 0 12px #000000;
  122. opacity: 1;
  123. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  124. filter: alpha(opacity=100);
  125. cursor: pointer;
  126. }
  127. #toast-container .toast-info,
  128. #toast-container .toast-success,
  129. #toast-container .toast-error,
  130. #toast-container .toast-warning
  131. {
  132. padding: 10px 10px 10px 10px !important;
  133. }
  134. #toast-container.toast-top-full-width > div,
  135. #toast-container.toast-bottom-full-width > div {
  136. width: 100%;
  137. margin: auto;
  138. }
  139. .toast {
  140. background-color: #030303;
  141. }
  142. .toast-success {
  143. background-color: #51a351;
  144. }
  145. .toast-error {
  146. background-color: #bd362f;
  147. }
  148. .toast-info {
  149. background-color: #2f96b4;
  150. }
  151. .toast-warning {
  152. background-color: #f89406;
  153. }
  154. /*Responsive Design*/
  155. @media all and (max-width: 240px) {
  156. #toast-container > div {
  157. padding: 8px 8px 8px 8px;
  158. width: 11em;
  159. }
  160. #toast-container .toast-close-button {
  161. right: -0.2em;
  162. top: -0.2em;
  163. }
  164. }
  165. @media all and (min-width: 241px) and (max-width: 480px) {
  166. #toast-container > div {
  167. padding: 8px 8px 8px 8px;
  168. width: 18em;
  169. }
  170. #toast-container .toast-close-button {
  171. right: -0.2em;
  172. top: -0.2em;
  173. }
  174. }
  175. @media all and (min-width: 481px) and (max-width: 768px) {
  176. #toast-container > div {
  177. padding: 15px 15px 15px 15px;
  178. width: 25em;
  179. }
  180. }
  181. #toast-container.notification-bottom-right {
  182. bottom: 140px;
  183. right: 5px;
  184. }
  185. #toast-container.notification-bottom-right-center {
  186. right: 205px;
  187. }
  188. #toast-container .toast-info {
  189. -webkit-box-shadow: none;
  190. box-shadow: none;
  191. }
  192. .toast-close-button {
  193. right: -7px;
  194. top: -19px;
  195. }
  196. #toast-container .toast-info {
  197. background-color: black;
  198. border: 1px solid #3a3a3a;
  199. width: 220px;
  200. padding: 10px 10px 10px 50px;
  201. }