toast.css 879 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .toast{
  2. position: absolute;
  3. top: 0;
  4. width: 65%;
  5. left: 0;
  6. right: 0;
  7. margin: 0 auto;
  8. opacity: 0.8;
  9. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  10. z-index: 9999 !important;
  11. padding: 15px;
  12. border-radius: 3px;
  13. color: #ffffff;
  14. display: none;
  15. }
  16. .toast .message{
  17. padding-left: 50px;
  18. display: inline-block;
  19. font-size: 14px;
  20. }
  21. .toast i.icon{
  22. font-size: 25px;
  23. position: absolute;
  24. left: 23px;
  25. top: 13px;
  26. }
  27. .toast.success{
  28. background: rgba(16, 196, 105, 0.8);
  29. border: 2px solid #10c469
  30. }
  31. .toast.error{
  32. background-color: rgba(255, 91, 91, 0.8);
  33. border: 2px solid #ff5b5b;
  34. }
  35. .toast.warning {
  36. background-color: rgba(249, 200, 81, 0.8);
  37. border: 2px solid #f9c851;
  38. }
  39. .toast.info {
  40. background-color: rgba(53, 184, 224, 0.8);
  41. border: 2px solid #35b8e0;
  42. }