toast.wxss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-toast {
  29. position: fixed;
  30. right: -50%;
  31. left: 50%;
  32. transform: translate(-50%, -50%);
  33. z-index: 12001;
  34. opacity: 1;
  35. transition: opacity 300ms ease;
  36. background-color: rgba(0, 0, 0, 0.6);
  37. border-radius: 8rpx;
  38. font-size: 28rpx;
  39. color: white;
  40. max-width: 374rpx;
  41. width: fit-content;
  42. box-sizing: border-box;
  43. }
  44. .t-toast--column {
  45. padding: 48rpx;
  46. min-width: 272rpx;
  47. min-height: 260rpx;
  48. border-radius: 16rpx;
  49. }
  50. .t-toast__content {
  51. align-items: center;
  52. line-height: 44rpx;
  53. }
  54. .t-toast__content--row {
  55. display: flex;
  56. text-align: left;
  57. padding: 28rpx 44rpx;
  58. }
  59. .t-toast__content--column {
  60. display: flex;
  61. flex-direction: column;
  62. justify-content: center;
  63. align-items: center;
  64. }
  65. .t-toast__icon--row {
  66. display: flex;
  67. }
  68. .t-toast__text {
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. -webkit-line-clamp: 3;
  72. display: -webkit-box;
  73. -webkit-box-orient: vertical;
  74. }
  75. .t-toast__text--column {
  76. margin-top: 24rpx;
  77. }
  78. .t-toast__text--row {
  79. margin-left: 12rpx;
  80. }
  81. .t-toast.t-fade-enter,
  82. .t-toast.t-fade-leave-to {
  83. opacity: 0;
  84. }