spectrum.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* https://github.com/bgrins/spectrum */
  2. .spectrum-container {
  3. position: absolute;
  4. top: 0;
  5. left: 0;
  6. display: inline-block;
  7. background: rgba(230, 230, 230, 1) !important;
  8. border: 1px solid #646464;
  9. padding: 10px;
  10. width: 220px;
  11. z-index: 10;
  12. -webkit-user-select: none;
  13. }
  14. .spectrum-top {
  15. position: relative;
  16. width: 100%;
  17. display: inline-block;
  18. }
  19. .spectrum-color {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. bottom: 0;
  24. right: 40px;
  25. }
  26. .spectrum-display-value {
  27. -webkit-user-select: text;
  28. position: relative;
  29. left: 2px;
  30. top: -6px;
  31. }
  32. .spectrum-hue {
  33. position: absolute;
  34. top: 0;
  35. right: 0;
  36. bottom: 0;
  37. left: 170px;
  38. -webkit-box-reflect: right -28px;
  39. }
  40. .spectrum-fill {
  41. /* Same as spectrum-color width to force aspect ratio. */
  42. margin-top: 150px;
  43. }
  44. .spectrum-range-container {
  45. position: relative;
  46. padding-bottom: 5px;
  47. }
  48. .spectrum-range-container * {
  49. font-size: 11px;
  50. vertical-align: middle;
  51. }
  52. .spectrum-range-container label {
  53. display: inline-block;
  54. padding-right: 4px;
  55. }
  56. .spectrum-range-container input {
  57. position: absolute;
  58. left: 15px;
  59. right: 40px;
  60. margin: 3px 0 0 0;
  61. }
  62. .spectrum-dragger,
  63. .spectrum-slider {
  64. -webkit-user-select: none;
  65. }
  66. .spectrum-sat {
  67. background-image: -webkit-linear-gradient(left, white, rgba(204, 154, 129, 0));
  68. }
  69. .spectrum-val {
  70. background-image: -webkit-linear-gradient(bottom, black, rgba(204, 154, 129, 0));
  71. }
  72. .spectrum-hue {
  73. background: -webkit-linear-gradient(bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  74. }
  75. .spectrum-dragger {
  76. border-radius: 5px;
  77. height: 5px;
  78. width: 5px;
  79. border: 1px solid white;
  80. cursor: pointer;
  81. position: absolute;
  82. top: 0;
  83. left: 0;
  84. background: black;
  85. }
  86. .spectrum-slider {
  87. position: absolute;
  88. top: 0;
  89. cursor: pointer;
  90. border: 1px solid black;
  91. height: 4px;
  92. left: -1px;
  93. right: -1px;
  94. }
  95. .spectrum-container .swatch {
  96. width: 20px;
  97. height:20px;
  98. margin: 0;
  99. }