啊鑫
2025-07-17 eaa506e57403d1b8502f16ca5dd6e82c347724d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@import '../style/var';
 
.van-notice-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: @notice-bar-height;
  padding: @notice-bar-padding;
  color: @notice-bar-text-color;
  font-size: @notice-bar-font-size;
  line-height: @notice-bar-line-height;
  background-color: @notice-bar-background-color;
 
  &__left-icon,
  &__right-icon {
    min-width: @notice-bar-icon-min-width;
    font-size: @notice-bar-icon-size;
  }
 
  &__right-icon {
    text-align: right;
    cursor: pointer;
  }
 
  &__wrap {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    height: 100%;
    overflow: hidden;
  }
 
  &__content {
    position: absolute;
    white-space: nowrap;
    transition-timing-function: linear;
 
    &.van-ellipsis {
      max-width: 100%;
    }
  }
 
  &--wrapable {
    height: auto;
    padding: @notice-bar-wrapable-padding;
 
    .van-notice-bar {
      &__wrap {
        height: auto;
      }
 
      &__content {
        position: relative;
        white-space: normal;
        word-wrap: break-word;
      }
    }
  }
}