forked from yansern/jquery.colorpicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.colorpicker.css
100 lines (89 loc) · 3.17 KB
/
jquery.colorpicker.css
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
.colorpicker {
position: relative;
.user-select(none);
}
.colorpicker-hsb-panel {
position: relative;
padding-right: 30px;
}
.colorpicker-h-panel {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 100%;
border: 1px solid #ccc;
border-radius: 2px;
cursor: crosshair;
}
.colorpicker-h-handle {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
border: 1px solid white;
.box-shadow(0 0 0 1px black);
border-radius: 2px;
margin-top: -2px;
}
.colorpicker-sb-panel {
position: relative;
width: 100%;
height: 240px;
cursor: crosshair;
background: red;
border-radius: 2px;
border: 1px solid #ccc;
.user-select(none);
}
.colorpicker-b-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')"; /* IE8 */
background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff'); /* IE6 & IE7 */
}
.colorpicker-s-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 2;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')"; /* IE8 */
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
}
.colorpicker-sb-handle {
position: absolute;
width: 8px;
height: 8px;
border: 1px solid white;
.box-shadow(0 0 0 1px black);
margin: -4px 0 0 -4px;
border-radius: 50%;
z-index: 3;
}
.colorpicker-preview {
border-radius: 3px;
width: 30px;
height: 30px;
}
.colorpicker-hex-input {
text-transform: uppercase;
}