message.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. }
  46. .t-message__text {
  47. display: inline-block;
  48. }
  49. .t-message__text-wrap {
  50. flex: 1 1 auto;
  51. overflow-x: hidden;
  52. text-overflow: ellipsis;
  53. line-height: 44rpx;
  54. }
  55. .t-message__text-nowrap {
  56. word-break: keep-all;
  57. white-space: nowrap;
  58. }
  59. .t-message--info {
  60. color: #0052d9;
  61. }
  62. .t-message--success {
  63. color: #00a870;
  64. }
  65. .t-message--warning {
  66. color: #ed7b2f;
  67. }
  68. .t-message--error {
  69. color: #e34d59;
  70. }
  71. .t-message .t-message__icon--left {
  72. margin-right: 16rpx;
  73. }
  74. .t-message .t-message__icon--right,
  75. .t-message .t-message__btn--right {
  76. flex: 0 0 auto;
  77. margin-left: 16rpx;
  78. }
  79. .t-message .t-message__btn--right {
  80. font-size: inherit;
  81. line-height: inherit;
  82. height: 44rpx;
  83. line-height: 44rpx;
  84. border-radius: 8rpx;
  85. border-color: inherit;
  86. color: inherit;
  87. min-height: 0;
  88. background: transparent;
  89. }