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
.cl-toast {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 26rpx;
    padding: 40rpx;
    max-width: 80%;
    background-color: rgba(50, 50, 50, 0.9);
    color: #ffffff;
    line-height: 1;
 
    &__icon {
        margin-bottom: 20rpx;
 
        text {
            font-size: 60rpx;
        }
 
        image {
            display: block;
            height: 60rpx;
            width: 60rpx;
        }
    }
 
    &__content {
        font-size: 28rpx;
        text-align: center;
    }
 
    &.is-icon {
        min-width: 110rpx;
    }
}
 
.cl-toast__wrap {
    .cl-popup {
        width: 100% !important;
 
        &__wrapper {
            pointer-events: none !important;
 
            &--top {
                top: 100rpx;
                top: calc(env(safe-area-inset-top) + 100rpx);
            }
 
            &--bottom {
                bottom: 100rpx;
                bottom: calc(env(safe-area-inset-bottom) + 100rpx);
            }
        }
 
        &__container {
            text-align: center;
            width: 100%;
        }
    }
}