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