toptips.wxss 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. display: block
  27. }
  28. .weui-toptips_warn {
  29. background-color: #FA5151
  30. }
  31. .weui-toptips_success {
  32. background-color: #09BB07
  33. }
  34. .weui-toptips_error {
  35. background-color: #FA5151
  36. }
  37. .weui-toptips_info {
  38. background-color: #10AEFF
  39. }