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
.cl-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: $cl-font-size;
    overflow: hidden;
    box-sizing: border-box;
 
    &--circle {
        border-radius: 100%;
    }
 
    &--square {
        border-radius: $cl-border-radius;
    }
 
    &__placeholder {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: $cl-color-disabled;
        color: #fff;
    }
 
    &__error {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: $cl-color-placeholder;
        color: #fff;
    }
 
    &__target,
    &__placeholder,
    &__error {
        height: 100%;
        width: 100%;
    }
}
 
.cl-avatar-group {
    display: inline-flex;
 
    .cl-avatar {
        border: $cl-border-width solid rgba(255, 255, 255, 0.2);
        position: relative;
    }
 
    .cl-avatar + .cl-avatar,
    cl-avatar + cl-avatar {
        margin-left: -20rpx;
    }
 
    &__more {
        background-color: $cl-color-primary;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
 
        &::before {
            content: "+";
            position: relative;
            top: -2rpx;
            right: 2rpx;
        }
    }
}