toast.style.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @charset "UTF-8";
  2. @font-face {
  3. font-family: 'toast';
  4. src: url("../fonts/toast.eot?76tjxy");
  5. src: url("../fonts/toast.eot?76tjxy#iefix") format("embedded-opentype"), url("../fonts/toast.ttf?76tjxy") format("truetype"), url("../fonts/toast.woff?76tjxy") format("woff"), url("../fonts/toast.svg?76tjxy#toast") format("svg");
  6. font-weight: normal;
  7. font-style: normal; }
  8. i {
  9. /* use !important to prevent issues with browser extensions that change fonts */
  10. font-family: 'toast' !important;
  11. speak: none;
  12. font-style: normal;
  13. font-weight: normal;
  14. font-variant: normal;
  15. text-transform: none;
  16. line-height: 1;
  17. /* Better Font Rendering =========== */
  18. -webkit-font-smoothing: antialiased;
  19. -moz-osx-font-smoothing: grayscale; }
  20. .toast-icon-error:before {
  21. content: "E";
  22. font-weight: 600;}
  23. .toast-icon-info:before {
  24. content: ""; }
  25. .toast-icon-notice:before {
  26. content: ""; }
  27. .toast-icon-success:before {
  28. content: "√"; }
  29. .toast-icon-warning:before {
  30. content: "!"; }
  31. .toast-item-wrapper {
  32. min-width: 250px;
  33. padding: 10px;
  34. box-sizing: border-box;
  35. color: #fff;
  36. overflow: hidden;
  37. -webkit-user-select: none;
  38. -moz-user-select: none;
  39. -ms-user-select: none;
  40. user-select: none; }
  41. .toast-item-wrapper i.toast-icon {
  42. border-radius: 30px;
  43. border: 1px solid #bdbdbd;
  44. position: absolute;
  45. top: 4px;
  46. left: 20px;
  47. width: 24px;
  48. text-align: center;
  49. vertical-align: middle;
  50. font-size: 20px; }
  51. .toast-item-wrapper .toast-close {
  52. font-size: 1.2rem;
  53. position: absolute;
  54. top: 0;
  55. right: 0;
  56. width: 20px;
  57. text-align: center;
  58. cursor: pointer; }
  59. .toast-item-wrapper.success {
  60. border-radius: 30px;
  61. border: 1px solid #bdbdbd;
  62. position: absolute;
  63. top: 4px;
  64. left: 20px;
  65. width: 24px;
  66. text-align: center;
  67. vertical-align: middle;
  68. font-size: 20px;
  69. }
  70. .toast-item-wrapper.error {
  71. border-radius: 30px;
  72. border: 1px solid #bdbdbd;
  73. position: absolute;
  74. top: 4px;
  75. left: 20px;
  76. width: 24px;
  77. text-align: center;
  78. vertical-align: middle;
  79. font-size: 20px;
  80. }
  81. .toast-item-wrapper.warning {
  82. background-color: #fff1c0;
  83. border: 1px solid #f0c948;
  84. color: #333; }
  85. .toast-item-wrapper.notice {
  86. background-color: #48a9f8;
  87. border: 1px solid #208ce4; }
  88. .toast-item-wrapper.info {
  89. background-color: #7f97a3;
  90. border: 1px solid #6b8699; }
  91. .toast-item-wrapper.toast-top-left {
  92. left: 20px;
  93. top: 20px; }
  94. .toast-item-wrapper.toast-top-right {
  95. right: 20px;
  96. top: 20px; }
  97. .toast-item-wrapper.toast-top-center {
  98. font-size: 15px;
  99. padding: 5px;
  100. color: #fff;
  101. opacity: 0.39;
  102. background: #050505;
  103. border-radius: 8px;
  104. min-width: 240px !important;
  105. position: absolute;
  106. margin-left: 5px;
  107. top: 0%;
  108. margin-top: 160px;
  109. left: 50%;
  110. -ms-transform: translate(-50%,-50%);
  111. -moz-transform: translate(-50%,-50%);
  112. -o-transform: translate(-50%,-50%);
  113. transform: translate(-50%,-50%);
  114. }
  115. .toast-item-wrapper.toast-bottom-left {
  116. left: 20px;
  117. bottom: 20px; }
  118. .toast-item-wrapper.toast-bottom-right {
  119. right: 20px;
  120. bottom: 20px; }
  121. .toast-item-wrapper.toast-bottom-center {
  122. margin: 0 auto;
  123. bottom: 20px; }
  124. .toast-item-wrapper.fullscreen {
  125. left: 20px;
  126. right: 20px;
  127. width: calc(100% - 40px); }
  128. .toast-item-wrapper p {
  129. margin: 0; }
  130. .toast-item-wrapper .toast-message {
  131. text-align: center;
  132. font-size: 15px; }
  133. .toast-item-wrapper .toast-progress {
  134. width: 0;
  135. height: 3px;
  136. background-color: rgba(0, 0, 0, 0.5);
  137. position: absolute;
  138. bottom: 0;
  139. right: 0; }
  140. .toast-item-wrapper.rtl {
  141. direction: rtl;
  142. text-align: right; }
  143. .toast-item-wrapper.rtl i.toast-icon {
  144. left: auto;
  145. right: 0; }
  146. .toast-item-wrapper.rtl .toast-close {
  147. right: auto;
  148. left: 0; }
  149. .toast-item-wrapper.rtl p {
  150. text-align: right; }
  151. .toast-item-wrapper.rtl .toast-progress {
  152. left: auto;
  153. right: 0; }