f2bcd4ad
Graham Fairweather
Color keyboard co...
|
1
|
@color-picker-prefix-cls: ~'@{css-prefix}color-picker';
|
c6faec44
梁灏
init ColorPicker
|
2
3
|
.@{color-picker-prefix-cls} {
|
4109bbc6
梁灏
update ColorPicker
|
4
|
display: inline-block;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
&-hide {
display: none;
&-drop {
visibility: hidden;
}
}
&-disabled {
background-color: @input-disabled-bg;
opacity: 1;
cursor: @cursor-disabled;
color: #ccc;
}
& > div:first-child:hover {
.ivu-input {
border-color: @input-hover-border-color;
}
}
& > div:first-child.@{color-picker-prefix-cls}-disabled:hover {
.ivu-input {
border-color: tint(@input-border-color, 20%);
}
}
|
77950c30
梁灏
update ColorPicker
|
27
28
29
|
& .@{select-dropdown-prefix-cls} {
padding: 0;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
30
31
32
33
|
&-focused {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
&-rel {
|
b6bda1dc
梁灏
update ColorPicker
|
34
35
|
line-height: 0;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
36
|
&-color {
|
9673dcb0
梁灏
update ColorPicker
|
37
38
|
width: 18px;
height: 18px;
|
0aefe4aa
梁灏
update ColorPicker
|
39
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
dab39476
梁灏
update ColorPicker
|
40
|
border-radius: 2px;
|
9673dcb0
梁灏
update ColorPicker
|
41
42
|
position: relative;
top: 2px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
43
|
div {
|
0aefe4aa
梁灏
update ColorPicker
|
44
45
|
width: 100%;
height: 100%;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
46
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
|
0aefe4aa
梁灏
update ColorPicker
|
47
48
|
border-radius: 2px;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
49
|
&-empty {
|
c0fa72ca
梁灏
update ColorPicker
|
50
51
52
|
background: #fff;
overflow: hidden;
text-align: center;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
53
|
i {
|
b30250a7
Chavy
fixed: #2219 & Co...
|
54
|
font-size: 18px;
|
c0fa72ca
梁灏
update ColorPicker
|
55
56
|
}
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
57
58
59
|
&-focused {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
|
9673dcb0
梁灏
update ColorPicker
|
60
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
61
|
&-large &-color {
|
9673dcb0
梁灏
update ColorPicker
|
62
63
64
|
width: 20px;
height: 20px;
top: 1px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
65
66
|
&-empty {
i {
|
b30250a7
Chavy
fixed: #2219 & Co...
|
67
68
69
|
font-size: 20px;
}
}
|
9673dcb0
梁灏
update ColorPicker
|
70
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
71
|
&-small &-color {
|
9673dcb0
梁灏
update ColorPicker
|
72
73
74
|
width: 14px;
height: 14px;
top: 3px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
75
76
|
&-empty {
i {
|
b30250a7
Chavy
fixed: #2219 & Co...
|
77
78
79
|
font-size: 14px;
}
}
|
b6bda1dc
梁灏
update ColorPicker
|
80
|
}
|
9af2f01c
梁灏
update ColorPicker
|
81
|
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
82
83
|
&-picker {
&-wrapper {
|
77950c30
梁灏
update ColorPicker
|
84
85
|
padding: 8px 8px 0;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
86
|
&-panel {
|
59dc2df0
梁灏
update ColorPicker
|
87
|
width: 240px;
|
9af2f01c
梁灏
update ColorPicker
|
88
|
margin: 0 auto;
|
e7893a68
梁灏
update ColorPicker
|
89
90
|
box-sizing: initial;
position: relative;
|
9af2f01c
梁灏
update ColorPicker
|
91
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
92
93
|
&-hue-slider,
&-alpha-slider {
|
e7893a68
梁灏
update ColorPicker
|
94
95
96
|
height: 10px;
margin-top: 8px;
position: relative;
|
9af2f01c
梁灏
update ColorPicker
|
97
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
98
|
&-colors {
|
9af2f01c
梁灏
update ColorPicker
|
99
|
margin-top: 8px;
|
e7893a68
梁灏
update ColorPicker
|
100
|
overflow: hidden;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
101
102
103
104
105
106
107
108
109
110
111
|
outline: 0;
border: 1px solid @input-border-color;
transition: border @transition-time @ease-in-out, box-shadow @transition-time @ease-in-out;
&:hover {
border: 1px solid @input-hover-border-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
&-wrapper {
display: inline;
|
e7893a68
梁灏
update ColorPicker
|
112
113
114
|
width: 20px;
height: 20px;
float: left;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
115
116
117
|
position: relative;
&-color {
outline: 0;
|
9af2f01c
梁灏
update ColorPicker
|
118
|
display: block;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
119
|
position: absolute;
|
9af2f01c
梁灏
update ColorPicker
|
120
121
|
width: 16px;
height: 16px;
|
e7893a68
梁灏
update ColorPicker
|
122
|
margin: 2px;
|
9af2f01c
梁灏
update ColorPicker
|
123
124
|
cursor: pointer;
border-radius: 2px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
border: 1px solid @input-border-color;
transition: border @transition-time @ease-in-out, box-shadow @transition-time @ease-in-out;
&:hover {
border: 1px solid @input-hover-border-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
}
&-circle {
cursor: pointer;
top: 10px;
left: 10px;
position: absolute;
width: 4px;
height: 4px;
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
border-radius: 50%;
transform: translate(-2px, -2px);
|
9af2f01c
梁灏
update ColorPicker
|
144
145
146
|
}
}
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
147
|
.@{picker-prefix-cls}-confirm {
|
9af2f01c
梁灏
update ColorPicker
|
148
149
150
|
margin-top: 8px;
}
}
|
e7893a68
梁灏
update ColorPicker
|
151
|
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
152
153
|
&-saturation {
&-wrapper {
|
e7893a68
梁灏
update ColorPicker
|
154
155
156
157
|
width: 100%;
padding-bottom: 75%;
position: relative;
overflow: hidden;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
158
159
160
161
162
163
164
165
166
167
|
outline: 0;
border: 1px solid @input-border-color;
box-shadow: @shadow-base;
transition: border @transition-time @ease-in-out, box-shadow @transition-time @ease-in-out;
&:hover {
border: 1px solid @input-hover-border-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
|
e7893a68
梁灏
update ColorPicker
|
168
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
169
170
171
|
&,
&--white,
&--black {
|
e7893a68
梁灏
update ColorPicker
|
172
173
174
175
176
177
178
|
cursor: pointer;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
179
180
|
&--white {
background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
e7893a68
梁灏
update ColorPicker
|
181
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
182
183
|
&--black {
background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
|
e7893a68
梁灏
update ColorPicker
|
184
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
185
|
&-pointer {
|
e7893a68
梁灏
update ColorPicker
|
186
187
188
|
cursor: pointer;
position: absolute;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
189
|
&-circle {
|
e7893a68
梁灏
update ColorPicker
|
190
191
|
width: 4px;
height: 4px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
192
|
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
|
e7893a68
梁灏
update ColorPicker
|
193
194
195
196
197
|
border-radius: 50%;
transform: translate(-2px, -2px);
}
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
198
|
&-hue {
|
e7893a68
梁灏
update ColorPicker
|
199
200
201
202
203
204
205
|
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 2px;
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
206
207
208
209
210
211
212
213
214
215
216
|
outline: 0;
border: 1px solid @input-border-color;
box-shadow: @shadow-base;
transition: border @transition-time @ease-in-out, box-shadow @transition-time @ease-in-out;
&:hover {
border: 1px solid @input-hover-border-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
&-container {
|
e7893a68
梁灏
update ColorPicker
|
217
218
219
220
221
|
cursor: pointer;
margin: 0 2px;
position: relative;
height: 100%;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
222
|
&-pointer {
|
e7893a68
梁灏
update ColorPicker
|
223
224
225
|
z-index: 2;
position: absolute;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
226
|
&-picker {
|
e7893a68
梁灏
update ColorPicker
|
227
228
229
230
231
|
cursor: pointer;
margin-top: 1px;
width: 4px;
border-radius: 1px;
height: 8px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
232
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
|
e7893a68
梁灏
update ColorPicker
|
233
234
235
236
237
|
background: #fff;
transform: translateX(-2px);
}
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
238
|
&-alpha {
|
e7893a68
梁灏
update ColorPicker
|
239
240
241
242
243
|
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
244
245
246
247
248
249
250
251
252
253
254
|
outline: 0;
border: 1px solid @input-border-color;
box-shadow: @shadow-base;
transition: border @transition-time @ease-in-out, box-shadow @transition-time @ease-in-out;
&:hover {
border: 1px solid @input-hover-border-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@input-hover-border-color, 20%);
}
&-checkboard-wrap {
|
e7893a68
梁灏
update ColorPicker
|
255
256
257
258
259
260
|
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
|
1f61a559
梁灏
update ColorPicker
|
261
|
border-radius: 2px;
|
e7893a68
梁灏
update ColorPicker
|
262
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
263
|
&-checkerboard {
|
e7893a68
梁灏
update ColorPicker
|
264
265
266
267
268
269
270
|
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
271
|
&-gradient {
|
e7893a68
梁灏
update ColorPicker
|
272
273
274
275
276
|
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
|
1f61a559
梁灏
update ColorPicker
|
277
|
border-radius: 2px;
|
e7893a68
梁灏
update ColorPicker
|
278
|
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
279
|
&-container {
|
e7893a68
梁灏
update ColorPicker
|
280
281
282
283
284
285
|
cursor: pointer;
position: relative;
z-index: 2;
height: 100%;
margin: 0 3px;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
286
|
&-pointer {
|
e7893a68
梁灏
update ColorPicker
|
287
288
289
|
z-index: 2;
position: absolute;
}
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
290
|
&-picker {
|
e7893a68
梁灏
update ColorPicker
|
291
292
293
294
|
cursor: pointer;
width: 4px;
border-radius: 1px;
height: 8px;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
295
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
|
e7893a68
梁灏
update ColorPicker
|
296
297
298
299
300
|
background: #fff;
margin-top: 1px;
transform: translateX(-2px);
}
}
|
59dc2df0
梁灏
update ColorPicker
|
301
|
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
302
303
|
&-confirm {
margin-top: 8px;
|
59dc2df0
梁灏
update ColorPicker
|
304
|
position: relative;
|
f2bcd4ad
Graham Fairweather
Color keyboard co...
|
305
306
307
308
309
|
border-top: 1px solid @border-color-split;
text-align: right;
padding: 8px;
clear: both;
&-color {
|
59dc2df0
梁灏
update ColorPicker
|
310
311
312
313
314
|
position: absolute;
top: 11px;
left: 8px;
}
}
|
b30250a7
Chavy
fixed: #2219 & Co...
|
315
|
}
|