index.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @import (reference) './variable.less';
  2. @noticeBarPrefix: ant-notice-bar;
  3. .@{noticeBarPrefix} {
  4. position: relative;
  5. display: flex;
  6. height: 75 * @rpx;
  7. align-items: center;
  8. overflow: hidden;
  9. padding: @v-spacing-standard @h-spacing-large;
  10. font-size: @notice-font-size;
  11. color: @notice-color;
  12. background-color: @notice-background-color;
  13. box-sizing: border-box;
  14. &-error {
  15. color: @notice-error-color;
  16. background-color: @notice-error-background-color;
  17. &-scroll-left,
  18. &-scroll-right {
  19. background: @notice-error-background-color;
  20. }
  21. }
  22. &-primary {
  23. color: @notice-primary-color;
  24. background-color: @notice-primary-background-color;
  25. &-scroll-left,
  26. &-scroll-right {
  27. background: @notice-primary-background-color;
  28. }
  29. }
  30. &-info {
  31. color: @COLOR_WHITE;
  32. background: @COLOR_TEXT_SECONDARY;
  33. &-scroll-left,
  34. &-scroll-right {
  35. background: @COLOR_TEXT_SECONDARY;
  36. }
  37. }
  38. &-icon {
  39. margin-right: @h-spacing-standard;
  40. font-size: 36 * @rpx;
  41. &-image-image {
  42. width: 36 * @rpx;
  43. height: 36 * @rpx;
  44. }
  45. }
  46. &-content {
  47. position: relative;
  48. z-index: 2;
  49. flex: 1 100%;
  50. overflow: hidden;
  51. vertical-align: middle;
  52. line-height: @default-line-height;
  53. }
  54. &-marquee {
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. vertical-align: middle;
  59. }
  60. &-operation {
  61. display: flex;
  62. align-items: center;
  63. &-icon {
  64. margin-left: 24 * @rpx;
  65. }
  66. }
  67. }
  68. .ant-icon-size-x-small {
  69. font-size: 18px;
  70. }