color-picker.css 15 KB

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