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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
| .cl-input {
| display: flex;
| height: $cl-height;
| width: 100%;
| vertical-align: middle;
| position: relative;
| border-radius: $cl-border-radius;
| box-sizing: border-box;
| transition: border-color 0.2s;
| padding: 0 20rpx;
| background-color: #fff;
| font-size: $cl-font-size;
|
| &--focus {
| border-color: rgba($cl-color-primary, 0.7);
| }
|
| &__wrap {
| display: flex;
| align-items: center;
| flex: 1;
| height: 100%;
| position: relative;
| }
|
| &__inner {
| height: 100%;
| flex: 1;
| border: 0;
| padding: 0;
| outline: none;
| background-color: transparent;
| font-size: inherit;
| }
|
| &__prepend,
| &__append {
| display: flex;
| align-items: center;
| }
|
| &__prepend {
| margin-right: 20rpx;
| }
|
| &__append {
| margin-left: 20rpx;
| }
|
| &__icon {
| display: inline-flex;
| align-items: center;
| justify-content: center;
| height: 100%;
| font-size: 34rpx;
| color: #999;
| cursor: pointer;
| }
|
| &__clear {
| display: inline-flex;
| align-items: center;
| justify-content: center;
| color: $cl-color-placeholder;
| margin-left: 20rpx;
| height: 100%;
| font-size: 28rpx;
| position: relative;
| z-index: 9;
| }
|
| &__readonly {
| position: absolute;
| left: 0;
| top: 0;
| height: 100%;
| width: 100%;
| z-index: 2;
| }
|
| &:not(.is-disabled) {
| -webkit-box-shadow: 0 0 0 1000px transparent inset;
| }
|
| &--prefix,
| &--suffix {
| flex-shrink: 0;
| }
|
| &--prefix {
| .cl-input__icon {
| margin-right: 20rpx;
| }
| }
|
| &--suffix {
| .cl-input__icon {
| margin-left: 20rpx;
| }
| }
|
| &.is-border {
| border: $cl-border-width solid $cl-border-color;
| }
|
| &.is-disabled {
| background-color: $cl-color-disabled-bg;
|
| .cl-input__inner {
| color: $cl-color-disabled;
| }
| }
|
| &.is-round {
| border-radius: 100rpx;
| }
| }
|
| .cl-form-item--error {
| input {
| border-color: $cl-color-error;
| }
| }
|
|