color-picker.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Colors
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Background
  20. -------------------------- */
  21. /* Border
  22. -------------------------- */
  23. /* Box-shadow
  24. -------------------------- */
  25. /* Fill
  26. -------------------------- */
  27. /* Font
  28. -------------------------- */
  29. /* Size
  30. -------------------------- */
  31. /* z-index
  32. -------------------------- */
  33. /* Disable base
  34. -------------------------- */
  35. /* Icon
  36. -------------------------- */
  37. /* Checkbox
  38. -------------------------- */
  39. /* Radio
  40. -------------------------- */
  41. /* Select
  42. -------------------------- */
  43. /* Alert
  44. -------------------------- */
  45. /* Message Box
  46. -------------------------- */
  47. /* Message
  48. -------------------------- */
  49. /* Notification
  50. -------------------------- */
  51. /* Input
  52. -------------------------- */
  53. /* Cascader
  54. -------------------------- */
  55. /* Group
  56. -------------------------- */
  57. /* Tab
  58. -------------------------- */
  59. /* Button
  60. -------------------------- */
  61. /* cascader
  62. -------------------------- */
  63. /* Switch
  64. -------------------------- */
  65. /* Dialog
  66. -------------------------- */
  67. /* Table
  68. -------------------------- */
  69. /* Pagination
  70. -------------------------- */
  71. /* Popover
  72. -------------------------- */
  73. /* Tooltip
  74. -------------------------- */
  75. /* Tag
  76. -------------------------- */
  77. /* Tree
  78. -------------------------- */
  79. /* Dropdown
  80. -------------------------- */
  81. /* Badge
  82. -------------------------- */
  83. /* Card
  84. --------------------------*/
  85. /* Slider
  86. --------------------------*/
  87. /* Steps
  88. --------------------------*/
  89. /* MenuSlide
  90. --------------------------*/
  91. /* Rate
  92. --------------------------*/
  93. /* DatePicker
  94. --------------------------*/
  95. /* Loading
  96. --------------------------*/
  97. /* Scrollbar
  98. --------------------------*/
  99. /* Carousel
  100. --------------------------*/
  101. /* Collapse
  102. --------------------------*/
  103. /* Transfer
  104. --------------------------*/
  105. /* Header
  106. --------------------------*/
  107. /* Footer
  108. --------------------------*/
  109. /* Main
  110. --------------------------*/
  111. /* Break-point
  112. --------------------------*/
  113. /* Break-points
  114. -------------------------- */
  115. /* Scrollbar
  116. -------------------------- */
  117. /* Placeholder
  118. -------------------------- */
  119. /* BEM
  120. -------------------------- */
  121. /* Element Chalk Variables */
  122. /* Transition
  123. -------------------------- */
  124. /* Colors
  125. -------------------------- */
  126. /* 53a8ff */
  127. /* 66b1ff */
  128. /* 79bbff */
  129. /* 8cc5ff */
  130. /* a0cfff */
  131. /* b3d8ff */
  132. /* c6e2ff */
  133. /* d9ecff */
  134. /* ecf5ff */
  135. /* Link
  136. -------------------------- */
  137. /* Background
  138. -------------------------- */
  139. /* Border
  140. -------------------------- */
  141. /* Box-shadow
  142. -------------------------- */
  143. /* Fill
  144. -------------------------- */
  145. /* Font
  146. -------------------------- */
  147. /* Size
  148. -------------------------- */
  149. /* z-index
  150. -------------------------- */
  151. /* Disable base
  152. -------------------------- */
  153. /* Icon
  154. -------------------------- */
  155. /* Checkbox
  156. -------------------------- */
  157. /* Radio
  158. -------------------------- */
  159. /* Select
  160. -------------------------- */
  161. /* Alert
  162. -------------------------- */
  163. /* Message Box
  164. -------------------------- */
  165. /* Message
  166. -------------------------- */
  167. /* Notification
  168. -------------------------- */
  169. /* Input
  170. -------------------------- */
  171. /* Cascader
  172. -------------------------- */
  173. /* Group
  174. -------------------------- */
  175. /* Tab
  176. -------------------------- */
  177. /* Button
  178. -------------------------- */
  179. /* cascader
  180. -------------------------- */
  181. /* Switch
  182. -------------------------- */
  183. /* Dialog
  184. -------------------------- */
  185. /* Table
  186. -------------------------- */
  187. /* Pagination
  188. -------------------------- */
  189. /* Popover
  190. -------------------------- */
  191. /* Tooltip
  192. -------------------------- */
  193. /* Tag
  194. -------------------------- */
  195. /* Tree
  196. -------------------------- */
  197. /* Dropdown
  198. -------------------------- */
  199. /* Badge
  200. -------------------------- */
  201. /* Card
  202. --------------------------*/
  203. /* Slider
  204. --------------------------*/
  205. /* Steps
  206. --------------------------*/
  207. /* MenuSlide
  208. --------------------------*/
  209. /* Rate
  210. --------------------------*/
  211. /* DatePicker
  212. --------------------------*/
  213. /* Loading
  214. --------------------------*/
  215. /* Scrollbar
  216. --------------------------*/
  217. /* Carousel
  218. --------------------------*/
  219. /* Collapse
  220. --------------------------*/
  221. /* Transfer
  222. --------------------------*/
  223. /* Header
  224. --------------------------*/
  225. /* Footer
  226. --------------------------*/
  227. /* Main
  228. --------------------------*/
  229. /* Break-point
  230. --------------------------*/
  231. .el-color-hue-slider {
  232. position: relative;
  233. -webkit-box-sizing: border-box;
  234. box-sizing: border-box;
  235. width: 280px;
  236. height: 12px;
  237. background-color: #f00;
  238. padding: 0 2px; }
  239. .el-color-hue-slider__bar {
  240. position: relative;
  241. background: -webkit-gradient(linear, left top, right top, from(#f00), color-stop(17%, #ff0), color-stop(33%, #0f0), color-stop(50%, #0ff), color-stop(67%, #00f), color-stop(83%, #f0f), to(#f00));
  242. background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  243. height: 100%; }
  244. .el-color-hue-slider__thumb {
  245. position: absolute;
  246. cursor: pointer;
  247. -webkit-box-sizing: border-box;
  248. box-sizing: border-box;
  249. left: 0;
  250. top: 0;
  251. width: 4px;
  252. height: 100%;
  253. border-radius: 1px;
  254. background: #fff;
  255. border: 1px solid #f0f0f0;
  256. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  257. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  258. z-index: 1; }
  259. .el-color-hue-slider.is-vertical {
  260. width: 12px;
  261. height: 180px;
  262. padding: 2px 0; }
  263. .el-color-hue-slider.is-vertical .el-color-hue-slider__bar {
  264. background: -webkit-gradient(linear, left top, left bottom, from(#f00), color-stop(17%, #ff0), color-stop(33%, #0f0), color-stop(50%, #0ff), color-stop(67%, #00f), color-stop(83%, #f0f), to(#f00));
  265. background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
  266. .el-color-hue-slider.is-vertical .el-color-hue-slider__thumb {
  267. left: 0;
  268. top: 0;
  269. width: 100%;
  270. height: 4px; }
  271. .el-color-svpanel {
  272. position: relative;
  273. width: 280px;
  274. height: 180px; }
  275. .el-color-svpanel__white, .el-color-svpanel__black {
  276. position: absolute;
  277. top: 0;
  278. left: 0;
  279. right: 0;
  280. bottom: 0; }
  281. .el-color-svpanel__white {
  282. background: -webkit-gradient(linear, left top, right top, from(#fff), to(rgba(255, 255, 255, 0)));
  283. background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
  284. .el-color-svpanel__black {
  285. background: -webkit-gradient(linear, left bottom, left top, from(#000), to(transparent));
  286. background: linear-gradient(to top, #000, transparent); }
  287. .el-color-svpanel__cursor {
  288. position: absolute; }
  289. .el-color-svpanel__cursor > div {
  290. cursor: head;
  291. width: 4px;
  292. height: 4px;
  293. -webkit-box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
  294. box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
  295. border-radius: 50%;
  296. -webkit-transform: translate(-2px, -2px);
  297. transform: translate(-2px, -2px); }
  298. .el-color-alpha-slider {
  299. position: relative;
  300. -webkit-box-sizing: border-box;
  301. box-sizing: border-box;
  302. width: 280px;
  303. height: 12px;
  304. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  305. .el-color-alpha-slider__bar {
  306. position: relative;
  307. background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(white));
  308. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 100%);
  309. height: 100%; }
  310. .el-color-alpha-slider__thumb {
  311. position: absolute;
  312. cursor: pointer;
  313. -webkit-box-sizing: border-box;
  314. box-sizing: border-box;
  315. left: 0;
  316. top: 0;
  317. width: 4px;
  318. height: 100%;
  319. border-radius: 1px;
  320. background: #fff;
  321. border: 1px solid #f0f0f0;
  322. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  323. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  324. z-index: 1; }
  325. .el-color-alpha-slider.is-vertical {
  326. width: 20px;
  327. height: 180px; }
  328. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar {
  329. background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(white));
  330. background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%); }
  331. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb {
  332. left: 0;
  333. top: 0;
  334. width: 100%;
  335. height: 4px; }
  336. .el-color-dropdown {
  337. width: 300px; }
  338. .el-color-dropdown__main-wrapper {
  339. margin-bottom: 6px; }
  340. .el-color-dropdown__main-wrapper::after {
  341. content: "";
  342. display: table;
  343. clear: both; }
  344. .el-color-dropdown__btns {
  345. margin-top: 6px;
  346. text-align: right; }
  347. .el-color-dropdown__value {
  348. float: left;
  349. line-height: 26px;
  350. font-size: 12px;
  351. color: #000;
  352. width: 160px; }
  353. .el-color-dropdown__btn {
  354. border: 1px solid #dcdcdc;
  355. color: #333;
  356. line-height: 24px;
  357. border-radius: 2px;
  358. padding: 0 20px;
  359. cursor: pointer;
  360. background-color: transparent;
  361. outline: none;
  362. font-size: 12px; }
  363. .el-color-dropdown__btn[disabled] {
  364. color: #cccccc;
  365. cursor: not-allowed; }
  366. .el-color-dropdown__btn:hover {
  367. color: #1b1e24;
  368. border-color: #1b1e24; }
  369. .el-color-dropdown__link-btn {
  370. cursor: pointer;
  371. color: #1b1e24;
  372. text-decoration: none;
  373. padding: 15px;
  374. font-size: 12px; }
  375. .el-color-dropdown__link-btn:hover {
  376. color: tint(#1b1e24, 20%); }
  377. .el-color-picker {
  378. display: inline-block;
  379. position: relative;
  380. line-height: normal;
  381. height: 40px; }
  382. .el-color-picker.is-disabled .el-color-picker__trigger {
  383. cursor: not-allowed; }
  384. .el-color-picker--medium {
  385. height: 36px; }
  386. .el-color-picker--medium .el-color-picker__trigger {
  387. height: 36px;
  388. width: 36px; }
  389. .el-color-picker--medium .el-color-picker__mask {
  390. height: 34px;
  391. width: 34px; }
  392. .el-color-picker--small {
  393. height: 32px; }
  394. .el-color-picker--small .el-color-picker__trigger {
  395. height: 32px;
  396. width: 32px; }
  397. .el-color-picker--small .el-color-picker__mask {
  398. height: 30px;
  399. width: 30px; }
  400. .el-color-picker--small .el-color-picker__icon, .el-color-picker--small .el-color-picker__empty {
  401. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  402. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  403. .el-color-picker--mini {
  404. height: 28px; }
  405. .el-color-picker--mini .el-color-picker__trigger {
  406. height: 28px;
  407. width: 28px; }
  408. .el-color-picker--mini .el-color-picker__mask {
  409. height: 26px;
  410. width: 26px; }
  411. .el-color-picker--mini .el-color-picker__icon, .el-color-picker--mini .el-color-picker__empty {
  412. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  413. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  414. .el-color-picker__mask {
  415. height: 38px;
  416. width: 38px;
  417. border-radius: 4px;
  418. position: absolute;
  419. top: 1px;
  420. left: 1px;
  421. z-index: 1;
  422. cursor: not-allowed;
  423. background-color: rgba(255, 255, 255, 0.7); }
  424. .el-color-picker__trigger {
  425. display: inline-block;
  426. -webkit-box-sizing: border-box;
  427. box-sizing: border-box;
  428. height: 40px;
  429. width: 40px;
  430. padding: 4px;
  431. border: 1px solid #e6e6e6;
  432. border-radius: 4px;
  433. font-size: 0;
  434. position: relative;
  435. cursor: pointer; }
  436. .el-color-picker__color {
  437. position: relative;
  438. display: block;
  439. -webkit-box-sizing: border-box;
  440. box-sizing: border-box;
  441. border: 1px solid #999;
  442. border-radius: 2px;
  443. width: 100%;
  444. height: 100%;
  445. text-align: center; }
  446. .el-color-picker__color.is-alpha {
  447. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  448. .el-color-picker__color-inner {
  449. position: absolute;
  450. left: 0;
  451. top: 0;
  452. right: 0;
  453. bottom: 0; }
  454. .el-color-picker__empty {
  455. font-size: 12px;
  456. color: #999;
  457. position: absolute;
  458. top: 50%;
  459. left: 50%;
  460. -webkit-transform: translate3d(-50%, -50%, 0);
  461. transform: translate3d(-50%, -50%, 0); }
  462. .el-color-picker__icon {
  463. display: inline-block;
  464. position: absolute;
  465. width: 100%;
  466. top: 50%;
  467. left: 50%;
  468. -webkit-transform: translate3d(-50%, -50%, 0);
  469. transform: translate3d(-50%, -50%, 0);
  470. color: #fff;
  471. text-align: center;
  472. font-size: 12px; }
  473. .el-color-picker__panel {
  474. position: absolute;
  475. z-index: 10;
  476. padding: 6px;
  477. background-color: #fff;
  478. border: 1px solid #e6ebf5;
  479. border-radius: 4px;
  480. -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  481. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); }