ext-component-toastr.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. #toast-container > div {
  2. opacity: 1;
  3. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  4. filter: alpha(opacity=100);
  5. max-width: none;
  6. border-radius: 0.286rem; }
  7. #toast-container > div,
  8. #toast-container > div:hover {
  9. box-shadow: 0 2px 20px 0 rgba(34, 41, 47, 0.08); }
  10. #toast-container > .toast {
  11. background-image: none !important; }
  12. .toast {
  13. background-color: #fff;
  14. color: #6e6b7b !important; }
  15. .toast .toast-close-button {
  16. color: #6e6b7b;
  17. font-size: 1.75rem;
  18. font-weight: 400;
  19. top: 0;
  20. right: 0;
  21. text-shadow: none; }
  22. .toast .toast-close-button:focus {
  23. outline: none; }
  24. .toast .toast-title {
  25. font-size: 1rem;
  26. font-weight: 600;
  27. line-height: 1.75; }
  28. .toast .toast-progress {
  29. opacity: 1; }
  30. .toast:before {
  31. content: '';
  32. height: 24px;
  33. width: 24px;
  34. border-radius: 50%;
  35. color: #fff;
  36. position: absolute;
  37. left: 1rem; }
  38. .toast:after {
  39. content: '';
  40. background-size: 1rem;
  41. background-repeat: no-repeat;
  42. position: absolute;
  43. left: 1.38rem;
  44. top: 1.44rem;
  45. width: 1rem;
  46. height: 1rem; }
  47. .toast-success .toast-title {
  48. color: #28c76f; }
  49. .toast-success .toast-progress {
  50. background-color: #28c76f; }
  51. .toast-success:before {
  52. background-color: #28c76f; }
  53. .toast-success:after {
  54. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); }
  55. .toast-error .toast-title {
  56. color: #ea5455; }
  57. .toast-error .toast-progress {
  58. background-color: #ea5455; }
  59. .toast-error:before {
  60. background-color: #ea5455; }
  61. .toast-error:after {
  62. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-x'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E"); }
  63. .toast-info .toast-title {
  64. color: #00cfe8; }
  65. .toast-info .toast-progress {
  66. background-color: #00cfe8; }
  67. .toast-info:before {
  68. background-color: #00cfe8; }
  69. .toast-info:after {
  70. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-info'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E"); }
  71. .toast-warning .toast-title {
  72. color: #ff9f43; }
  73. .toast-warning .toast-progress {
  74. background-color: #ff9f43; }
  75. .toast-warning:before {
  76. background-color: #ff9f43; }
  77. .toast-warning:after {
  78. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-alert-triangle'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E"); }
  79. .toast-top-left {
  80. top: 1.3rem;
  81. left: 2rem; }
  82. .toast-top-right {
  83. top: 1.3rem;
  84. right: 2rem; }
  85. .toast-top-center,
  86. .toast-top-full-width {
  87. top: 1.3rem;
  88. width: 100% !important; }
  89. .toast-bottom-left {
  90. bottom: 1.3rem;
  91. left: 2rem; }
  92. .toast-bottom-right {
  93. bottom: 1.3rem;
  94. right: 2rem; }
  95. .toast-bottom-center,
  96. .toast-bottom-full-width {
  97. bottom: 1.3rem;
  98. width: 100% !important; }
  99. @media (max-width: 480px) and (min-width: 241px) {
  100. #toast-container > .toast:after {
  101. top: 0.95rem; }
  102. #toast-container > .toast .toast-close-button {
  103. top: 0;
  104. right: -1px; }
  105. #toast-container > div {
  106. width: 20rem; }
  107. .toast-top-left {
  108. left: 1rem; }
  109. #toast-container.toast-top-center, #toast-container.toast-bottom-center {
  110. right: 1rem; }
  111. #toast-container.toast-top-center > div, #toast-container.toast-bottom-center > div {
  112. width: 20rem !important; }
  113. .toast-top-full-width,
  114. .toast-bottom-full-width {
  115. right: 0;
  116. left: 0;
  117. width: 93%; }
  118. .toast-top-full-width > div,
  119. .toast-bottom-full-width > div {
  120. width: 100%; }
  121. .toast-bottom-left {
  122. left: 1rem;
  123. bottom: 0.75rem; }
  124. .toast-bottom-right {
  125. right: 2.25rem;
  126. bottom: 0.75rem; }
  127. .toast-bottom-center,
  128. .toast-bottom-full-width {
  129. bottom: 0.75rem; }
  130. [data-textdirection='rtl'] #toast-container > div {
  131. padding-right: 8px; } }
  132. .dark-layout #toast-container > div,
  133. .dark-layout #toast-container > div:hover {
  134. box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.24); }
  135. .dark-layout #toast-container .toast {
  136. background-color: #283046;
  137. color: #b4b7bd !important; }
  138. .dark-layout #toast-container .toast .toast-close-button {
  139. color: #b4b7bd; }
  140. @media (max-width: 575.98px) {
  141. [data-textdirection='rtl'] .toast .toast-close-button {
  142. top: 0.55rem !important;
  143. right: 0.5rem !important; } }
  144. [data-textdirection='rtl'] .toast-top-left {
  145. left: 1rem;
  146. right: auto; }
  147. [data-textdirection='rtl'] .toast-top-right {
  148. right: 3rem;
  149. left: auto; }
  150. [data-textdirection='rtl'] .toast-bottom-left {
  151. left: 1em;
  152. right: auto; }
  153. [data-textdirection='rtl'] .toast-bottom-right {
  154. right: 3rem;
  155. left: auto; }
  156. [data-textdirection='rtl'] .toast-top-full-width#toast-container > div,
  157. [data-textdirection='rtl'] .toast-bottom-full-width#toast-container > div {
  158. left: 0;
  159. right: 0; }