colpick.css 10 KB

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