spectrum.custom.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. /***
  2. Spectrum Colorpicker v1.2.0
  3. https://github.com/bgrins/spectrum
  4. Author: Brian Grinstead
  5. License: MIT
  6. ***/
  7. .sp-container {
  8. position:absolute;
  9. top:0;
  10. left:0;
  11. display:inline-block;
  12. *display: inline;
  13. *zoom: 1;
  14. /* https://github.com/bgrins/spectrum/issues/40 */
  15. z-index: 9999994;
  16. overflow: hidden;
  17. border-bottom: 1px solid #c0c0c0;
  18. }
  19. .sp-container.sp-flat {
  20. position: relative;
  21. }
  22. .sp-arrow
  23. {
  24. position: absolute;
  25. top: 0;
  26. left: 106px;
  27. width: 12px;
  28. height: 6px;
  29. background-image: url('../images/resource_arrow_down.svg');
  30. }
  31. /* http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio */
  32. .sp-top {
  33. position:relative;
  34. width: 100%;
  35. display:inline-block;
  36. }
  37. .sp-top-inner {
  38. position:absolute;
  39. top:0;
  40. left:0;
  41. bottom:0;
  42. right:0;
  43. }
  44. .sp-color {
  45. position: absolute;
  46. top:0;
  47. left:0;
  48. bottom:0;
  49. right:20%;
  50. }
  51. .sp-hue {
  52. position: absolute;
  53. top:0;
  54. right:0;
  55. bottom:0;
  56. left:84%;
  57. height: 100%;
  58. }
  59. .sp-clear-enabled .sp-hue {
  60. top:33px;
  61. height: 77.5%;
  62. }
  63. .sp-fill {
  64. padding-top: 80%;
  65. }
  66. .sp-sat, .sp-val {
  67. position: absolute;
  68. top:0;
  69. left:0;
  70. right:0;
  71. bottom:0;
  72. }
  73. .sp-alpha-enabled .sp-top {
  74. margin-bottom: 18px;
  75. }
  76. .sp-alpha-enabled .sp-alpha {
  77. display: block;
  78. }
  79. .sp-alpha-handle {
  80. position:absolute;
  81. top:-4px;
  82. bottom: -4px;
  83. width: 6px;
  84. left: 50%;
  85. cursor: pointer;
  86. border: 1px solid black;
  87. background: white;
  88. opacity: .8;
  89. }
  90. .sp-alpha {
  91. display: none;
  92. position: absolute;
  93. bottom: -14px;
  94. right: 0;
  95. left: 0;
  96. height: 8px;
  97. }
  98. .sp-alpha-inner {
  99. border: solid 1px #333;
  100. }
  101. .sp-clear {
  102. display: none;
  103. }
  104. .sp-clear.sp-clear-display {
  105. background-position: center;
  106. }
  107. .sp-clear-enabled .sp-clear {
  108. display: block;
  109. position:absolute;
  110. top:0px;
  111. right:0;
  112. bottom:0;
  113. left:84%;
  114. height: 28px;
  115. }
  116. /* Don't allow text selection */
  117. .sp-container, .sp-replacer, .sp-preview, .sp-dragger, .sp-slider, .sp-alpha, .sp-clear, .sp-alpha-handle, .sp-container.sp-dragging .sp-input, .sp-container button {
  118. cursor:default;
  119. -webkit-user-select:none;
  120. -moz-user-select: -moz-none;
  121. -o-user-select:none;
  122. user-select: none;
  123. }
  124. .sp-container.sp-input-disabled .sp-input-container {
  125. display: none;
  126. }
  127. .sp-container.sp-buttons-disabled .sp-button-container {
  128. display: none;
  129. }
  130. .sp-palette-only .sp-picker-container {
  131. display: none;
  132. }
  133. .sp-palette-disabled .sp-palette-container {
  134. display: none;
  135. }
  136. .sp-initial-disabled .sp-initial {
  137. display: none;
  138. }
  139. /* Gradients for hue, saturation and value instead of images. Not pretty... but it works */
  140. .sp-sat {
  141. background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0)));
  142. background-image: -webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0));
  143. background-image: -moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
  144. background-image: -o-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
  145. background-image: -ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
  146. background-image: linear-gradient(to right, #fff, rgba(204, 154, 129, 0));
  147. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";
  148. filter : progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81');
  149. }
  150. .sp-val {
  151. background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0)));
  152. background-image: -webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0));
  153. background-image: -moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
  154. background-image: -o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
  155. background-image: -ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
  156. background-image: linear-gradient(to top, #000, rgba(204, 154, 129, 0));
  157. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";
  158. filter : progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000');
  159. }
  160. .sp-hue {
  161. background: -moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  162. background: -ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  163. background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  164. background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));
  165. background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  166. }
  167. /* IE filters do not support multiple color stops.
  168. Generate 6 divs, line them up, and do two color gradients for each.
  169. Yes, really.
  170. */
  171. .sp-1 {
  172. height:17%;
  173. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00');
  174. }
  175. .sp-2 {
  176. height:16%;
  177. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00');
  178. }
  179. .sp-3 {
  180. height:17%;
  181. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff');
  182. }
  183. .sp-4 {
  184. height:17%;
  185. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff');
  186. }
  187. .sp-5 {
  188. height:16%;
  189. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff');
  190. }
  191. .sp-6 {
  192. height:17%;
  193. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000');
  194. }
  195. .sp-hidden {
  196. display: none !important;
  197. }
  198. /* Clearfix hack */
  199. .sp-cf:before, .sp-cf:after { content: ""; display: table; }
  200. .sp-cf:after { clear: both; }
  201. .sp-cf { *zoom: 1; }
  202. /* Mobile devices, make hue slider bigger so it is easier to slide */
  203. @media (max-device-width: 480px) {
  204. .sp-color { right: 40%; }
  205. .sp-hue { left: 63%; }
  206. .sp-fill { padding-top: 60%; }
  207. }
  208. .sp-dragger {
  209. border-radius: 5px;
  210. height: 5px;
  211. width: 5px;
  212. border: 1px solid #fff;
  213. background: #000;
  214. cursor: pointer;
  215. position:absolute;
  216. top:0;
  217. left: 0;
  218. }
  219. .sp-slider {
  220. position: absolute;
  221. top:0;
  222. cursor:pointer;
  223. height: 3px;
  224. left: -1px;
  225. right: -1px;
  226. border: 1px solid #000;
  227. background: white;
  228. opacity: .8;
  229. }
  230. /*
  231. Theme authors:
  232. Here are the basic themeable display options (colors, fonts, global widths).
  233. See http://bgrins.github.io/spectrum/themes/ for instructions.
  234. */
  235. .sp-container {
  236. border-radius: 0;
  237. background-color: #f0f0f0;
  238. padding: 0;
  239. }
  240. .sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear
  241. {
  242. -webkit-box-sizing: border-box;
  243. -moz-box-sizing: border-box;
  244. -ms-box-sizing: border-box;
  245. box-sizing: border-box;
  246. }
  247. .sp-top
  248. {
  249. margin-bottom: 3px;
  250. }
  251. .sp-color, .sp-hue, .sp-clear
  252. {
  253. border: solid 1px #666;
  254. }
  255. /* Input */
  256. /*.sp-input-container {
  257. float:right;
  258. width: 100px;
  259. margin-bottom: 4px;
  260. }
  261. .sp-initial-disabled .sp-input-container {
  262. width: 100%;
  263. }
  264. .sp-input {
  265. font-size: 12px !important;
  266. border: 1px inset;
  267. padding: 4px 5px;
  268. margin: 0;
  269. width: 100%;
  270. background:transparent;
  271. border-radius: 3px;
  272. color: #222;
  273. }
  274. .sp-input:focus {
  275. border: 1px solid orange;
  276. }*/
  277. .sp-input-container {
  278. width: 100%;
  279. margin-bottom: 4px;
  280. }
  281. .sp-input {
  282. padding: 4px 5px;
  283. margin: 0;
  284. width: 100%;
  285. }
  286. /*.sp-input.sp-validation-error
  287. {
  288. border: 1px solid red;
  289. background: #fdd;
  290. }*/
  291. .sp-picker-container , .sp-palette-container
  292. {
  293. float:left;
  294. position: relative;
  295. padding: 10px;
  296. }
  297. .sp-picker-container
  298. {
  299. width: 204px;
  300. /*width: 172px;*/
  301. }
  302. /* Palettes */
  303. .sp-palette-container
  304. {
  305. border-right: solid 1px #ccc;
  306. }
  307. .sp-palette .sp-thumb-el {
  308. display: block;
  309. position:relative;
  310. float:left;
  311. width: 24px;
  312. height: 15px;
  313. margin: 3px;
  314. cursor: pointer;
  315. border:solid 2px transparent;
  316. }
  317. .sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active {
  318. border-color: orange;
  319. }
  320. .sp-thumb-el
  321. {
  322. position:relative;
  323. }
  324. /* Initial */
  325. .sp-initial
  326. {
  327. float: left;
  328. border: solid 1px #333;
  329. }
  330. .sp-initial span {
  331. width: 30px;
  332. height: 25px;
  333. border:none;
  334. display:block;
  335. float:left;
  336. margin:0;
  337. }
  338. .sp-initial .sp-clear-display {
  339. background-position: center;
  340. }
  341. /* Buttons */
  342. .sp-button-container {
  343. width: 100%;
  344. }
  345. /* Replacer (the little preview div that shows up instead of the <input>) */
  346. .sp-replacer {
  347. margin:0;
  348. overflow:hidden;
  349. cursor:pointer;
  350. padding: 4px;
  351. /*display:inline-block;*/
  352. display: none;
  353. *zoom: 1;
  354. *display: inline;
  355. border: solid 1px #91765d;
  356. background: #eee;
  357. color: #333;
  358. vertical-align: middle;
  359. }
  360. .sp-replacer:hover, .sp-replacer.sp-active {
  361. border-color: #F0C49B;
  362. color: #111;
  363. }
  364. .sp-replacer.sp-disabled {
  365. cursor:default;
  366. border-color: silver;
  367. color: silver;
  368. }
  369. .sp-dd {
  370. padding: 2px 0;
  371. height: 16px;
  372. line-height: 16px;
  373. float:left;
  374. font-size:10px;
  375. }
  376. .sp-preview
  377. {
  378. position:relative;
  379. width:25px;
  380. height: 20px;
  381. border: solid 1px #222;
  382. margin-right: 5px;
  383. float:left;
  384. z-index: 0;
  385. }
  386. .sp-palette
  387. {
  388. *width: 220px;
  389. max-width: 220px;
  390. }
  391. .sp-palette .sp-thumb-el
  392. {
  393. width:16px;
  394. height: 16px;
  395. margin:2px 1px;
  396. border: solid 1px #d0d0d0;
  397. }
  398. .sp-container
  399. {
  400. padding-bottom:0;
  401. }
  402. /* Buttons: http://hellohappy.org/css3-buttons/ */
  403. /*.sp-container button {
  404. background-color: #eeeeee;
  405. background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
  406. background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
  407. background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
  408. background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
  409. background-image: linear-gradient(to bottom, #eeeeee, #cccccc);
  410. border: 1px solid #ccc;
  411. border-bottom: 1px solid #bbb;
  412. border-radius: 3px;
  413. color: #333;
  414. font-size: 14px;
  415. line-height: 1;
  416. padding: 5px 4px;
  417. text-align: center;
  418. text-shadow: 0 1px 0 #eee;
  419. vertical-align: middle;
  420. }
  421. .sp-container button:hover {
  422. background-color: #dddddd;
  423. background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
  424. background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb);
  425. background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb);
  426. background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
  427. background-image: linear-gradient(to bottom, #dddddd, #bbbbbb);
  428. border: 1px solid #bbb;
  429. border-bottom: 1px solid #999;
  430. cursor: pointer;
  431. text-shadow: 0 1px 0 #ddd;
  432. }
  433. .sp-container button:active {
  434. border: 1px solid #aaa;
  435. border-bottom: 1px solid #888;
  436. -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
  437. -moz-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
  438. -ms-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
  439. -o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
  440. box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
  441. }
  442. .sp-cancel
  443. {
  444. font-size: 11px;
  445. color: #d93f3f !important;
  446. margin:0;
  447. padding:2px;
  448. margin-right: 5px;
  449. vertical-align: middle;
  450. text-decoration:none;
  451. }
  452. .sp-cancel:hover
  453. {
  454. color: #d93f3f !important;
  455. text-decoration: underline;
  456. }*/
  457. .sp-container input[type=button]
  458. {
  459. width: 40%;
  460. }
  461. .sp-cancel
  462. {
  463. float: right;
  464. }
  465. .sp-palette span:hover, .sp-palette span.sp-thumb-active
  466. {
  467. border-color: #000;
  468. }
  469. .sp-preview, .sp-alpha, .sp-thumb-el
  470. {
  471. position:relative;
  472. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
  473. }
  474. .sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner
  475. {
  476. display:block;
  477. position:absolute;
  478. top:0;left:0;bottom:0;right:0;
  479. }
  480. .sp-palette .sp-thumb-inner
  481. {
  482. background-position: 50% 50%;
  483. background-repeat: no-repeat;
  484. }
  485. .sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner
  486. {
  487. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=);
  488. }
  489. .sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner
  490. {
  491. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=);
  492. }
  493. .sp-clear-display {
  494. background-repeat:no-repeat;
  495. background-position: center;
  496. background-image: url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==);
  497. }
  498. .sp-inverse.sp-container {
  499. border-top: 1px solid #c0c0c0;
  500. border-bottom: none;
  501. }
  502. .sp-inverse .sp-arrow
  503. {
  504. top: auto;
  505. bottom: 0;
  506. background-image: url('../images/resource_arrow_up.svg');
  507. }