jquery.minicolors.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. .minicolors {
  2. position: relative;
  3. }
  4. .minicolors-swatch {
  5. position: absolute;
  6. vertical-align: middle;
  7. background: url(../img/jquery.minicolors.png) -80px 0;
  8. border: solid 1px #ccc;
  9. cursor: text;
  10. padding: 0;
  11. margin: 0;
  12. display: inline-block;
  13. }
  14. .minicolors-swatch-color {
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. right: 0;
  19. bottom: 0;
  20. }
  21. .minicolors input[type=hidden] + .minicolors-swatch {
  22. width: 28px;
  23. position: static;
  24. cursor: pointer;
  25. }
  26. /* Panel */
  27. .minicolors-panel {
  28. position: absolute;
  29. width: 173px;
  30. height: 152px;
  31. background: white;
  32. border: solid 1px #CCC;
  33. box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  34. z-index: 99999;
  35. -moz-box-sizing: content-box;
  36. -webkit-box-sizing: content-box;
  37. box-sizing: content-box;
  38. display: none;
  39. }
  40. .minicolors-panel.minicolors-visible {
  41. display: block;
  42. }
  43. /* Panel positioning */
  44. .minicolors-position-top .minicolors-panel {
  45. top: -154px;
  46. }
  47. .minicolors-position-right .minicolors-panel {
  48. right: 0;
  49. }
  50. .minicolors-position-bottom .minicolors-panel {
  51. top: auto;
  52. }
  53. .minicolors-position-left .minicolors-panel {
  54. left: 0;
  55. }
  56. .minicolors-with-opacity .minicolors-panel {
  57. width: 194px;
  58. }
  59. .minicolors .minicolors-grid {
  60. position: absolute;
  61. top: 1px;
  62. left: 1px;
  63. width: 150px;
  64. height: 150px;
  65. background: url(../img/jquery.minicolors.png) -120px 0;
  66. cursor: crosshair;
  67. }
  68. .minicolors .minicolors-grid-inner {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. width: 150px;
  73. height: 150px;
  74. background: none;
  75. }
  76. .minicolors-slider-saturation .minicolors-grid {
  77. background-position: -420px 0;
  78. }
  79. .minicolors-slider-saturation .minicolors-grid-inner {
  80. background: url(../img/jquery.minicolors.png) -270px 0;
  81. }
  82. .minicolors-slider-brightness .minicolors-grid {
  83. background-position: -570px 0;
  84. }
  85. .minicolors-slider-brightness .minicolors-grid-inner {
  86. background: black;
  87. }
  88. .minicolors-slider-wheel .minicolors-grid {
  89. background-position: -720px 0;
  90. }
  91. .minicolors-slider,
  92. .minicolors-opacity-slider {
  93. position: absolute;
  94. top: 1px;
  95. left: 152px;
  96. width: 20px;
  97. height: 150px;
  98. background: white url(../img/jquery.minicolors.png) 0 0;
  99. cursor: row-resize;
  100. }
  101. .minicolors-slider-saturation .minicolors-slider {
  102. background-position: -60px 0;
  103. }
  104. .minicolors-slider-brightness .minicolors-slider {
  105. background-position: -20px 0;
  106. }
  107. .minicolors-slider-wheel .minicolors-slider {
  108. background-position: -20px 0;
  109. }
  110. .minicolors-opacity-slider {
  111. left: 173px;
  112. background-position: -40px 0;
  113. display: none;
  114. }
  115. .minicolors-with-opacity .minicolors-opacity-slider {
  116. display: block;
  117. }
  118. /* Pickers */
  119. .minicolors-grid .minicolors-picker {
  120. position: absolute;
  121. top: 70px;
  122. left: 70px;
  123. width: 12px;
  124. height: 12px;
  125. border: solid 1px black;
  126. border-radius: 10px;
  127. margin-top: -6px;
  128. margin-left: -6px;
  129. background: none;
  130. }
  131. .minicolors-grid .minicolors-picker > div {
  132. position: absolute;
  133. top: 0;
  134. left: 0;
  135. width: 8px;
  136. height: 8px;
  137. border-radius: 8px;
  138. border: solid 2px white;
  139. -moz-box-sizing: content-box;
  140. -webkit-box-sizing: content-box;
  141. box-sizing: content-box;
  142. }
  143. .minicolors-picker {
  144. position: absolute;
  145. top: 0;
  146. left: 0;
  147. width: 18px;
  148. height: 2px;
  149. background: white;
  150. border: solid 1px black;
  151. margin-top: -2px;
  152. -moz-box-sizing: content-box;
  153. -webkit-box-sizing: content-box;
  154. box-sizing: content-box;
  155. }
  156. /* Inline controls */
  157. .minicolors-inline {
  158. display: inline-block;
  159. }
  160. .minicolors-inline .minicolors-input {
  161. display: none !important;
  162. }
  163. .minicolors-inline .minicolors-panel {
  164. position: relative;
  165. top: auto;
  166. left: auto;
  167. box-shadow: none;
  168. z-index: auto;
  169. display: inline-block;
  170. }
  171. /* Default theme */
  172. .minicolors-theme-default .minicolors-swatch {
  173. top: 5px;
  174. left: 5px;
  175. width: 18px;
  176. height: 18px;
  177. }
  178. .minicolors-theme-default.minicolors-position-right .minicolors-swatch {
  179. left: auto;
  180. right: 5px;
  181. }
  182. .minicolors-theme-default.minicolors {
  183. width: auto;
  184. display: inline-block;
  185. }
  186. .minicolors-theme-default .minicolors-input {
  187. height: 20px;
  188. width: auto;
  189. display: inline-block;
  190. padding-left: 26px;
  191. }
  192. .minicolors-theme-default.minicolors-position-right .minicolors-input {
  193. padding-right: 26px;
  194. padding-left: inherit;
  195. }
  196. /* Bootstrap theme */
  197. .minicolors-theme-bootstrap .minicolors-swatch {
  198. top: 3px;
  199. left: 3px;
  200. width: 28px;
  201. height: 28px;
  202. border-radius: 3px;
  203. }
  204. .minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch {
  205. left: auto;
  206. right: 3px;
  207. }
  208. .minicolors-theme-bootstrap .minicolors-input {
  209. padding-left: 44px;
  210. }
  211. .minicolors-theme-bootstrap.minicolors-position-right .minicolors-input {
  212. padding-right: 44px;
  213. padding-left: 12px;
  214. }