运维小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notice-bar.wxss 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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-text-color-primary, 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. display: block;
  49. height: 44rpx;
  50. line-height: 44rpx;
  51. }
  52. .t-notice-bar__content--vertical-item {
  53. overflow: hidden;
  54. text-overflow: ellipsis;
  55. white-space: nowrap;
  56. }
  57. .t-notice-bar__prefix-icon {
  58. color: inherit;
  59. }
  60. .t-notice-bar__prefix-icon:not(:empty) {
  61. padding-right: var(--td-spacer, 16rpx);
  62. }
  63. .t-notice-bar__suffix-icon {
  64. color: var(--td-notice-bar-suffix-icon-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
  65. }
  66. .t-notice-bar__prefix-icon,
  67. .t-notice-bar__suffix-icon {
  68. font-size: 44rpx;
  69. }
  70. .t-notice-bar__operation {
  71. display: inline-flex;
  72. vertical-align: top;
  73. color: var(--td-notice-bar-operation-font-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  74. font-weight: 700;
  75. }
  76. .t-notice-bar__suffix-icon:not(:empty) {
  77. padding-left: var(--td-spacer, 16rpx);
  78. }
  79. .t-notice-bar--info {
  80. color: var(--td-notice-bar-info-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  81. background-color: var(--td-notice-bar-info-bg-color, var(--td-brand-color-light, var(--td-primary-color-1, #f2f3ff)));
  82. }
  83. .t-notice-bar--success {
  84. color: var(--td-notice-bar-success-color, var(--td-success-color, var(--td-success-color-5, #2ba471)));
  85. background-color: var(--td-notice-bar-success-bg-color, var(--td-success-color-1, #e3f9e9));
  86. }
  87. .t-notice-bar--warning {
  88. color: var(--td-notice-bar-warning-color, var(--td-warning-color, var(--td-warning-color-5, #e37318)));
  89. background-color: var(--td-notice-bar-warning-bg-color, var(--td-warning-color-1, #fff1e9));
  90. }
  91. .t-notice-bar--error {
  92. color: var(--td-notice-bar-error-color, var(--td-error-color-6, #d54941));
  93. background-color: var(--td-notice-bar-error-bg-color, var(--td-error-color-1, #fff0ed));
  94. }