message.wxss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-message {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. right: 0;
  33. display: flex;
  34. justify-content: flex-start;
  35. align-items: center;
  36. z-index: 15000;
  37. color: #0052d9;
  38. padding: 24rpx 32rpx;
  39. box-sizing: border-box;
  40. border-radius: 8rpx;
  41. font-size: 28rpx;
  42. line-height: 1;
  43. background: #ffffff;
  44. box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
  45. opacity: 0;
  46. }
  47. .t-message__text {
  48. display: inline-block;
  49. }
  50. .t-message__text-wrap {
  51. flex: 1 1 auto;
  52. overflow-x: hidden;
  53. text-overflow: ellipsis;
  54. line-height: 44rpx;
  55. }
  56. .t-message__text-nowrap {
  57. word-break: keep-all;
  58. white-space: nowrap;
  59. }
  60. .t-message--info {
  61. color: #0052d9;
  62. }
  63. .t-message--success {
  64. color: #00a870;
  65. }
  66. .t-message--warning {
  67. color: #ed7b2f;
  68. }
  69. .t-message--error {
  70. color: #e34d59;
  71. }
  72. .t-message .t-message__icon--left {
  73. margin-right: 16rpx;
  74. }
  75. .t-message .t-message__icon--right,
  76. .t-message .t-message__btn--right {
  77. flex: 0 0 auto;
  78. margin-left: 16rpx;
  79. }
  80. .t-message .t-message__btn--right {
  81. font-size: inherit;
  82. line-height: inherit;
  83. height: 44rpx;
  84. line-height: 44rpx;
  85. border-radius: 8rpx;
  86. border-color: inherit;
  87. color: inherit;
  88. min-height: 0;
  89. background: transparent;
  90. }