toptips.wxss 888 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .weui-toptips {
  2. position: fixed;
  3. -webkit-transform: translateZ(0) translateY(calc(-100% - 8px));
  4. transform: translateZ(0) translateY(calc(-100% - 8px));
  5. text-align: center;
  6. top: 8px;
  7. left: 16px;
  8. right: 16px;
  9. border-radius: 4px;
  10. padding: 8px;
  11. -webkit-border-radius: 4px;
  12. color: rgba(255, 255, 255, 0.9);
  13. font-size: 17px;
  14. line-height: 1.4;
  15. background: rgba(250, 81, 81, 0.9);
  16. z-index: 5000;
  17. word-wrap: break-word;
  18. word-break: break-all;
  19. -webkit-transition: all .4s ease-in-out;
  20. transition: all .4s ease-in-out
  21. }
  22. .weui-toptips_show {
  23. -webkit-transform: translateZ(0) translateY(0);
  24. transform: translateZ(0) translateY(0);
  25. opacity: 1
  26. }
  27. .weui-toptips_warn {
  28. background-color: #FA5151
  29. }
  30. .weui-toptips_success {
  31. background-color: #09BB07
  32. }
  33. .weui-toptips_error {
  34. background-color: #FA5151
  35. }
  36. .weui-toptips_info {
  37. background-color: #10AEFF
  38. }