notice-bar.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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: 26rpx 32rpx;
  32. font-size: var(--td-font-size-base, 28rpx);
  33. }
  34. .t-notice-bar__content-wrap {
  35. flex: 1;
  36. overflow-x: hidden;
  37. line-height: 44rpx;
  38. color: var(--td-notice-bar-font-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  39. }
  40. .t-notice-bar__content {
  41. display: inline-block;
  42. white-space: nowrap;
  43. }
  44. .t-notice-bar__content-wrapable {
  45. white-space: normal;
  46. }
  47. .t-notice-bar__content--vertical {
  48. height: 44rpx;
  49. line-height: 44rpx;
  50. }
  51. .t-notice-bar__content--vertical-item {
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. white-space: nowrap;
  55. }
  56. .t-notice-bar__prefix-icon {
  57. color: inherit;
  58. }
  59. .t-notice-bar__prefix-icon:not(:empty) {
  60. padding-right: var(--td-spacer, 16rpx);
  61. }
  62. .t-notice-bar__suffix-icon {
  63. color: var(--td-notice-bar-suffix-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  64. }
  65. .t-notice-bar__prefix-icon,
  66. .t-notice-bar__suffix-icon {
  67. font-size: 44rpx;
  68. }
  69. .t-notice-bar__extra {
  70. color: var(--td-notice-bar-extra-font-color, var(--td-primary-color-8, #0052d9));
  71. line-height: 44rpx;
  72. font-weight: 700;
  73. }
  74. .t-notice-bar__extra:not(:empty),
  75. .t-notice-bar__suffix-icon:not(:empty) {
  76. padding-left: var(--td-spacer, 16rpx);
  77. }
  78. .t-notice-bar--info {
  79. color: var(--td-notice-bar-info-color, var(--td-primary-color-8, #0052d9));
  80. background-color: var(--td-notice-bar-info-bg-color, var(--td-primary-color-1, #ecf2fe));
  81. }
  82. .t-notice-bar--success {
  83. color: var(--td-notice-bar-success-color, var(--td-success-color-5, #00a870));
  84. background-color: var(--td-notice-bar-success-bg-color, var(--td-success-color-1, #e8f8f2));
  85. }
  86. .t-notice-bar--warning {
  87. color: var(--td-notice-bar-warning-color, var(--td-warning-color-5, #ed7b2f));
  88. background-color: var(--td-notice-bar-warning-bg-color, var(--td-warning-color-1, #fef3e6));
  89. }
  90. .t-notice-bar--error {
  91. color: var(--td-notice-bar-error-color, var(--td-error-color-6, #e34d59));
  92. background-color: var(--td-notice-bar-error-bg-color, var(--td-error-color-1, #fdecee));
  93. }