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
cl-text {
    line-height: 1;
}
 
.cl-text {
    display: inline-flex;
    align-items: center;
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;
    font-size: $cl-font-size;
 
    &.is-bold {
        font-weight: 500;
    }
 
    &.is-block {
        display: flex;
    }
 
    &.is-line-through {
        text-decoration: line-through;
    }
 
    &.is-underline {
        .cl-text__value {
            text-decoration: underline;
        }
    }
 
    &.is-ellipsis {
        .cl-text__value {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
        }
    }
 
    &.is-copy {
        user-select: text;
    }
 
    &.is-price {
        align-items: baseline;
    }
 
    &.is-color-primary {
        color: $cl-color-primary !important;
    }
 
    &.is-color-success {
        color: $cl-color-success !important;
    }
 
    &.is-color-error {
        color: $cl-color-error !important;
    }
 
    &.is-color-warning {
        color: $cl-color-warning !important;
    }
 
    &.is-color-info {
        color: $cl-color-info !important;
    }
 
    &__value {
        display: inline;
    }
 
    &__symbol--price,
    &__precision {
        font-size: 24rpx;
    }
 
    &__prefix-icon {
        margin-right: 10rpx;
    }
 
    &__suffix-icon {
        margin-left: 10rpx;
    }
 
    &__prefix-icon,
    &__suffix-icon {
        font-size: inherit;
    }
}