bootstrap-colorpicker.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. /*!
  2. * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4.
  3. * @package bootstrap-colorpicker
  4. * @version v3.2.0
  5. * @license MIT
  6. * @link https://itsjavi.com/bootstrap-colorpicker/
  7. * @link https://github.com/itsjavi/bootstrap-colorpicker.git
  8. */
  9. .colorpicker {
  10. position: relative;
  11. display: none;
  12. font-size: inherit;
  13. color: inherit;
  14. text-align: left;
  15. list-style: none;
  16. background-color: #ffffff;
  17. background-clip: padding-box;
  18. border: 1px solid rgba(0, 0, 0, 0.2);
  19. padding: .75rem .75rem;
  20. width: 148px;
  21. border-radius: 4px;
  22. -webkit-box-sizing: content-box;
  23. box-sizing: content-box; }
  24. .colorpicker.colorpicker-disabled,
  25. .colorpicker.colorpicker-disabled * {
  26. cursor: default !important; }
  27. .colorpicker div {
  28. position: relative; }
  29. .colorpicker-popup {
  30. position: absolute;
  31. top: 100%;
  32. left: 0;
  33. float: left;
  34. margin-top: 1px;
  35. z-index: 1060; }
  36. .colorpicker-popup.colorpicker-bs-popover-content {
  37. position: relative;
  38. top: auto;
  39. left: auto;
  40. float: none;
  41. margin: 0;
  42. z-index: initial;
  43. border: none;
  44. padding: 0.25rem 0;
  45. border-radius: 0;
  46. background: none;
  47. -webkit-box-shadow: none;
  48. box-shadow: none; }
  49. .colorpicker:before,
  50. .colorpicker:after {
  51. content: "";
  52. display: table;
  53. clear: both;
  54. line-height: 0; }
  55. .colorpicker-clear {
  56. clear: both;
  57. display: block; }
  58. .colorpicker:before {
  59. content: '';
  60. display: inline-block;
  61. border-left: 7px solid transparent;
  62. border-right: 7px solid transparent;
  63. border-bottom: 7px solid #ccc;
  64. border-bottom-color: rgba(0, 0, 0, 0.2);
  65. position: absolute;
  66. top: -7px;
  67. left: auto;
  68. right: 6px; }
  69. .colorpicker:after {
  70. content: '';
  71. display: inline-block;
  72. border-left: 6px solid transparent;
  73. border-right: 6px solid transparent;
  74. border-bottom: 6px solid #ffffff;
  75. position: absolute;
  76. top: -6px;
  77. left: auto;
  78. right: 7px; }
  79. .colorpicker.colorpicker-with-alpha {
  80. width: 170px; }
  81. .colorpicker.colorpicker-with-alpha .colorpicker-alpha {
  82. display: block; }
  83. .colorpicker-saturation {
  84. position: relative;
  85. width: 126px;
  86. height: 126px;
  87. /* FF3.6+ */
  88. /* Chrome,Safari4+ */
  89. /* Chrome10+,Safari5.1+ */
  90. /* Opera 11.10+ */
  91. /* IE10+ */
  92. background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(black)), -webkit-gradient(linear, left top, right top, from(white), to(rgba(255, 255, 255, 0)));
  93. background: linear-gradient(to bottom, transparent 0%, black 100%), linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  94. /* W3C */
  95. cursor: crosshair;
  96. float: left;
  97. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  98. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  99. margin-bottom: 6px; }
  100. .colorpicker-saturation .colorpicker-guide {
  101. display: block;
  102. height: 6px;
  103. width: 6px;
  104. border-radius: 6px;
  105. border: 1px solid #000;
  106. -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
  107. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
  108. position: absolute;
  109. top: 0;
  110. left: 0;
  111. margin: -3px 0 0 -3px; }
  112. .colorpicker-hue,
  113. .colorpicker-alpha {
  114. position: relative;
  115. width: 16px;
  116. height: 126px;
  117. float: left;
  118. cursor: row-resize;
  119. margin-left: 6px;
  120. margin-bottom: 6px; }
  121. .colorpicker-alpha-color {
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. width: 100%;
  126. height: 100%; }
  127. .colorpicker-hue,
  128. .colorpicker-alpha-color {
  129. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  130. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
  131. .colorpicker-hue .colorpicker-guide,
  132. .colorpicker-alpha .colorpicker-guide {
  133. display: block;
  134. height: 4px;
  135. background: rgba(255, 255, 255, 0.8);
  136. border: 1px solid rgba(0, 0, 0, 0.4);
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. margin-left: -2px;
  141. margin-top: -2px;
  142. right: -2px;
  143. z-index: 1; }
  144. .colorpicker-hue {
  145. /* FF3.6+ */
  146. /* Chrome,Safari4+ */
  147. /* Chrome10+,Safari5.1+ */
  148. /* Opera 11.10+ */
  149. /* IE10+ */
  150. background: -webkit-gradient(linear, left bottom, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));
  151. background: linear-gradient(to top, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);
  152. /* W3C */ }
  153. .colorpicker-alpha {
  154. background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;
  155. background-size: 10px 10px;
  156. background-position: 0 0, 5px 5px;
  157. display: none; }
  158. .colorpicker-bar {
  159. min-height: 16px;
  160. margin: 6px 0 0 0;
  161. clear: both;
  162. text-align: center;
  163. font-size: 10px;
  164. line-height: normal;
  165. max-width: 100%;
  166. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  167. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
  168. .colorpicker-bar:before {
  169. content: "";
  170. display: table;
  171. clear: both; }
  172. .colorpicker-bar.colorpicker-bar-horizontal {
  173. height: 126px;
  174. width: 16px;
  175. margin: 0 0 6px 0;
  176. float: left; }
  177. .colorpicker-input-addon {
  178. position: relative; }
  179. .colorpicker-input-addon i {
  180. display: inline-block;
  181. cursor: pointer;
  182. vertical-align: text-top;
  183. height: 16px;
  184. width: 16px;
  185. position: relative; }
  186. .colorpicker-input-addon:before {
  187. content: "";
  188. position: absolute;
  189. width: 16px;
  190. height: 16px;
  191. display: inline-block;
  192. vertical-align: text-top;
  193. background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;
  194. background-size: 10px 10px;
  195. background-position: 0 0, 5px 5px; }
  196. .colorpicker.colorpicker-inline {
  197. position: relative;
  198. display: inline-block;
  199. float: none;
  200. z-index: auto;
  201. vertical-align: text-bottom; }
  202. .colorpicker.colorpicker-horizontal {
  203. width: 126px;
  204. height: auto; }
  205. .colorpicker.colorpicker-horizontal .colorpicker-bar {
  206. width: 126px; }
  207. .colorpicker.colorpicker-horizontal .colorpicker-saturation {
  208. float: none;
  209. margin-bottom: 0; }
  210. .colorpicker.colorpicker-horizontal .colorpicker-hue,
  211. .colorpicker.colorpicker-horizontal .colorpicker-alpha {
  212. float: none;
  213. width: 126px;
  214. height: 16px;
  215. cursor: col-resize;
  216. margin-left: 0;
  217. margin-top: 6px;
  218. margin-bottom: 0; }
  219. .colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide,
  220. .colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide {
  221. position: absolute;
  222. display: block;
  223. bottom: -2px;
  224. left: 0;
  225. right: auto;
  226. height: auto;
  227. width: 4px; }
  228. .colorpicker.colorpicker-horizontal .colorpicker-hue {
  229. /* FF3.6+ */
  230. /* Chrome,Safari4+ */
  231. /* Chrome10+,Safari5.1+ */
  232. /* Opera 11.10+ */
  233. /* IE10+ */
  234. background: -webkit-gradient(linear, right top, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));
  235. background: linear-gradient(to left, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);
  236. /* W3C */ }
  237. .colorpicker.colorpicker-horizontal .colorpicker-alpha {
  238. background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;
  239. background-size: 10px 10px;
  240. background-position: 0 0, 5px 5px; }
  241. .colorpicker-inline:before,
  242. .colorpicker-no-arrow:before,
  243. .colorpicker-popup.colorpicker-bs-popover-content:before {
  244. content: none;
  245. display: none; }
  246. .colorpicker-inline:after,
  247. .colorpicker-no-arrow:after,
  248. .colorpicker-popup.colorpicker-bs-popover-content:after {
  249. content: none;
  250. display: none; }
  251. .colorpicker-alpha,
  252. .colorpicker-saturation,
  253. .colorpicker-hue {
  254. -webkit-user-select: none;
  255. -moz-user-select: none;
  256. -ms-user-select: none;
  257. user-select: none; }
  258. .colorpicker.colorpicker-visible,
  259. .colorpicker-alpha.colorpicker-visible,
  260. .colorpicker-saturation.colorpicker-visible,
  261. .colorpicker-hue.colorpicker-visible,
  262. .colorpicker-bar.colorpicker-visible {
  263. display: block; }
  264. .colorpicker.colorpicker-hidden,
  265. .colorpicker-alpha.colorpicker-hidden,
  266. .colorpicker-saturation.colorpicker-hidden,
  267. .colorpicker-hue.colorpicker-hidden,
  268. .colorpicker-bar.colorpicker-hidden {
  269. display: none; }
  270. .colorpicker-inline.colorpicker-visible {
  271. display: inline-block; }
  272. .colorpicker.colorpicker-disabled:after {
  273. border: none;
  274. content: '';
  275. display: block;
  276. width: 100%;
  277. height: 100%;
  278. background: rgba(233, 236, 239, 0.33);
  279. top: 0;
  280. left: 0;
  281. right: auto;
  282. z-index: 2;
  283. position: absolute; }
  284. .colorpicker.colorpicker-disabled .colorpicker-guide {
  285. display: none; }
  286. /** EXTENSIONS **/
  287. .colorpicker-preview {
  288. background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;
  289. background-size: 10px 10px;
  290. background-position: 0 0, 5px 5px; }
  291. .colorpicker-preview > div {
  292. position: absolute;
  293. left: 0;
  294. top: 0;
  295. width: 100%;
  296. height: 100%; }
  297. .colorpicker-bar.colorpicker-swatches {
  298. -webkit-box-shadow: none;
  299. box-shadow: none;
  300. height: auto; }
  301. .colorpicker-swatches--inner {
  302. clear: both;
  303. margin-top: -6px; }
  304. .colorpicker-swatch {
  305. position: relative;
  306. cursor: pointer;
  307. float: left;
  308. height: 16px;
  309. width: 16px;
  310. margin-right: 6px;
  311. margin-top: 6px;
  312. margin-left: 0;
  313. display: block;
  314. -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  315. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  316. background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;
  317. background-size: 10px 10px;
  318. background-position: 0 0, 5px 5px; }
  319. .colorpicker-swatch--inner {
  320. position: absolute;
  321. top: 0;
  322. left: 0;
  323. width: 100%;
  324. height: 100%; }
  325. .colorpicker-swatch:nth-of-type(7n+0) {
  326. margin-right: 0; }
  327. .colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0) {
  328. margin-right: 6px; }
  329. .colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0) {
  330. margin-right: 0; }
  331. .colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0) {
  332. margin-right: 0; }
  333. .colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0) {
  334. margin-right: 6px; }
  335. .colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0) {
  336. margin-right: 6px; }
  337. .colorpicker-swatch:last-of-type:after {
  338. content: "";
  339. display: table;
  340. clear: both; }
  341. *[dir='rtl'] .colorpicker-element input,
  342. .colorpicker-element[dir='rtl'] input,
  343. .colorpicker-element input[dir='rtl'] {
  344. direction: ltr;
  345. text-align: right; }
  346. /*# sourceMappingURL=bootstrap-colorpicker.css.map */
  347. /*# sourceMappingURL=bootstrap-colorpicker.css.map */