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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.cl-topbar {
    display: flex;
    align-items: center;
    height: $cl-topbar-height;
    width: 100%;
    position: relative;
    box-sizing: border-box;
 
    &__content {
        width: 100%;
    }
 
    &__text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
 
        text {
            width: 500rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
 
    &__title {
        font-size: 14px;
 
        &:last-child {
            font-size: 16px;
        }
    }
 
    &__description {
        font-size: 12px;
        color: #999;
        line-height: 1;
    }
 
    &__prepend,
    &__append {
        display: flex;
        align-items: center;
        height: $cl-topbar-height;
        position: absolute;
 
        /* #ifdef MP */
        & > view {
            display: flex;
        }
        /* #endif */
    }
 
    &__prepend {
        left: 0;
    }
 
    &__append {
        right: 0;
    }
 
    &__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 80rpx;
        font-size: 22px;
 
        &:active {
            opacity: 0.8;
        }
    }
 
    &.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
 
    &.is-border {
        border-bottom: $cl-border-width solid #f6f7fa;
    }
 
    &.is-ios {
        .cl-topbar__title {
            font-weight: bold;
        }
    }
 
    &.with-mp {
        /* #ifdef MP */
        padding-right: 180rpx;
        /* #endif */
    }
}