notice-bar.wxss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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-notice-bar {
  29. display: flex;
  30. align-items: flex-start;
  31. padding: 24rpx 32rpx;
  32. font-size: 28rpx;
  33. }
  34. .t-notice-bar__content-wrap {
  35. flex: 1;
  36. overflow-x: hidden;
  37. line-height: 44rpx;
  38. }
  39. .t-notice-bar__content {
  40. display: inline-block;
  41. white-space: nowrap;
  42. }
  43. .t-notice-bar__content-wrapable {
  44. white-space: normal;
  45. }
  46. .t-notice-bar__prefix-icon,
  47. .t-notice-bar__suffix-icon {
  48. font-size: 44rpx;
  49. }
  50. .t-notice-bar__prefix-icon:not(:empty) {
  51. margin-right: 16rpx;
  52. }
  53. .t-notice-bar__extrq:not(:empty),
  54. .t-notice-bar__suffix-icon:not(:empty) {
  55. margin-left: 16rpx;
  56. }
  57. .t-notice-bar--info {
  58. color: #0052d9;
  59. background-color: #ecf2fe;
  60. }
  61. .t-notice-bar--success {
  62. color: #00a870;
  63. background-color: #e8f8f2;
  64. }
  65. .t-notice-bar--warning {
  66. color: #ed7b2f;
  67. background-color: #fef3e6;
  68. }
  69. .t-notice-bar--error {
  70. color: #e34d59;
  71. background-color: #fdecee;
  72. }