0f822c9b
梁灏
add Input component
|
1
2
3
4
5
6
7
8
|
@input-prefix-cls: ~"@{css-prefix}input";
.@{input-prefix-cls} {
.input;
&-wrapper{
display: inline-block;
width: 100%;
position: relative;
|
8a83e7c4
梁灏
update Form
|
9
|
vertical-align: middle;
|
b30250a7
Chavy
fixed: #2219 & Co...
|
10
11
12
|
// #2149 & #2219
line-height: normal
|
0f822c9b
梁灏
add Input component
|
13
14
|
}
&-icon {
|
3c01d81a
梁灏
fixed Modal bug,w...
|
15
|
width: 32px;
|
12418c6a
梁灏
fixed #74
|
16
17
|
height: @input-height-base;
line-height: @input-height-base;
|
0f822c9b
梁灏
add Input component
|
18
19
20
21
22
|
font-size: 16px;
text-align: center;
color: @subsidiary-color;
position: absolute;
right: 0;
|
319f5f86
梁灏
fixed #554
|
23
|
z-index: 3;
|
12418c6a
梁灏
fixed #74
|
24
|
}
|
f4e462c0
梁灏
#554
|
25
26
27
|
&-hide-icon &-icon{
display: none;
}
|
20766f28
梁灏
update Input
|
28
29
30
|
&-icon-validate{
display: none;
}
|
12418c6a
梁灏
fixed #74
|
31
|
|
a73ae72b
梁灏
fixed #2884
|
32
33
34
35
36
37
38
39
40
41
|
&-icon-clear{
display: none;
}
&-wrapper:hover{
.@{input-prefix-cls}-icon-clear{
display: inline-block;
}
}
|
ef090131
梁灏
optimize Input va...
|
42
|
&-icon-normal + &{
|
77f7bb95
梁灏
add Transfer comp...
|
43
44
|
padding-right: 32px;
}
|
f4e462c0
梁灏
#554
|
45
46
47
48
|
// #554
&-hide-icon &-icon-normal + &{
padding-right: @input-padding-horizontal;
}
|
77f7bb95
梁灏
add Transfer comp...
|
49
|
|
12418c6a
梁灏
fixed #74
|
50
51
52
53
54
55
56
57
58
59
|
&-wrapper-large &-icon{
font-size: 18px;
height: @input-height-large;
line-height: @input-height-large;
}
&-wrapper-small &-icon{
width: 24px;
font-size: 14px;
height: @input-height-small;
line-height: @input-height-small;
|
0f822c9b
梁灏
add Input component
|
60
|
|
d061790f
Aresn
fixed #1174
|
61
62
63
|
//+ .@{input-prefix-cls} {
// padding-right: 24px;
//}
|
0f822c9b
梁灏
add Input component
|
64
|
}
|
42d5412a
梁灏
Input add prop pr...
|
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
|
// prefix & suffix
&-prefix, &-suffix{
width: 32px;
height: 100%;
text-align: center;
position: absolute;
left: 0;
top: 0;
z-index: 1;
i{
font-size: 16px;
line-height: @input-height-base;
color: @subsidiary-color;
}
}
&-suffix{
left: auto;
right: 0;
}
&-wrapper-small &-prefix, &-wrapper-small &-suffix{
i{
font-size: 14px;
line-height: @input-height-small;
}
}
&-wrapper-large &-prefix, &-wrapper-large &-suffix{
i{
font-size: 18px;
line-height: @input-height-large;
}
}
&-with-prefix{
padding-left: 32px;
}
&-with-suffix{
padding-right: 32px;
}
|
e2a877c4
梁灏
Input add search ...
|
104
105
106
107
108
109
110
111
112
113
114
115
|
// search
&-search{
cursor: pointer;
padding: 0 16px !important;
background: @primary-color !important;
color: #fff !important;
border-color: @primary-color !important;
transition: all @transition-time @ease-in-out;
position: relative;
z-index: 2;
|
9f249603
梁灏
update Input style
|
116
117
118
119
|
i{
font-size: 16px;
}
|
e2a877c4
梁灏
Input add search ...
|
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
&:hover{
background: tint(@primary-color, 20%) !important;
border-color: tint(@primary-color, 20%) !important;
}
&:active{
background: shade(@primary-color, 5%) !important;
border-color: shade(@primary-color, 5%) !important;
}
&-icon{
cursor: pointer;
transition: color @transition-time @ease-in-out;
&:hover{
color: inherit;
}
}
&:before{
content: '';
display: block;
width: 1px;
position: absolute;
top: -1px;
bottom: -1px;
left: -1px;
background: inherit;
}
}
|
9f249603
梁灏
update Input style
|
148
149
150
151
152
153
154
155
156
157
158
159
|
&-wrapper-small &-search{
padding: 0 12px !important;
i{
font-size: 14px;
}
}
&-wrapper-large &-search{
padding: 0 20px !important;
i{
font-size: 18px;
}
}
|
e2a877c4
梁灏
Input add search ...
|
160
161
162
163
164
165
166
|
&-with-search{
&:hover{
.@{input-prefix-cls} {
border-color: tint(@primary-color, 20%);
}
}
}
|
0f822c9b
梁灏
add Input component
|
167
168
169
170
|
}
.@{input-prefix-cls}-group{
.input-group(~"@{input-prefix-cls}");
|
e93f1e9a
梁灏
update some styles
|
171
172
173
174
175
176
177
178
179
180
181
182
|
}
.@{form-item-prefix-cls}-error{
.@{input-prefix-cls}{
.input-error;
&-icon{
color: @error-color;
}
}
.@{input-prefix-cls}-group{
.input-group-error;
}
|
aa9fc758
梁灏
update Transfer
|
183
184
185
186
187
188
189
190
|
.@{transfer-prefix-cls} {
.@{input-prefix-cls} {
.input;
&-icon{
color: @subsidiary-color;
}
}
}
|
20766f28
梁灏
update Input
|
191
192
193
194
195
196
|
}
.@{form-item-prefix-cls}-validating{
.@{input-prefix-cls}{
&-icon-validate{
display: inline-block;
}
|
ef090131
梁灏
optimize Input va...
|
197
198
199
|
&-icon + .@{input-prefix-cls}{
padding-right: 32px;
}
|
20766f28
梁灏
update Input
|
200
|
}
|
485a9039
梁灏
fixed #2149
|
201
|
}
|