colpick.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. /*
  2. colpick Color Picker / colpick.com
  3. */
  4. /*Main container*/
  5. .colpick {
  6. position: absolute;
  7. width: 346px;
  8. height: 170px;
  9. overflow: hidden;
  10. display: none;
  11. font-family: Arial, Helvetica, sans-serif;
  12. background:#ebebeb;
  13. border: 1px solid #bbb;
  14. -webkit-border-radius: 5px;
  15. -moz-border-radius: 5px;
  16. border-radius: 5px;
  17. z-index: 99999;
  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 with gradients*/
  26. .colpick_color {
  27. position: absolute;
  28. left: 7px;
  29. top: 7px;
  30. width: 156px;
  31. height: 156px;
  32. overflow: hidden;
  33. outline: 1px solid #aaa;
  34. cursor: crosshair;
  35. }
  36. .colpick_color_overlay1 {
  37. position: absolute;
  38. left:0;
  39. top:0;
  40. width: 156px;
  41. height: 156px;
  42. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')"; /* IE8 */
  43. background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
  44. 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+ */
  45. background: -webkit-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
  46. background: -o-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
  47. background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
  48. background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  49. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff'); /* IE6 & IE7 */
  50. }
  51. .colpick_color_overlay2 {
  52. position: absolute;
  53. left:0;
  54. top:0;
  55. width: 156px;
  56. height: 156px;
  57. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')"; /* IE8 */
  58. background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
  59. 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+ */
  60. background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
  61. background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
  62. background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
  63. background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
  64. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
  65. }
  66. /*Circular color selector*/
  67. .colpick_selector_outer {
  68. background:none;
  69. position: absolute;
  70. width: 11px;
  71. height: 11px;
  72. margin: -6px 0 0 -6px;
  73. border: 1px solid black;
  74. border-radius: 50%;
  75. }
  76. .colpick_selector_inner{
  77. position: absolute;
  78. width: 9px;
  79. height: 9px;
  80. border: 1px solid white;
  81. border-radius: 50%;
  82. }
  83. /*Vertical hue bar*/
  84. .colpick_hue {
  85. position: absolute;
  86. top: 6px;
  87. left: 175px;
  88. width: 19px;
  89. height: 156px;
  90. border: 1px solid #aaa;
  91. cursor: n-resize;
  92. }
  93. /*Hue bar sliding indicator*/
  94. .colpick_hue_arrs {
  95. position: absolute;
  96. left: -8px;
  97. width: 35px;
  98. height: 7px;
  99. margin: -7px 0 0 0;
  100. }
  101. .colpick_hue_larr {
  102. position:absolute;
  103. width: 0;
  104. height: 0;
  105. border-top: 6px solid transparent;
  106. border-bottom: 6px solid transparent;
  107. border-left: 7px solid #858585;
  108. }
  109. .colpick_hue_rarr {
  110. position:absolute;
  111. right:0;
  112. width: 0;
  113. height: 0;
  114. border-top: 6px solid transparent;
  115. border-bottom: 6px solid transparent;
  116. border-right: 7px solid #858585;
  117. }
  118. /*New color box*/
  119. .colpick_new_color {
  120. position: absolute;
  121. left: 207px;
  122. top: 6px;
  123. width: 60px;
  124. height: 27px;
  125. background: #f00;
  126. border: 1px solid #8f8f8f;
  127. }
  128. /*Current color box*/
  129. .colpick_current_color {
  130. position: absolute;
  131. left: 277px;
  132. top: 6px;
  133. width: 60px;
  134. height: 27px;
  135. background: #f00;
  136. border: 1px solid #8f8f8f;
  137. }
  138. /*Input field containers*/
  139. .colpick_field, .colpick_hex_field {
  140. position: absolute;
  141. height: 20px;
  142. width: 60px;
  143. overflow:hidden;
  144. background:#f3f3f3;
  145. color:#b8b8b8;
  146. font-size:12px;
  147. border:1px solid #bdbdbd;
  148. -webkit-border-radius: 3px;
  149. -moz-border-radius: 3px;
  150. border-radius: 3px;
  151. }
  152. .colpick_rgb_r {
  153. top: 40px;
  154. left: 207px;
  155. }
  156. .colpick_rgb_g {
  157. top: 67px;
  158. left: 207px;
  159. }
  160. .colpick_rgb_b {
  161. top: 94px;
  162. left: 207px;
  163. }
  164. .colpick_hsb_h {
  165. top: 40px;
  166. left: 277px;
  167. }
  168. .colpick_hsb_s {
  169. top: 67px;
  170. left: 277px;
  171. }
  172. .colpick_hsb_b {
  173. top: 94px;
  174. left: 277px;
  175. }
  176. .colpick_hex_field {
  177. width: 68px;
  178. left: 207px;
  179. top: 121px;
  180. }
  181. /*Text field container on focus*/
  182. .colpick_focus {
  183. border-color: #999;
  184. }
  185. /*Field label container*/
  186. .colpick_field_letter {
  187. position: absolute;
  188. width: 12px;
  189. height: 20px;
  190. line-height: 20px;
  191. padding-left: 4px;
  192. background: #efefef;
  193. border-right: 1px solid #bdbdbd;
  194. font-weight: bold;
  195. color:#777;
  196. }
  197. /*Text inputs*/
  198. .colpick_field input, .colpick_hex_field input {
  199. position: absolute;
  200. right: 11px;
  201. margin: 0;
  202. padding: 0;
  203. height: 20px;
  204. line-height: 20px;
  205. background: transparent;
  206. border: none;
  207. font-size: 12px;
  208. font-family: Arial, Helvetica, sans-serif;
  209. color: #555;
  210. text-align: right;
  211. outline: none;
  212. }
  213. .colpick_hex_field input {
  214. right: 4px;
  215. }
  216. /*Field up/down arrows*/
  217. .colpick_field_arrs {
  218. position: absolute;
  219. top: 0;
  220. right: 0;
  221. width: 9px;
  222. height: 21px;
  223. cursor: n-resize;
  224. }
  225. .colpick_field_uarr {
  226. position: absolute;
  227. top: 5px;
  228. width: 0;
  229. height: 0;
  230. border-left: 4px solid transparent;
  231. border-right: 4px solid transparent;
  232. border-bottom: 4px solid #959595;
  233. }
  234. .colpick_field_darr {
  235. position: absolute;
  236. bottom:5px;
  237. width: 0;
  238. height: 0;
  239. border-left: 4px solid transparent;
  240. border-right: 4px solid transparent;
  241. border-top: 4px solid #959595;
  242. }
  243. /*Submit/Select button*/
  244. .colpick_submit {
  245. position: absolute;
  246. left: 207px;
  247. top: 149px;
  248. width: 130px;
  249. height: 22px;
  250. line-height:22px;
  251. background: #efefef;
  252. text-align: center;
  253. color: #555;
  254. font-size: 12px;
  255. font-weight:bold;
  256. border: 1px solid #bdbdbd;
  257. -webkit-border-radius: 3px;
  258. -moz-border-radius: 3px;
  259. border-radius: 3px;
  260. }
  261. .colpick_submit:hover {
  262. background:#f3f3f3;
  263. border-color:#999;
  264. cursor: pointer;
  265. }
  266. /*full layout with no submit button*/
  267. .colpick_full_ns .colpick_submit, .colpick_full_ns .colpick_current_color{
  268. display:none;
  269. }
  270. .colpick_full_ns .colpick_new_color {
  271. width: 130px;
  272. height: 25px;
  273. }
  274. .colpick_full_ns .colpick_rgb_r, .colpick_full_ns .colpick_hsb_h {
  275. top: 42px;
  276. }
  277. .colpick_full_ns .colpick_rgb_g, .colpick_full_ns .colpick_hsb_s {
  278. top: 73px;
  279. }
  280. .colpick_full_ns .colpick_rgb_b, .colpick_full_ns .colpick_hsb_b {
  281. top: 104px;
  282. }
  283. .colpick_full_ns .colpick_hex_field {
  284. top: 135px;
  285. }
  286. /*rgbhex layout*/
  287. .colpick_rgbhex .colpick_hsb_h, .colpick_rgbhex .colpick_hsb_s, .colpick_rgbhex .colpick_hsb_b {
  288. display:none;
  289. }
  290. .colpick_rgbhex {
  291. width:282px;
  292. }
  293. .colpick_rgbhex .colpick_field, .colpick_rgbhex .colpick_submit {
  294. width:68px;
  295. }
  296. .colpick_rgbhex .colpick_new_color {
  297. width:34px;
  298. border-right:none;
  299. }
  300. .colpick_rgbhex .colpick_current_color {
  301. width:34px;
  302. left:240px;
  303. border-left:none;
  304. }
  305. /*rgbhex layout, no submit button*/
  306. .colpick_rgbhex_ns .colpick_submit, .colpick_rgbhex_ns .colpick_current_color{
  307. display:none;
  308. }
  309. .colpick_rgbhex_ns .colpick_new_color{
  310. width:68px;
  311. border: 1px solid #8f8f8f;
  312. }
  313. .colpick_rgbhex_ns .colpick_rgb_r {
  314. top: 42px;
  315. }
  316. .colpick_rgbhex_ns .colpick_rgb_g {
  317. top: 73px;
  318. }
  319. .colpick_rgbhex_ns .colpick_rgb_b {
  320. top: 104px;
  321. }
  322. .colpick_rgbhex_ns .colpick_hex_field {
  323. top: 135px;
  324. }
  325. /*hex layout*/
  326. .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 {
  327. display:none;
  328. }
  329. .colpick_hex {
  330. width:206px;
  331. height:201px;
  332. }
  333. .colpick_hex .colpick_hex_field {
  334. width:72px;
  335. height:25px;
  336. top:168px;
  337. left:80px;
  338. }
  339. .colpick_hex .colpick_hex_field div, .colpick_hex .colpick_hex_field input {
  340. height: 25px;
  341. line-height: 25px;
  342. }
  343. .colpick_hex .colpick_new_color {
  344. left:9px;
  345. top:168px;
  346. width:30px;
  347. border-right:none;
  348. }
  349. .colpick_hex .colpick_current_color {
  350. left:39px;
  351. top:168px;
  352. width:30px;
  353. border-left:none;
  354. }
  355. .colpick_hex .colpick_submit {
  356. left:164px;
  357. top: 168px;
  358. width:30px;
  359. height:25px;
  360. line-height: 25px;
  361. }
  362. /*hex layout, no submit button*/
  363. .colpick_hex_ns .colpick_submit, .colpick_hex_ns .colpick_current_color {
  364. display:none;
  365. }
  366. .colpick_hex_ns .colpick_hex_field {
  367. width:80px;
  368. }
  369. .colpick_hex_ns .colpick_new_color{
  370. width:60px;
  371. border: 1px solid #8f8f8f;
  372. }
  373. /*Dark color scheme*/
  374. .colpick_dark {
  375. background: #161616;
  376. border-color: #2a2a2a;
  377. }
  378. .colpick_dark .colpick_color {
  379. outline-color: #333;
  380. }
  381. .colpick_dark .colpick_hue {
  382. border-color: #555;
  383. }
  384. .colpick_dark .colpick_field, .colpick_dark .colpick_hex_field {
  385. background: #101010;
  386. border-color: #2d2d2d;
  387. }
  388. .colpick_dark .colpick_field_letter {
  389. background: #131313;
  390. border-color: #2d2d2d;
  391. color: #696969;
  392. }
  393. .colpick_dark .colpick_field input, .colpick_dark .colpick_hex_field input {
  394. color: #7a7a7a;
  395. }
  396. .colpick_dark .colpick_field_uarr {
  397. border-bottom-color:#696969;
  398. }
  399. .colpick_dark .colpick_field_darr {
  400. border-top-color:#696969;
  401. }
  402. .colpick_dark .colpick_focus {
  403. border-color:#444;
  404. }
  405. .colpick_dark .colpick_submit {
  406. background: #131313;
  407. border-color:#2d2d2d;
  408. color:#7a7a7a;
  409. }
  410. .colpick_dark .colpick_submit:hover {
  411. background-color:#101010;
  412. border-color:#444;
  413. }