colorpicker.css
173 lines
| 1 | .colorpicker { |
| 2 | width: 356px; |
| 3 | height: 176px; |
| 4 | overflow: hidden; |
| 5 | position: absolute; |
| 6 | background: url(../images/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(../images/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(../images/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(../images/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 | position: absolute; |
| 65 | width: 60px; |
| 66 | height: 30px; |
| 67 | left: 283px; |
| 68 | top: 13px; |
| 69 | background: #f00; |
| 70 | } |
| 71 | .colorpicker input { |
| 72 | background-color: transparent; |
| 73 | border: 1px solid transparent; |
| 74 | position: absolute; |
| 75 | font-size: 10px; |
| 76 | font-family: Arial, Helvetica, sans-serif; |
| 77 | color: #898989; |
| 78 | top: 4px; |
| 79 | right: 11px; |
| 80 | text-align: right; |
| 81 | margin: 0; |
| 82 | padding: 0; |
| 83 | height: 13px; |
| 84 | outline: none; |
| 85 | } |
| 86 | |
| 87 | .colorpicker_hex { |
| 88 | position: absolute; |
| 89 | width: 72px; |
| 90 | height: 22px; |
| 91 | background: url(../images/colorpicker_hex.png) top; |
| 92 | left: 212px; |
| 93 | top: 142px; |
| 94 | } |
| 95 | .colorpicker_hex input { |
| 96 | right: 6px; |
| 97 | } |
| 98 | .colorpicker_field { |
| 99 | height: 22px; |
| 100 | width: 62px; |
| 101 | background-position: top; |
| 102 | position: absolute; |
| 103 | } |
| 104 | .colorpicker_field span { |
| 105 | position: absolute; |
| 106 | width: 12px; |
| 107 | height: 22px; |
| 108 | overflow: hidden; |
| 109 | top: 0; |
| 110 | right: 0; |
| 111 | cursor: n-resize; |
| 112 | } |
| 113 | .colorpicker_rgb_r { |
| 114 | background-image: url(../images/colorpicker_rgb_r.png); |
| 115 | top: 52px; |
| 116 | left: 212px; |
| 117 | } |
| 118 | .colorpicker_rgb_g { |
| 119 | background-image: url(../images/colorpicker_rgb_g.png); |
| 120 | top: 82px; |
| 121 | left: 212px; |
| 122 | } |
| 123 | .colorpicker_rgb_b { |
| 124 | background-image: url(../images/colorpicker_rgb_b.png); |
| 125 | top: 112px; |
| 126 | left: 212px; |
| 127 | } |
| 128 | .colorpicker_hsb_h { |
| 129 | background-image: url(../images/colorpicker_hsb_h.png); |
| 130 | top: 52px; |
| 131 | left: 282px; |
| 132 | } |
| 133 | .colorpicker_hsb_s { |
| 134 | background-image: url(../images/colorpicker_hsb_s.png); |
| 135 | top: 82px; |
| 136 | left: 282px; |
| 137 | } |
| 138 | .colorpicker_hsb_b { |
| 139 | background-image: url(../images/colorpicker_hsb_b.png); |
| 140 | top: 112px; |
| 141 | left: 282px; |
| 142 | } |
| 143 | .colorpicker_submit { |
| 144 | position: absolute; |
| 145 | width: 22px; |
| 146 | height: 22px; |
| 147 | background: url(../images/colorpicker_submit.png) top; |
| 148 | left: 322px; |
| 149 | top: 142px; |
| 150 | overflow: hidden; |
| 151 | } |
| 152 | .colorpicker_focus { |
| 153 | background-position: center; |
| 154 | } |
| 155 | .colorpicker_hex.colorpicker_focus { |
| 156 | background-position: bottom; |
| 157 | } |
| 158 | .colorpicker_submit.colorpicker_focus { |
| 159 | background-position: bottom; |
| 160 | } |
| 161 | .colorpicker_slider { |
| 162 | background-position: bottom; |
| 163 | } |
| 164 | |
| 165 | |
| 166 | .color-selector |
| 167 | { |
| 168 | display: inline-block; |
| 169 | width: 26px; |
| 170 | height: 26px; |
| 171 | background: url(../images/select2.png) center; |
| 172 | } |
| 173 |