alert-view.css 977 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* 全局文字提示 */
  2. .global-alert {
  3. position: fixed;
  4. top: 50%;
  5. left: 50%;
  6. transform: translate(-50%, -50%) scale(0.8);
  7. z-index: 99999;
  8. opacity: 0;
  9. visibility: hidden;
  10. transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  11. pointer-events: none;
  12. }
  13. .global-alert.show {
  14. opacity: 1;
  15. visibility: visible;
  16. transform: translate(-50%, -50%) scale(1);
  17. }
  18. .alert-message {
  19. padding: 16px 32px;
  20. background: rgba(31, 41, 55, 0.95);
  21. color: white;
  22. border-radius: 12px;
  23. font-size: 15px;
  24. font-weight: 500;
  25. text-align: center;
  26. white-space: nowrap;
  27. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  28. backdrop-filter: blur(8px);
  29. }
  30. @keyframes alert-bounce-in {
  31. 0% {
  32. transform: translate(-50%, -50%) scale(0.8);
  33. opacity: 0;
  34. }
  35. 50% {
  36. transform: translate(-50%, -50%) scale(1.05);
  37. }
  38. 100% {
  39. transform: translate(-50%, -50%) scale(1);
  40. opacity: 1;
  41. }
  42. }