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