Web Developer Work - I
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. .alert-overlay {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. background-color: rgba(0, 0, 0, 0.4);
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. z-index: 9999;
  12. }
  13. .alert-box {
  14. background-color: #fff;
  15. padding: 2rem;
  16. border-radius: 12px;
  17. width: 320px;
  18. text-align: center;
  19. font-family: 'Segoe UI', sans-serif;
  20. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  21. position: relative;
  22. animation: fadeIn 0.3s ease-in-out;
  23. }
  24. .alert-icon {
  25. font-size: 48px;
  26. margin-bottom: 0.5rem;
  27. }
  28. .alert-title {
  29. font-size: 1.4rem;
  30. font-weight: 600;
  31. margin-bottom: 0.5rem;
  32. }
  33. .alert-message {
  34. font-size: 1rem;
  35. margin-bottom: 1.2rem;
  36. color: #555;
  37. }
  38. .alert-button {
  39. padding: 0.6rem 1.2rem;
  40. border: none;
  41. border-radius: 6px;
  42. color: #fff;
  43. font-weight: bold;
  44. cursor: pointer;
  45. }
  46. .alert-success {
  47. background-color: #e6fff2;
  48. color: #2e7d32;
  49. }
  50. .alert-success .alert-button {
  51. background-color: #4caf50;
  52. }
  53. .alert-error {
  54. background-color: #ffe6e6;
  55. color: #c62828;
  56. }
  57. .alert-error .alert-button {
  58. background-color: #f44336;
  59. }
  60. .alert-close {
  61. position: absolute;
  62. top: 12px;
  63. right: 16px;
  64. background: none;
  65. border: none;
  66. font-size: 20px;
  67. cursor: pointer;
  68. color: #777;
  69. }
  70. @keyframes fadeIn {
  71. from {
  72. opacity: 0;
  73. transform: scale(0.95);
  74. }
  75. to {
  76. opacity: 1;
  77. transform: scale(1);
  78. }
  79. }