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
| .cl-image {
| flex-shrink: 0;
| position: relative;
| font-size: $cl-font-size;
| overflow: hidden;
|
| &__target {
| display: inline-block;
| height: 100%;
| width: 100%;
| max-height: 100%;
| max-width: 100%;
| border-radius: inherit;
| }
|
| &__loading,
| &__placeholder {
| position: absolute;
| left: 0;
| top: 0;
| }
|
| &__loading,
| &__placeholder,
| &__error {
| height: 100%;
| width: 100%;
| display: flex;
| flex-direction: column;
| justify-content: center;
| align-items: center;
|
| .icon {
| font-size: 50rpx;
| color: $cl-color-info;
| }
| }
|
| &__loading {
| background-color: #f6f7fa;
| }
|
| &__error {
| text-align: center;
| color: $cl-color-info;
| border-radius: inherit;
|
| .text {
| font-size: 24rpx;
| }
| }
|
| &.is-round {
| .cl-image__placeholder,
| .cl-image__error,
| .cl-image__target {
| border-radius: 100%;
| }
| }
|
| &.is-error {
| background-color: #f6f7fa;
| }
| }
|
|