alert.wxss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .tui-alert-box {
  2. position: fixed;
  3. width: 560rpx;
  4. left: 50%;
  5. top: 50%;
  6. background: #fff;
  7. transition: all 0.3s ease-in-out;
  8. transform: translate(-50%, -50%) scale(0);
  9. opacity: 0;
  10. border-radius: 6rpx;
  11. overflow: hidden;
  12. z-index: 99998;
  13. }
  14. .tui-alert-show {
  15. transform: translate(-50%, -50%) scale(1);
  16. opacity: 1;
  17. }
  18. .tui-alert-mask {
  19. width: 100%;
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. right: 0;
  24. bottom: 0;
  25. background: rgba(0, 0, 0, 0.5);
  26. z-index: 99996;
  27. transition: all 0.3s ease-in-out;
  28. opacity: 0;
  29. visibility: hidden;
  30. }
  31. .tui-alert-mask-show {
  32. visibility: visible;
  33. opacity: 1;
  34. }
  35. .tui-alert-content {
  36. text-align: center;
  37. color: #333333;
  38. padding: 98rpx 48rpx 92rpx 48rpx;
  39. box-sizing: border-box;
  40. word-break: break-all;
  41. }
  42. .tui-alert-btn {
  43. width: 100%;
  44. height: 90rpx;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. background: #fff;
  49. box-sizing: border-box;
  50. position: relative;
  51. font-size: 32rpx;
  52. line-height: 32rpx;
  53. }
  54. .tui-alert-btn-hover {
  55. background: #f7f7f7;
  56. }
  57. .tui-alert-btn::before {
  58. width: 100%;
  59. content: "";
  60. position: absolute;
  61. border-top: 1rpx solid #E0E0E0;
  62. -webkit-transform: scaleY(0.5);
  63. transform: scaleY(0.5);
  64. left: 0;
  65. top: 0;
  66. }