wangzhibo
4 天以前 10595d8632f959d0954d1939243196f4eed02372
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
.cl-noticebar {
    display: flex;
    align-items: center;
 
    &__box {
        flex: 1;
        overflow: hidden;
    }
 
    .cl-icon {
        /* #ifdef MP */
        position: relative;
        top: 2rpx;
        /* #endif */
    }
 
    &__scroller {
        position: relative;
 
        &.is-vertical {
            transition: top 0.3s;
            flex-direction: column;
 
            .cl-noticebar__text {
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }
 
        &.is-horizontal {
            display: flex;
            align-items: center;
        }
    }
 
    &__item {
        display: flex;
        align-items: center;
        height: 100%;
    }
 
    &__text {
        font-size: 26rpx;
        line-height: 1;
    }
 
    &.is-scrollable {
        .cl-noticebar__text {
            white-space: nowrap;
        }
    }
}