colpick.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. /*
  2. colpick Color Picker / colpick.com
  3. */
  4. /*Main container*/
  5. .colpick {
  6. position: absolute;
  7. width: 346px;
  8. height: 178px;
  9. overflow: hidden;
  10. display: none;
  11. z-index: 1000;
  12. font-family: Arial, Helvetica, sans-serif;
  13. background: #f0f0f0;
  14. border: 1px solid #aaa;
  15. -webkit-border-radius: 5px;
  16. -moz-border-radius: 5px;
  17. border-radius: 5px;
  18. /*Prevents selecting text when dragging the selectors*/
  19. -webkit-user-select: none;
  20. -moz-user-select: none;
  21. -ms-user-select: none;
  22. -o-user-select: none;
  23. user-select: none;
  24. }
  25. /*Color selection box*/
  26. .colpick_color {
  27. position: absolute;
  28. left: 9px;
  29. top: 9px;
  30. width: 150px;
  31. height: 150px;
  32. overflow: hidden;
  33. background: #f00;
  34. outline: 3px solid #ccc;
  35. cursor: crosshair;
  36. }
  37. .colpick_color div {
  38. position: absolute;
  39. left:0;
  40. top:0;
  41. width: 150px;
  42. height: 150px;
  43. background: url(images/colpick_overlay.png);
  44. }
  45. /*Circular color selector*/
  46. .colpick_color div div {
  47. position: absolute;
  48. width: 11px;
  49. height: 11px;
  50. margin: -5px 0 0 -5px;
  51. background: url(images/colpick_select.gif);
  52. }
  53. /*Vertical hue bar*/
  54. .colpick_hue {
  55. position: absolute;
  56. top: 8px;
  57. left: 173px;
  58. width: 19px;
  59. height: 150px;
  60. border: 1px solid #aaa;
  61. cursor: n-resize;
  62. background: url(images/colpick_slider.png);
  63. background-size: auto 100%;
  64. background-position: center;
  65. }
  66. /*Hue bar sliding indicator*/
  67. .colpick_hue div {
  68. position: absolute;
  69. left: -8px;
  70. width: 35px;
  71. height: 9px;
  72. margin: -4px 0 0 0;
  73. overflow: hidden;
  74. background: url(images/colpick_indic.gif) left top;
  75. }
  76. /*New color viewer*/
  77. .colpick_new_color {
  78. position: absolute;
  79. left: 206px;
  80. top: 6px;
  81. width: 60px;
  82. height: 25px;
  83. background: #f00;
  84. border: 1px solid #8f8f8f;
  85. }
  86. /*Current color viewer*/
  87. .colpick_current_color {
  88. position: absolute;
  89. left: 276px;
  90. top: 6px;
  91. width: 60px;
  92. height: 25px;
  93. background: #f00;
  94. border: 1px solid #8f8f8f;
  95. }
  96. /*Input field containers*/
  97. .colpick_field, .colpick_hex_field {
  98. position: absolute;
  99. height: 21px;
  100. width: 60px;
  101. overflow:hidden;
  102. background:#e4e4e4;
  103. color:#b8b8b8;
  104. font-size:12px;
  105. border:1px solid #bbb;
  106. -webkit-border-radius: 3px;
  107. -moz-border-radius: 3px;
  108. border-radius: 3px;
  109. }
  110. .colpick_rgb_r {
  111. top: 38px;
  112. left: 206px;
  113. }
  114. .colpick_rgb_g {
  115. top: 65px;
  116. left: 206px;
  117. }
  118. .colpick_rgb_b {
  119. top: 92px;
  120. left: 206px;
  121. }
  122. .colpick_hsb_h {
  123. top: 38px;
  124. left: 276px;
  125. }
  126. .colpick_hsb_s {
  127. top: 65px;
  128. left: 276px;
  129. }
  130. .colpick_hsb_b {
  131. top: 92px;
  132. left: 276px;
  133. }
  134. .colpick_hex_field {
  135. width: 68px;
  136. left: 206px;
  137. top: 119px;
  138. }
  139. /*Text field container on focus*/
  140. .colpick_focus {
  141. border-color: #999;
  142. }
  143. /*Field label container*/
  144. .colpick_field div, .colpick_hex_field div {
  145. position: absolute;
  146. width: 16px;
  147. height: 21px;
  148. line-height: 21px;
  149. padding-left: 3px;
  150. background: #d7d7d7;
  151. border-right: 1px solid #bbb;
  152. font-weight: bold;
  153. color:#777;
  154. }
  155. /*Text inputs*/
  156. .colpick_field input, .colpick_hex_field input {
  157. position: absolute;
  158. right: 11px;
  159. margin: 0;
  160. padding: 0;
  161. height: 21px;
  162. line-height: 21px;
  163. background: transparent;
  164. border: none;
  165. font-size: 12px;
  166. font-family: Arial, Helvetica, sans-serif;
  167. color: #555;
  168. text-align: right;
  169. outline: none;
  170. }
  171. .colpick_hex_field input {
  172. right: 4px;
  173. }
  174. /*Field up/down arrows*/
  175. .colpick_field span {
  176. position: absolute;
  177. top: 0;
  178. right: 0;
  179. width: 11px;
  180. height: 21px;
  181. overflow: hidden;
  182. cursor: n-resize;
  183. background: url(images/colpick_arrows.png);
  184. background-position: center;
  185. background-repeat: no-repeat;
  186. }
  187. /*Submit/Select button*/
  188. .colpick_submit {
  189. position: absolute;
  190. left: 206px;
  191. top: 148px;
  192. width: 130px;
  193. height: 22px;
  194. line-height:22px;
  195. overflow: hidden;
  196. background: #d7d7d7;
  197. text-align: center;
  198. color: #555;
  199. font-size: 12px;
  200. font-weight:bold;
  201. border: 1px solid #aaa;
  202. -webkit-border-radius: 3px;
  203. -moz-border-radius: 3px;
  204. border-radius: 3px;
  205. }
  206. .colpick_submit:hover {
  207. background:#c7c7c7;
  208. cursor: pointer;
  209. }
  210. /*full layout with no submit button*/
  211. .colpick_full_ns .colpick_submit, .colpick_full_ns .colpick_current_color{
  212. display:none;
  213. }
  214. .colpick_full_ns .colpick_new_color {
  215. width: 130px;
  216. height: 25px;
  217. }
  218. .colpick_full_ns .colpick_rgb_r, .colpick_full_ns .colpick_hsb_h {
  219. top: 42px;
  220. }
  221. .colpick_full_ns .colpick_rgb_g, .colpick_full_ns .colpick_hsb_s {
  222. top: 73px;
  223. }
  224. .colpick_full_ns .colpick_rgb_b, .colpick_full_ns .colpick_hsb_b {
  225. top: 104px;
  226. }
  227. .colpick_full_ns .colpick_hex_field {
  228. top: 135px;
  229. }
  230. /*rgbhex layout*/
  231. .colpick_rgbhex .colpick_hsb_h, .colpick_rgbhex .colpick_hsb_s, .colpick_rgbhex .colpick_hsb_b {
  232. display:none;
  233. }
  234. .colpick_rgbhex {
  235. width:284px;
  236. }
  237. .colpick_rgbhex .colpick_field, .colpick_rgbhex .colpick_submit {
  238. width:68px;
  239. }
  240. .colpick_rgbhex .colpick_new_color {
  241. width:34px;
  242. border-right:none;
  243. }
  244. .colpick_rgbhex .colpick_current_color {
  245. width:34px;
  246. left:240px;
  247. border-left:none;
  248. }
  249. /*rgbhex layout, no submit button*/
  250. .colpick_rgbhex_ns .colpick_submit, .colpick_rgbhex_ns .colpick_current_color{
  251. display:none;
  252. }
  253. .colpick_rgbhex_ns .colpick_new_color{
  254. width:68px;
  255. border: 1px solid #8f8f8f;
  256. }
  257. .colpick_rgbhex_ns .colpick_rgb_r {
  258. top: 42px;
  259. }
  260. .colpick_rgbhex_ns .colpick_rgb_g {
  261. top: 73px;
  262. }
  263. .colpick_rgbhex_ns .colpick_rgb_b {
  264. top: 104px;
  265. }
  266. .colpick_rgbhex_ns .colpick_hex_field {
  267. top: 135px;
  268. }
  269. /*hex layout*/
  270. .colpick_hex .colpick_hsb_h, .colpick_hex .colpick_hsb_s, .colpick_hex .colpick_hsb_b, .colpick_hex .colpick_rgb_r, .colpick_hex .colpick_rgb_g, .colpick_hex .colpick_rgb_b {
  271. display:none;
  272. }
  273. .colpick_hex {
  274. width:206px;
  275. height:201px;
  276. }
  277. .colpick_hex .colpick_hex_field {
  278. width:72px;
  279. height:25px;
  280. top:168px;
  281. left:80px;
  282. }
  283. .colpick_hex .colpick_hex_field div, .colpick_hex .colpick_hex_field input {
  284. height: 25px;
  285. line-height: 25px;
  286. }
  287. .colpick_hex .colpick_new_color {
  288. left:9px;
  289. top:168px;
  290. width:30px;
  291. border-right:none;
  292. }
  293. .colpick_hex .colpick_current_color {
  294. left:39px;
  295. top:168px;
  296. width:30px;
  297. border-left:none;
  298. }
  299. .colpick_hex .colpick_submit {
  300. left:164px;
  301. top: 168px;
  302. width:30px;
  303. height:25px;
  304. line-height: 25px;
  305. }
  306. /*hex layout, no submit button*/
  307. .colpick_hex_ns .colpick_submit, .colpick_hex_ns .colpick_current_color {
  308. display:none;
  309. }
  310. .colpick_hex_ns .colpick_hex_field {
  311. width:80px;
  312. }
  313. .colpick_hex_ns .colpick_new_color{
  314. width:60px;
  315. border: 1px solid #8f8f8f;
  316. }
  317. /*Dark color scheme*/
  318. .colpick_dark {
  319. background: #1c1c1c;
  320. border-color: #333;
  321. }
  322. .colpick_dark .colpick_color {
  323. outline: 3px solid #2b2b2b;
  324. }
  325. .colpick_dark .colpick_hue {
  326. border-color: #555;
  327. }
  328. .colpick_dark .colpick_field, .colpick_dark .colpick_hex_field {
  329. background: #141414;
  330. border-color: #333;
  331. }
  332. .colpick_dark .colpick_field div, .colpick_dark .colpick_hex_field div {
  333. background: #171717;
  334. border-color: #333;
  335. color: #696969;
  336. }
  337. .colpick_dark .colpick_field input, .colpick_dark .colpick_hex_field input {
  338. color: #898989;
  339. }
  340. .colpick_dark .colpick_focus {
  341. border-color:#444;
  342. }
  343. .colpick_dark .colpick_submit {
  344. background: #171717;
  345. border-color:#444;
  346. color:#898989;
  347. }
  348. .colpick_dark .colpick_submit:hover {
  349. background-color:#141414;
  350. }