confirm-view.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .global-confirm-overlay {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. bottom: 0;
  7. background: rgba(0, 0, 0, 0.6);
  8. display: none;
  9. align-items: center;
  10. justify-content: center;
  11. z-index: 100001;
  12. backdrop-filter: blur(4px);
  13. }
  14. .global-confirm-overlay.show {
  15. display: flex;
  16. animation: overlayFadeIn 0.3s ease-out;
  17. }
  18. @keyframes overlayFadeIn {
  19. from {
  20. background: rgba(0, 0, 0, 0);
  21. backdrop-filter: blur(0);
  22. }
  23. to {
  24. background: rgba(0, 0, 0, 0.6);
  25. backdrop-filter: blur(4px);
  26. }
  27. }
  28. .global-confirm-dialog {
  29. background: white;
  30. border-radius: 16px;
  31. box-shadow:
  32. 0 20px 60px rgba(0, 0, 0, 0.3),
  33. 0 0 0 1px rgba(0, 0, 0, 0.05);
  34. min-width: 420px;
  35. max-width: 520px;
  36. animation: confirmSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  37. }
  38. @keyframes confirmSlideIn {
  39. from {
  40. opacity: 0;
  41. transform: translateY(-30px) scale(0.95);
  42. }
  43. to {
  44. opacity: 1;
  45. transform: translateY(0) scale(1);
  46. }
  47. }
  48. .confirm-content {
  49. padding: 36px 32px 24px;
  50. }
  51. .confirm-message {
  52. font-size: 17px;
  53. line-height: 1.7;
  54. color: #1f2937;
  55. white-space: pre-wrap;
  56. font-weight: 400;
  57. letter-spacing: 0.2px;
  58. }
  59. .confirm-actions {
  60. padding: 0 32px 32px;
  61. display: flex;
  62. gap: 12px;
  63. justify-content: flex-end;
  64. }
  65. .confirm-btn {
  66. padding: 12px 28px;
  67. border: none;
  68. border-radius: 8px;
  69. font-size: 15px;
  70. cursor: pointer;
  71. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  72. font-weight: 500;
  73. letter-spacing: 0.3px;
  74. min-width: 90px;
  75. }
  76. .confirm-cancel {
  77. background: #f3f4f6;
  78. color: #6b7280;
  79. border: 1px solid #e5e7eb;
  80. }
  81. .confirm-cancel:hover {
  82. background: #e5e7eb;
  83. color: #4b5563;
  84. border-color: #d1d5db;
  85. }
  86. .confirm-cancel:active {
  87. transform: scale(0.98);
  88. }
  89. .confirm-ok {
  90. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  91. color: white;
  92. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  93. }
  94. .confirm-ok:hover {
  95. box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  96. transform: translateY(-1px);
  97. }
  98. .confirm-ok:active {
  99. transform: translateY(0) scale(0.98);
  100. }