forked from claviska/jquery-minicolors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.miniColors.css
183 lines (161 loc) · 3 KB
/
jquery.miniColors.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
.minicolors {
position: relative;
display: inline-block;
z-index: 1;
}
.minicolors-focus {
z-index: 2;
}
.minicolors INPUT {
margin-right: 3px;
border: solid 1px #CCC;
font: 14px sans-serif;
width: 65px;
height: 16px;
vertical-align: middle;
border-radius: 0;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
outline: none;
padding: 2px;
margin-right: -1px;
}
.minicolors-swatch-left INPUT {
margin-left: -1px;
margin-right: auto;
}
.minicolors-focus INPUT,
.minicolors-focus .minicolors-swatch {
border-color: #999;
}
.minicolors-hidden {
position: absolute;
top: -9999em;
left: -9999em;
}
.minicolors-swatch {
position: relative;
width: 20px;
height: 20px;
background: url(jquery.minicolors.png) -360px 0;
border: solid 1px #CCC;
display: inline-block;
vertical-align: middle;
}
.minicolors-swatch SPAN {
position: absolute;
width: 100%;
height: 100%;
background: none;
box-shadow: inset 0 9px 0 rgba(255, 255, 255, .1);
display: inline-block;
}
/* Panel (standard) */
.minicolors-panel {
position: absolute;
top: 26px;
left: 0;
width: 173px;
height: 152px;
background: white;
border: solid 1px #CCC;
box-shadow: 0 0 20px rgba(0, 0, 0, .1);
display: none;
}
.minicolors-position-top .minicolors-panel {
top: -156px;
}
.minicolors-position-left .minicolors-panel {
left: -83px;
}
.minicolors-color {
position: absolute;
top: 1px;
left: 1px;
width: 150px;
height: 150px;
background: url(jquery.minicolors.png) -60px 0;
cursor: crosshair;
}
.minicolors-hue {
position: absolute;
top: 1px;
left: 152px;
width: 20px;
height: 150px;
background: white url(jquery.minicolors.png) 0 0;
cursor: crosshair;
}
/* Panel (color wheel) */
.minicolors-wheel .minicolors-color {
background-position: -210px 0;
}
.minicolors-brightness {
position: absolute;
top: 1px;
left: 152px;
width: 20px;
height: 150px;
background: white url(jquery.minicolors.png) -20px 0;
cursor: crosshair;
}
/* with opacity */
.minicolors-with-opacity .minicolors-panel {
width: 194px;
}
.minicolors-opacity {
position: absolute;
top: 1px;
left: 173px;
width: 20px;
height: 150px;
background: white url(jquery.minicolors.png) -40px 0;
display: none;
cursor: crosshair;
}
.minicolors-with-opacity .minicolors-opacity {
display: block;
}
/* Pickers */
.minicolors-color-picker {
position: absolute;
top: 70px;
left: 70px;
width: 10px;
height: 10px;
border: solid 1px black;
border-radius: 10px;
margin-top: -6px;
margin-left: -6px;
}
.minicolors-color-picker SPAN {
position: absolute;
top: 0;
left: 0;
width: 6px;
height: 6px;
border-radius: 6px;
border: solid 2px white;
}
.minicolors-hue-picker,
.minicolors-opacity-picker,
.minicolors-brightness-picker {
position: absolute;
top: 0;
left: 0;
width: 18px;
height: 2px;
background: white;
border: solid 1px black;
margin-top: -2px;
}
/* Inline */
.minicolors-inline INPUT,
.minicolors-inline .minicolors-swatch {
display: none;
}
.minicolors-inline .minicolors-panel {
position: relative;
top: auto;
left: auto;
display: inline-block;
}