1 | .colorpicker { |
---|
2 | width: 286px; |
---|
3 | height: 176px; |
---|
4 | overflow: hidden; |
---|
5 | position: absolute; |
---|
6 | background: url(colorpicker_background.png); |
---|
7 | font-family: Arial, Helvetica, sans-serif; |
---|
8 | display: none; |
---|
9 | } |
---|
10 | .colorpicker_color { |
---|
11 | width: 150px; |
---|
12 | height: 150px; |
---|
13 | left: 14px; |
---|
14 | top: 13px; |
---|
15 | position: absolute; |
---|
16 | background: #f00; |
---|
17 | overflow: hidden; |
---|
18 | cursor: crosshair; |
---|
19 | } |
---|
20 | .colorpicker_color div { |
---|
21 | position: absolute; |
---|
22 | top: 0; |
---|
23 | left: 0; |
---|
24 | width: 150px; |
---|
25 | height: 150px; |
---|
26 | background: url(colorpicker_overlay.png); |
---|
27 | } |
---|
28 | .colorpicker_color div div { |
---|
29 | position: absolute; |
---|
30 | top: 0; |
---|
31 | left: 0; |
---|
32 | width: 11px; |
---|
33 | height: 11px; |
---|
34 | overflow: hidden; |
---|
35 | background: url(colorpicker_select.gif); |
---|
36 | margin: -5px 0 0 -5px; |
---|
37 | } |
---|
38 | .colorpicker_hue { |
---|
39 | position: absolute; |
---|
40 | top: 13px; |
---|
41 | left: 171px; |
---|
42 | width: 35px; |
---|
43 | height: 150px; |
---|
44 | cursor: n-resize; |
---|
45 | } |
---|
46 | .colorpicker_hue div { |
---|
47 | position: absolute; |
---|
48 | width: 35px; |
---|
49 | height: 9px; |
---|
50 | overflow: hidden; |
---|
51 | background: url(colorpicker_indic.gif) left top; |
---|
52 | margin: -4px 0 0 0; |
---|
53 | left: 0px; |
---|
54 | } |
---|
55 | .colorpicker_new_color { |
---|
56 | position: absolute; |
---|
57 | width: 60px; |
---|
58 | height: 30px; |
---|
59 | left: 213px; |
---|
60 | top: 13px; |
---|
61 | background: #f00; |
---|
62 | } |
---|
63 | .colorpicker_current_color { |
---|
64 | display:none; |
---|
65 | } |
---|
66 | .colorpicker input { |
---|
67 | background-color: transparent; |
---|
68 | border: 1px solid transparent; |
---|
69 | position: absolute; |
---|
70 | font-size: 10px; |
---|
71 | font-family: Arial, Helvetica, sans-serif; |
---|
72 | color: #898989; |
---|
73 | top: 4px; |
---|
74 | right: 11px; |
---|
75 | text-align: right; |
---|
76 | margin: 0; |
---|
77 | padding: 0; |
---|
78 | height: 11px; |
---|
79 | } |
---|
80 | /* annulation des styles généraux */ |
---|
81 | .colorpicker input:hover, .colorpicker input:focus { |
---|
82 | border:none; |
---|
83 | background:none; |
---|
84 | -moz-box-shadow:none; |
---|
85 | -webkit-box-shadow:none; |
---|
86 | } |
---|
87 | .colorpicker_hex { |
---|
88 | display:none; |
---|
89 | } |
---|
90 | .colorpicker_field { |
---|
91 | height: 22px; |
---|
92 | width: 62px; |
---|
93 | background-position: top; |
---|
94 | position: absolute; |
---|
95 | } |
---|
96 | .colorpicker_field span { |
---|
97 | position: absolute; |
---|
98 | width: 12px; |
---|
99 | height: 22px; |
---|
100 | overflow: hidden; |
---|
101 | top: 0; |
---|
102 | right: 0; |
---|
103 | cursor: n-resize; |
---|
104 | } |
---|
105 | .colorpicker_rgb_r { |
---|
106 | background-image: url(colorpicker_rgb_r.png); |
---|
107 | top: 52px; |
---|
108 | left: 212px; |
---|
109 | } |
---|
110 | .colorpicker_rgb_g { |
---|
111 | background-image: url(colorpicker_rgb_g.png); |
---|
112 | top: 82px; |
---|
113 | left: 212px; |
---|
114 | } |
---|
115 | .colorpicker_rgb_b { |
---|
116 | background-image: url(colorpicker_rgb_b.png); |
---|
117 | top: 112px; |
---|
118 | left: 212px; |
---|
119 | } |
---|
120 | .colorpicker_hsb_h, .colorpicker_hsb_s, .colorpicker_hsb_b { |
---|
121 | display:none; |
---|
122 | } |
---|
123 | .colorpicker_submit { |
---|
124 | position: absolute; |
---|
125 | width: 22px; |
---|
126 | height: 22px; |
---|
127 | background: url(colorpicker_submit.png) top; |
---|
128 | right: 6px; |
---|
129 | bottom: 6px; |
---|
130 | overflow: hidden; |
---|
131 | } |
---|
132 | .colorpicker_focus { |
---|
133 | background-position: center; |
---|
134 | } |
---|
135 | .colorpicker_hex.colorpicker_focus { |
---|
136 | background-position: bottom; |
---|
137 | } |
---|
138 | .colorpicker_submit.colorpicker_focus { |
---|
139 | background-position: bottom; |
---|
140 | } |
---|
141 | .colorpicker_slider { |
---|
142 | background-position: bottom; |
---|
143 | } |
---|